protected override void OnLoad() { Type |= ObjectTypes.Container; SetInt32(ContainerFields.NUM_SLOTS, m_record.ContSlots); m_inventory = new ContainerInventory(this, ContainerFields.SLOT_1, m_record.ContSlots); }
protected override void OnInit() { Type |= ObjectTypes.Container; ContainerSlots = m_template.ContainerSlots; m_inventory = new ContainerInventory(this, ContainerFields.SLOT_1, m_template.ContainerSlots); }