public void setPageCapacity(int capacity) { m_Slots = new TezArray <TezInventoryViewSlot>(capacity); for (int i = 0; i < capacity; i++) { m_Slots.add(new TezInventoryViewSlot() { index = i }); } }
public void add(Name name, int point) { if (point <= 0) { throw new ArgumentOutOfRangeException("TezIntRoulette [Point] must greater than 0"); } if (m_Value.count == m_Value.capacity) { throw new ArgumentOutOfRangeException("TezIntRoulette capacity not enough"); } m_Value.add(new TezTuple <Name, int>(name, point)); this.maxValue += point; }
public void addChild(int id) { m_Children.add(id); }