コード例 #1
0
        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);
        }
コード例 #2
0
 public void AddSlot(CompiledSlot slot)
 {
     slots = slots ?? new LightList <CompiledSlot>();
     slots.Add(slot);
 }