BITFALL/Assets/Artists/Scripts/Dev/DevInventory.cs

82 lines
2.1 KiB
C#

/* using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using BITKit;
using BITKit.Entities;
using FLib;
using System.Threading.Tasks;
using FLib.Entity;
using FLib.GameObjects;
using Cysharp.Threading.Tasks;
namespace BITFALL.Dev
{
[System.Serializable]
public class DevInventory : iNetInventory
{
public List<ItemBase> items = new();
public async Task<bool> AddItem(ItemEntity e)
{
await UniTask.SwitchToMainThread();
items.Add(e.Item);
return true;
}
public async Task<bool> DivideItem(ItemBase item, Inventory AimInventory, BagLocation AimLocation)
{
await UniTask.SwitchToMainThread();
items.Remove(item);
if (AimInventory.Add(item))
{
items.Remove(item);
}
return true;
}
public async Task<bool> DropItem(ItemBase item)
{
await UniTask.SwitchToMainThread();
items.Remove(item);
return true;
}
public BagLocation FetchLoc(int Width, int Height)
{
throw new System.NotImplementedException();
}
public bool[,] GetItemMap()
{
throw new System.NotImplementedException();
}
public int GetMaxContain()
{
throw new System.NotImplementedException();
}
public bool IsItemPosAvaliable(int Width, int Height, BagLocation BagLocation)
{
throw new System.NotImplementedException();
}
public Task<bool> MoveItem(ItemBase item, BagLocation loc, Inventory AimInventory)
{
throw new System.NotImplementedException();
}
public bool PosHasItem(BagLocation loc)
{
throw new System.NotImplementedException();
}
public Task<bool> RemoveItem(ItemBase item)
{
throw new System.NotImplementedException();
}
public Task<bool> SetItemAmount(ItemBase item, int amount)
{
throw new System.NotImplementedException();
}
}
} */