public DGAcOpNode(ActorOperationNode aon, StateNode state) : base(aon, state) { this.mAcOpNode = aon ?? throw new ArgumentNullException("aon"); this.mActor = new RefToActor(this.mScene, aon.Actor); this.UpdateVisualization(); }
public DGAnimNode(AnimationNode an, StateNode state, bool play) : base(an, state) { this.mAnimNode = an; this.mActor = new RefToActor(state.Scene, an == null ? null : an.Actor); this.bPlay = play; }
public ActorSuffix(SlotBuilder sb) { if (sb == null) { throw new ArgumentNullException("sb"); } this.mSB = sb; this.mActor = new RefToActor(sb.mScene, null); this.mParam = new RefToParam(sb.mScene, null); }
public ActorSuffix(SlotBuilder sb, ActorDefinition actor, ParamDefinition param) { if (sb == null) { throw new ArgumentNullException("sb"); } this.mSB = sb; this.mActor = new RefToActor(sb.mScene, actor); this.mParam = new RefToParam(sb.mScene, param); }
public DGPropNode(CreatePropNode cpn, StateNode state) : base(cpn, state) { if (cpn == null) { throw new ArgumentNullException("cpn"); } this.mPropNode = cpn; this.mPropActor = new RefToActor(this.mScene, cpn.PropActor); this.mPropParam = new RefToParam(this.mScene, cpn.PropParam); this.UpdateVisualization(); }
public ActorSuffix(SlotBuilder sb, SlotSetupBuilder.ActorSuffix suffix) { if (sb == null) { throw new ArgumentNullException("sb"); } if (suffix == null) { throw new ArgumentNullException("suffix"); } this.mSB = sb; this.mActor = new RefToActor(sb.mScene, suffix.Actor); this.mParam = new RefToParam(sb.mScene, suffix.Param); }
private void CreateActorCommand(object value) { RefToActor rta = value as RefToActor; this.mScene.Container.UndoRedo.Submit(new ActorCommand(this, rta)); }
private void CreatePropActorCommand(object value) { RefToActor actor = value as RefToActor; this.mScene.Container.UndoRedo.Submit(new PropActorCommand(this, actor)); }