public RemoveItemAtCommand(ActorSlotList asl, int index) { this.mSlotList = asl; this.mSlot = asl[index]; this.mIndex = index; this.mLabel = "Remove Actor Slot from Slot Builder"; }
public InsertNewItemCommand(ActorSlotList asl, int index) { this.mSlotList = asl; this.mSlot = new ActorSlot(asl.mSlotBuilder); this.mIndex = index; this.mLabel = "Insert New Actor Slot into Slot Builder"; }
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(); }
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); } } }
public ClearCommand(ActorSlotList asl) { this.mSlotList = asl; this.mSlots = asl.ToArray(); this.mLabel = "Clear Actor Slots from Slot Builder"; }
public AddNewItemCommand(ActorSlotList asl) { this.mSlotList = asl; this.mSlot = new ActorSlot(asl.mSlotBuilder); this.mLabel = "Add New Actor Slot to Slot Builder"; }