Ejemplo n.º 1
0
        /* --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- */

        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();
            }
        }
Ejemplo n.º 2
0
 public static int GetModelByType(TypeOfChest type)
 {
     return(( int )type);
 }