/* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */ public Chest(TypeOfChest type, Vector3 position, KeysForChest key = KeysForChest.Universal, byte maxItems = 8, int nameId = 38) : base(GetModelByType(type), position, nameId) { this.type = type; this.key = key; totalItems = maxItems; isLocked = key != KeysForChest.Universal; Freeze(true); if (!isLocked) { generateLoot(); } }
public static int GetModelByType(TypeOfChest type) { return(( int )type); }