public CompiledSlot GetCompiledSlot(string slotName) { if (slots == null) { return(null); } for (int i = 0; i < slots.size; i++) { CompiledSlot slot = slots.array[i]; if ((slot.slotType == SlotType.Forward || slot.slotType == SlotType.Define) && slot.slotName == slotName) { return(slot); } } return(null); }
public void AddSlot(CompiledSlot slot) { slots = slots ?? new LightList <CompiledSlot>(); slots.Add(slot); }