Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.IInventory
类 Game.IInventory 继承关系图:

Public 成员函数

int GetSlotValue (int slotIndex)
int GetSlotCount (int slotIndex)
int GetSlotCapacity (int slotIndex, int value)
int GetSlotProcessCapacity (int slotIndex, int value)
void AddSlotItems (int slotIndex, int value, int count)
void ProcessSlotItems (int slotIndex, int value, int count, int processCount, out int processedValue, out int processedCount)
int RemoveSlotItems (int slotIndex, int count)
 
返回
实际移除的数量

void DropAllItems (Vector3 position)

属性

Project Project [get]
int SlotsCount [get]
int VisibleSlotsCount [get, set]
int ActiveSlotIndex [get, set]

详细描述

在文件 IInventory.cs5 行定义.

成员函数说明

◆ AddSlotItems()

void Game.IInventory.AddSlotItems ( int slotIndex,
int value,
int count )

◆ DropAllItems()

void Game.IInventory.DropAllItems ( Vector3 position)

◆ GetSlotCapacity()

int Game.IInventory.GetSlotCapacity ( int slotIndex,
int value )

◆ GetSlotCount()

int Game.IInventory.GetSlotCount ( int slotIndex)

◆ GetSlotProcessCapacity()

int Game.IInventory.GetSlotProcessCapacity ( int slotIndex,
int value )

◆ GetSlotValue()

int Game.IInventory.GetSlotValue ( int slotIndex)

◆ ProcessSlotItems()

void Game.IInventory.ProcessSlotItems ( int slotIndex,
int value,
int count,
int processCount,
out int processedValue,
out int processedCount )

◆ RemoveSlotItems()

int Game.IInventory.RemoveSlotItems ( int slotIndex,
int count )

属性说明

◆ ActiveSlotIndex

int Game.IInventory.ActiveSlotIndex
getset

◆ Project

Project Game.IInventory.Project
get

◆ SlotsCount

int Game.IInventory.SlotsCount
get

◆ VisibleSlotsCount

int Game.IInventory.VisibleSlotsCount
getset

该接口的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Game/IInventory.cs