示例#1
0
 public void InitData(IInventoryStateClient client, InventoryAccessor accessor, ChangeStorage storage)
 {
     _storage  = storage;
     _accessor = accessor;
     LD_Items.Init(client.Items, storage);
     LD_Gacha.Init(client.Gacha, storage);
 }
示例#2
0
 public void InitData(string root, ChangeStorage storage, InventoryAccessor accessor)
 {
     _accessor = accessor;
     _storage  = storage;
     DataId    = root;
     LD_Items?.Init($"{DataId}.storage", storage, _Items);
     LD_Gacha?.Init($"{DataId}.gacha", storage, _Gacha);
 }