示例#1
0
        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();
        }
示例#2
0
 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;
 }
示例#3
0
 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);
 }
示例#4
0
 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);
 }
示例#5
0
 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();
 }
示例#6
0
 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);
 }
示例#7
0
        private void CreateActorCommand(object value)
        {
            RefToActor rta = value as RefToActor;

            this.mScene.Container.UndoRedo.Submit(new ActorCommand(this, rta));
        }
示例#8
0
        private void CreatePropActorCommand(object value)
        {
            RefToActor actor = value as RefToActor;

            this.mScene.Container.UndoRedo.Submit(new PropActorCommand(this, actor));
        }