Ejemplo n.º 1
0
 public RemoveItemAtCommand(ActorSuffixList asl, int index)
 {
     this.mSuffList = asl;
     this.mSuff     = asl[index];
     this.mIndex    = index;
     this.mLabel    = "Remove Actor Suffix from Slot Builder";
 }
Ejemplo n.º 2
0
 public InsertNewItemCommand(ActorSuffixList asl, int index)
 {
     this.mSuffList = asl;
     this.mSuff     = new ActorSuffix(asl.mSlotBuilder);
     this.mIndex    = index;
     this.mLabel    = "Insert New Actor Suffix into Slot Builder";
 }
Ejemplo n.º 3
0
 public SlotBuilder(StateMachineScene scene,
                    SlotSetupBuilder ssb, SlotBuilder sb)
 {
     if (scene == null)
     {
         throw new ArgumentNullException("scene");
     }
     if (ssb == null)
     {
         throw new ArgumentNullException("ssb");
     }
     if (sb == null)
     {
         throw new ArgumentNullException("sb");
     }
     this.mScene      = scene;
     this.mSSB        = ssb;
     this.mSlotList   = new ActorSlotList(this, sb.mSlotList);
     this.mSuffixList = new ActorSuffixList(this, sb.mSuffixList);
     this.CommitLists();
 }
Ejemplo n.º 4
0
 private void InitLists()
 {
     if (this.mSlotList == null)
     {
         if (this.mSSB.ActorSlotCount > 0)
         {
             SlotSetupBuilder.ActorSlot[] slots
                 = this.mSSB.ActorSlotArray;
             this.mSlotList
                 = new ActorSlotList(this, slots.Length);
             for (int i = 0; i < slots.Length; i++)
             {
                 this.mSlotList.Add(
                     new ActorSlot(this, slots[i]));
             }
         }
         else
         {
             this.mSlotList = new ActorSlotList(this);
         }
         if (this.mSSB.ActorSuffixCount > 0)
         {
             SlotSetupBuilder.ActorSuffix[] suffs
                 = this.mSSB.ActorSuffixArray;
             this.mSuffixList
                 = new ActorSuffixList(this, suffs.Length);
             for (int j = 0; j < suffs.Length; j++)
             {
                 this.mSuffixList.Add(
                     new ActorSuffix(this, suffs[j]));
             }
         }
         else
         {
             this.mSuffixList = new ActorSuffixList(this);
         }
     }
 }
Ejemplo n.º 5
0
 public ClearCommand(ActorSuffixList asl)
 {
     this.mSuffList = asl;
     this.mSuffs    = asl.ToArray();
     this.mLabel    = "Clear Actor Suffixes from Slot Builder";
 }
Ejemplo n.º 6
0
 public AddNewItemCommand(ActorSuffixList asl)
 {
     this.mSuffList = asl;
     this.mSuff     = new ActorSuffix(asl.mSlotBuilder);
     this.mLabel    = "Add New Actor Suffix to Slot Builder";
 }