14 lines
351 B
C#
14 lines
351 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Backpack
|
|
{
|
|
public interface IBackpack<T> where T : IBackpackItem
|
|
{
|
|
public IReadOnlyList<T> Items { get; }
|
|
void PutItem(T item);
|
|
void TakeItem(T item, int count);
|
|
T GetItem(string name);
|
|
bool ChangePosition(T item1, T item2);
|
|
void DuiDie();
|
|
}
|
|
} |