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

Public 成员函数

override int GetSlotCapacity (int slotIndex, int value)
override void AddSlotItems (int slotIndex, int value, int count)
override int RemoveSlotItems (int slotIndex, int count)
 
返回
实际移除的数量

override void OnEntityRemoved ()
virtual void Update (float dt)
virtual void UpdateSmeltingRecipe ()
 更新配方逻辑
virtual bool UseFuel ()
 使用燃料逻辑,目前返回值在API熔炉中无作用
virtual void StopSmelting (bool resetProgress)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
override void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
virtual CraftingRecipe FindSmeltingRecipe (float heatLevel)
Public 成员函数 继承自 Game.ComponentInventoryBase
ComponentPlayer FindInteractingPlayer ()
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
override void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
virtual int GetSlotValue (int slotIndex)
virtual int GetSlotCount (int slotIndex)
virtual int GetSlotProcessCapacity (int slotIndex, int value)
virtual void ProcessSlotItems (int slotIndex, int value, int count, int processCount, out int processedValue, out int processedCount)
virtual void DropAllItems (Vector3 position)
Public 成员函数 继承自 GameEntitySystem.Component
virtual IEnumerable< EntityGetOwnedEntities ()
virtual void OnEntityAdded ()
virtual void Dispose ()
virtual void InheritFromComponent (Component baseComponent)
virtual void Initialize (Entity entity, ValuesDictionary valuesDictionary)

Public 属性

SubsystemTerrain m_subsystemTerrain
SubsystemExplosions m_subsystemExplosions
ComponentBlockEntity m_componentBlockEntity
SubsystemGameInfo m_subsystemGameInfo
SubsystemTime m_subsystemTime
FireParticleSystem m_fireParticleSystem
SubsystemParticles m_subsystemParticles
bool StopFuelWhenNoRecipeIsActive = true
float SmeltSpeed = 0.15f
float SmeltProgressReductionSpeed = float.PositiveInfinity
 没有燃料时,冶炼进度倒退速率
float FuelTimeEfficiency = 1f
 使用燃料时,燃料实际补充的时间倍数
float m_fuelEndTime
 燃料耗尽时间 开发时,注意这个不能改成{get;set;}形式,否则会出现mod兼容问题
int m_furnaceSize
string[] m_matchedIngredients = new string[9]
float m_heatLevel
bool m_updateSmeltingRecipe
CraftingRecipe m_smeltingRecipe
float m_smeltingProgress
Public 属性 继承自 Game.ComponentInventoryBase
List< Slotm_slots = []
Random m_random = new()
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

属性

virtual float FireTimeRemaining [get]
virtual float m_fireTimeRemaining [get, set]
virtual int RemainsSlotIndex [get]
virtual int ResultSlotIndex [get]
virtual int FuelSlotIndex [get]
virtual float HeatLevel [get]
virtual float SmeltingProgress [get]
UpdateOrder UpdateOrder [get]
属性 继承自 Game.ComponentInventoryBase
Project IInventory. Project [get]
virtual int SlotsCount [get]
virtual int VisibleSlotsCount [get, set]
virtual int ActiveSlotIndex [get, set]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]

额外继承的成员函数

静态 Public 成员函数 继承自 Game.ComponentInventoryBase
static int FindAcquireSlotForItem (IInventory inventory, int value)
static int AcquireItems (IInventory inventory, int value, int count)
static void DropSlotItems (IInventory inventory, int slotIndex, Vector3 position, Vector3 velocity)
包函数 继承自 GameEntitySystem.Component
void DisposeInternal ()

详细描述

在文件 ComponentFurnace.cs7 行定义.

成员函数说明

◆ AddSlotItems()

override void Game.ComponentFurnace.AddSlotItems ( int slotIndex,
int value,
int count )
virtual

重载 Game.ComponentInventoryBase .

在文件 ComponentFurnace.cs84 行定义.

◆ FindSmeltingRecipe()

virtual CraftingRecipe Game.ComponentFurnace.FindSmeltingRecipe ( float heatLevel)
virtual

在文件 ComponentFurnace.cs236 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetSlotCapacity()

override int Game.ComponentFurnace.GetSlotCapacity ( int slotIndex,
int value )
virtual

重载 Game.ComponentInventoryBase .

在文件 ComponentFurnace.cs74 行定义.

函数调用图:

◆ Load()

override void Game.ComponentFurnace.Load ( ValuesDictionary valuesDictionary,
IdToEntityMap idToEntityMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentFurnace.cs215 行定义.

◆ OnEntityRemoved()

override void Game.ComponentFurnace.OnEntityRemoved ( )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentFurnace.cs94 行定义.

◆ RemoveSlotItems()

override int Game.ComponentFurnace.RemoveSlotItems ( int slotIndex,
int count )
virtual

返回
实际移除的数量

重载 Game.ComponentInventoryBase .

在文件 ComponentFurnace.cs89 行定义.

◆ Save()

override void Game.ComponentFurnace.Save ( ValuesDictionary valuesDictionary,
EntityToIdMap entityToIdMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentFurnace.cs230 行定义.

◆ StopSmelting()

virtual void Game.ComponentFurnace.StopSmelting ( bool resetProgress)
virtual

在文件 ComponentFurnace.cs207 行定义.

这是这个函数的调用关系图:

◆ Update()

virtual void Game.ComponentFurnace.Update ( float dt)
virtual

实现了 Game.IUpdateable.

在文件 ComponentFurnace.cs98 行定义.

函数调用图:

◆ UpdateSmeltingRecipe()

virtual void Game.ComponentFurnace.UpdateSmeltingRecipe ( )
virtual

更新配方逻辑

在文件 ComponentFurnace.cs163 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ UseFuel()

virtual bool Game.ComponentFurnace.UseFuel ( )
virtual

使用燃料逻辑,目前返回值在API熔炉中无作用

返回
是否成功消耗燃料

在文件 ComponentFurnace.cs187 行定义.

函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ FuelTimeEfficiency

float Game.ComponentFurnace.FuelTimeEfficiency = 1f

使用燃料时,燃料实际补充的时间倍数

在文件 ComponentFurnace.cs36 行定义.

◆ m_componentBlockEntity

ComponentBlockEntity Game.ComponentFurnace.m_componentBlockEntity

在文件 ComponentFurnace.cs12 行定义.

◆ m_fireParticleSystem

FireParticleSystem Game.ComponentFurnace.m_fireParticleSystem

在文件 ComponentFurnace.cs20 行定义.

◆ m_fuelEndTime

float Game.ComponentFurnace.m_fuelEndTime

燃料耗尽时间 开发时,注意这个不能改成{get;set;}形式,否则会出现mod兼容问题

在文件 ComponentFurnace.cs42 行定义.

◆ m_furnaceSize

int Game.ComponentFurnace.m_furnaceSize

在文件 ComponentFurnace.cs48 行定义.

◆ m_heatLevel

float Game.ComponentFurnace.m_heatLevel

在文件 ComponentFurnace.cs54 行定义.

◆ m_matchedIngredients

string [] Game.ComponentFurnace.m_matchedIngredients = new string[9]

在文件 ComponentFurnace.cs50 行定义.

◆ m_smeltingProgress

float Game.ComponentFurnace.m_smeltingProgress

在文件 ComponentFurnace.cs60 行定义.

◆ m_smeltingRecipe

CraftingRecipe Game.ComponentFurnace.m_smeltingRecipe

在文件 ComponentFurnace.cs58 行定义.

◆ m_subsystemExplosions

SubsystemExplosions Game.ComponentFurnace.m_subsystemExplosions

在文件 ComponentFurnace.cs10 行定义.

◆ m_subsystemGameInfo

SubsystemGameInfo Game.ComponentFurnace.m_subsystemGameInfo

在文件 ComponentFurnace.cs16 行定义.

◆ m_subsystemParticles

SubsystemParticles Game.ComponentFurnace.m_subsystemParticles

在文件 ComponentFurnace.cs22 行定义.

◆ m_subsystemTerrain

SubsystemTerrain Game.ComponentFurnace.m_subsystemTerrain

在文件 ComponentFurnace.cs8 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentFurnace.m_subsystemTime

在文件 ComponentFurnace.cs18 行定义.

◆ m_updateSmeltingRecipe

bool Game.ComponentFurnace.m_updateSmeltingRecipe

在文件 ComponentFurnace.cs56 行定义.

◆ SmeltProgressReductionSpeed

float Game.ComponentFurnace.SmeltProgressReductionSpeed = float.PositiveInfinity

没有燃料时,冶炼进度倒退速率

在文件 ComponentFurnace.cs31 行定义.

◆ SmeltSpeed

float Game.ComponentFurnace.SmeltSpeed = 0.15f

在文件 ComponentFurnace.cs26 行定义.

◆ StopFuelWhenNoRecipeIsActive

bool Game.ComponentFurnace.StopFuelWhenNoRecipeIsActive = true

在文件 ComponentFurnace.cs24 行定义.

属性说明

◆ FireTimeRemaining

virtual float Game.ComponentFurnace.FireTimeRemaining
get

在文件 ComponentFurnace.cs44 行定义.

◆ FuelSlotIndex

virtual int Game.ComponentFurnace.FuelSlotIndex
get

在文件 ComponentFurnace.cs66 行定义.

◆ HeatLevel

virtual float Game.ComponentFurnace.HeatLevel
get

在文件 ComponentFurnace.cs68 行定义.

◆ m_fireTimeRemaining

virtual float Game.ComponentFurnace.m_fireTimeRemaining
getset

在文件 ComponentFurnace.cs52 行定义.

◆ RemainsSlotIndex

virtual int Game.ComponentFurnace.RemainsSlotIndex
get

在文件 ComponentFurnace.cs62 行定义.

◆ ResultSlotIndex

virtual int Game.ComponentFurnace.ResultSlotIndex
get

在文件 ComponentFurnace.cs64 行定义.

◆ SmeltingProgress

virtual float Game.ComponentFurnace.SmeltingProgress
get

在文件 ComponentFurnace.cs70 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentFurnace.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentFurnace.cs72 行定义.


该类的文档由以下文件生成: