public void InitializePlayer(Dictionary <string, Item> items, int playerID)
    {
        _playerID = playerID;

        foreach (var pair in items)
        {
            RuntimeItem runtimeItem = _loadControl.LoadRuntimeItem(pair.Value, _playerID);
        }
    }
Exemple #2
0
    public void LoadLoot(List <Item> items, int ownerID, int lootID)
    {
        int lootI = 0;

        foreach (var item in items)
        {
            item.Slot = lootI.ToString();
            RuntimeItem runtimeItem = _loadControl.LoadRuntimeItem(item, ownerID);
            LootSlots[lootI].RuntimeItem = runtimeItem;
            lootI++;
        }
        _lootID = lootID;
        ToggleInventory(true);
    }