public ActorFrameProperties(ActorFrameProperties other)
 {
     Bright   = other.Bright;
     CanRaise = other.CanRaise;
     Fast     = other.Fast;
     Light    = new Optional <UpperString>(other.Light.Value);
     NoDelay  = other.NoDelay;
     Offset   = other.Offset;
     Slow     = other.Slow;
 }
Esempio n. 2
0
 public ActorFrame(ActorFrame other)
 {
     FrameIndex      = other.FrameIndex;
     Sprite          = other.Sprite;
     Ticks           = other.Ticks;
     Properties      = new ActorFrameProperties(other.Properties);
     ActionFunction  = other.ActionFunction.Map(af => new ActorActionFunction(af));
     FlowControl     = new ActorFlowControl(other.FlowControl);
     NextStateOffset = other.NextStateOffset;
 }
Esempio n. 3
0
 public ActorFrame(int frameIndex, UpperString sprite, int ticks, ActorFrameProperties properties,
                   Optional <ActorActionFunction> actionFunction, ActorFlowControl flowControl = null,
                   int nextStateOffset = OffsetNotSet)
 {
     FrameIndex      = frameIndex;
     Sprite          = sprite;
     Ticks           = ticks;
     Properties      = properties;
     ActionFunction  = actionFunction;
     FlowControl     = flowControl ?? new ActorFlowControl();
     NextStateOffset = nextStateOffset;
 }