Commit b8e5215e authored by 16이상민's avatar 16이상민

Fixed an error not finding a constructor function.

Thanks to refactoring.
parent 540ef035
......@@ -13,10 +13,10 @@ public class Clap : MotionNote
}
}
public Clap(string key, float timing) : base(timing)
public Clap(string key, float start, float end = 0f) : this(start, end)
{
}
public Clap(float timing) : base(timing)
public Clap(float start, float end = 0f) : base(start, end)
{
}
......
......@@ -18,7 +18,7 @@ public class Guard : MotionNote
}
}
public Guard(string key, float timing) : this(timing)
public Guard(string key, float start, float end = 0f) : this(start, end)
{
switch (key)
{
......@@ -48,7 +48,7 @@ public class Guard : MotionNote
break;
}
}
public Guard(float timing) : base(timing)
public Guard(float start, float end = 0f) : base(start, end)
{
}
......
......@@ -18,7 +18,7 @@ public class HandDown : MotionNote
}
}
public HandDown(string key, float timing) : this(timing)
public HandDown(string key, float start, float end = 0f) : this(start, end)
{
switch (key)
{
......@@ -39,7 +39,7 @@ public class HandDown : MotionNote
break;
}
}
public HandDown(float timing) : base(timing)
public HandDown(float start, float end = 0f) : base(start, end)
{
}
......
......@@ -18,7 +18,7 @@ public class HandUp : MotionNote
}
}
public HandUp(string key, float timing) : this(timing)
public HandUp(string key, float start, float end = 0f) : this(start, end)
{
switch (key)
{
......@@ -39,7 +39,7 @@ public class HandUp : MotionNote
break;
}
}
public HandUp(float timing) : base(timing)
public HandUp(float start, float end = 0f) : base(start, end)
{
}
......
......@@ -18,7 +18,7 @@ public class Headphone : MotionNote
}
}
public Headphone(string key, float timing) : this(timing)
public Headphone(string key, float start, float end = 0f) : this(start, end)
{
switch (key)
{
......@@ -39,9 +39,8 @@ public class Headphone : MotionNote
break;
}
}
public Headphone(float timing) : base(timing)
{
}
public Headphone(float start, float end = 0f) : base(start, end)
{ }
public override void Checkpoint()
{
......
......@@ -13,10 +13,10 @@ public class Jesus : MotionNote
}
}
public Jesus(string key, float timing) : this(timing)
public Jesus(string key, float start, float end = 0f) : this(start, end)
{
}
public Jesus(float timing) : base(timing)
public Jesus(float start, float end = 0f) : base(start, end)
{
}
......
......@@ -13,10 +13,10 @@ public class Jump : MotionNote
}
}
public Jump(string key, float timing) : this(timing)
public Jump(string key, float start, float end = 0f) : this(start, end)
{
}
public Jump(float timing) : base(timing)
public Jump(float start, float end = 0f) : base(start, end)
{
}
......
......@@ -13,10 +13,10 @@ public class OnTheTable : MotionNote
}
}
public OnTheTable(string key, float timing) : this(timing)
public OnTheTable(string key, float start, float end = 0f) : this(start, end)
{
}
public OnTheTable(float timing) : base(timing)
public OnTheTable(float start, float end = 0f) : base(start, end)
{
}
......
......@@ -18,7 +18,7 @@ public class PushUp : MotionNote
}
}
public PushUp(string key, float timing) : this(timing)
public PushUp(string key, float start, float end = 0f) : this(start, end)
{
switch (key)
{
......@@ -42,7 +42,7 @@ public class PushUp : MotionNote
break;
}
}
public PushUp(float timing) : base(timing)
public PushUp(float start, float end = 0f) : base(start, end)
{
}
......
......@@ -304,7 +304,6 @@ namespace KinectModule
public class RealMultiSourceFrame : IMultiSourceFrame
{
MultiSourceFrame _SourceFrame;
RealColorFrame _ColorFrame;
RealBodyIndexFrame _BodyIndexFrame;
RealDepthFrame _DepthFrame;
......@@ -321,7 +320,6 @@ namespace KinectModule
public RealMultiSourceFrame(MultiSourceFrame sourceFrame)
{
_SourceFrame = sourceFrame;
_ColorFrame = new RealColorFrame(sourceFrame.ColorFrameReference.AcquireFrame());
_BodyIndexFrame = new RealBodyIndexFrame(sourceFrame.BodyIndexFrameReference.AcquireFrame());
_DepthFrame = new RealDepthFrame(sourceFrame.DepthFrameReference.AcquireFrame());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment