Esempio n. 1
0
        void TryLoadInventory(IPlayer player)
        {
            this.Inventory.DiscardAll();
            simpleinventory loadedinv = ApiExtensions.LoadOrCreateDataFile <simpleinventory>(Api, "helloworld.json");

            if (loadedinv == null)
            {
                return;
            }

            this.MarkDirty();
        }