Пример #1
0
        protected override void RegisterStaticInventoryCache(IItemSpecCache cache)
        {
            InventoryHandler persister = null;

            if (UseFileDataStore)
            {
                persister = new InventoryHandler(this);
                persister.Init();
            }

            StaticInventoryCache.Instance = new InventoryCache(Engine, persister, persister);
            _inventoryCache = StaticInventoryCache.Instance;
        }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     m_InventoryHandler.Init();
 }