Exemple #1
0
 public void AddStacks(ItemStacks itemStacks)
 {
     foreach (var itemStack in itemStacks)
     {
         AddStack(itemStack.Clone());
     }
 }
 public Task <Eleon.Modding.ItemExchangeInfo> DoItemExchange(string title, string description, string buttonText, ItemStacks items = null)
 {
     return(DoItemExchange(title, description, buttonText, items?.ToEleonArray()));
 }
        public Task <Eleon.Modding.Inventory> GetAndRemoveInventory(ItemStacks toolbelt, ItemStacks bag)
        {
            var newInventory = new Eleon.Modding.Inventory(EntityId, toolbelt.ToEleonList().ToArray(), bag.ToEleonList().ToArray());

            return(_gameServerConnection.SendRequest <Eleon.Modding.Inventory>(Eleon.Modding.CmdId.Request_Player_GetAndRemoveInventory, newInventory));
        }