Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
IInventory.cs
浏览该文件的文档.
1using Engine;
3
4namespace Game {
5 public interface IInventory {
6 Project Project { get; }
7
8 int SlotsCount { get; }
9
10 int VisibleSlotsCount { get; set; }
11
12 int ActiveSlotIndex { get; set; }
13
14 int GetSlotValue(int slotIndex);
15
16 int GetSlotCount(int slotIndex);
17
18 int GetSlotCapacity(int slotIndex, int value);
19
20 int GetSlotProcessCapacity(int slotIndex, int value);
21
22 void AddSlotItems(int slotIndex, int value, int count);
23
24 void ProcessSlotItems(int slotIndex, int value, int count, int processCount, out int processedValue, out int processedCount);
25
27 int RemoveSlotItems(int slotIndex, int count);
28
29 void DropAllItems(Vector3 position);
30 }
31}
int RemoveSlotItems(int slotIndex, int count)
实际移除的数量
int GetSlotCount(int slotIndex)
int GetSlotCapacity(int slotIndex, int value)
void AddSlotItems(int slotIndex, int value, int count)
int GetSlotProcessCapacity(int slotIndex, int value)
void ProcessSlotItems(int slotIndex, int value, int count, int processCount, out int processedValue, out int processedCount)
void DropAllItems(Vector3 position)
int GetSlotValue(int slotIndex)