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

Public 成员函数

virtual void ShowAimingSights (Vector3 position, Vector3 direction)
virtual void Update (float dt)
virtual void Draw (Camera camera, int drawOrder)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
Public 成员函数 继承自 GameEntitySystem.Component
virtual IEnumerable< EntityGetOwnedEntities ()
virtual void OnEntityAdded ()
virtual void OnEntityRemoved ()
virtual void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
virtual void Dispose ()
virtual void InheritFromComponent (Component baseComponent)
virtual void Initialize (Entity entity, ValuesDictionary valuesDictionary)

Public 属性

ComponentPlayer m_componentPlayer
readonly PrimitivesRenderer2D m_primitivesRenderer2D = new()
readonly PrimitivesRenderer3D m_primitivesRenderer3D = new()
Vector3 m_sightsPosition
Vector3 m_sightsDirection
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

静态 Public 属性

static int[] m_drawOrders = [2000]

属性

bool IsSightsVisible [get, set]
UpdateOrder UpdateOrder [get]
int[] DrawOrders [get]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]

额外继承的成员函数

包函数 继承自 GameEntitySystem.Component
void DisposeInternal ()

详细描述

在文件 ComponentAimingSights.cs7 行定义.

成员函数说明

◆ Draw()

virtual void Game.ComponentAimingSights.Draw ( Camera camera,
int drawOrder )
virtual

实现了 Game.IDrawable.

在文件 ComponentAimingSights.cs36 行定义.

函数调用图:

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentAimingSights.cs108 行定义.

◆ ShowAimingSights()

virtual void Game.ComponentAimingSights.ShowAimingSights ( Vector3 position,
Vector3 direction )
virtual

在文件 ComponentAimingSights.cs26 行定义.

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

◆ Update()

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

实现了 Game.IUpdateable.

在文件 ComponentAimingSights.cs32 行定义.

类成员变量说明

◆ m_componentPlayer

ComponentPlayer Game.ComponentAimingSights.m_componentPlayer

在文件 ComponentAimingSights.cs8 行定义.

◆ m_drawOrders

int [] Game.ComponentAimingSights.m_drawOrders = [2000]
static

在文件 ComponentAimingSights.cs18 行定义.

◆ m_primitivesRenderer2D

readonly PrimitivesRenderer2D Game.ComponentAimingSights.m_primitivesRenderer2D = new()

在文件 ComponentAimingSights.cs10 行定义.

◆ m_primitivesRenderer3D

readonly PrimitivesRenderer3D Game.ComponentAimingSights.m_primitivesRenderer3D = new()

在文件 ComponentAimingSights.cs12 行定义.

◆ m_sightsDirection

Vector3 Game.ComponentAimingSights.m_sightsDirection

在文件 ComponentAimingSights.cs16 行定义.

◆ m_sightsPosition

Vector3 Game.ComponentAimingSights.m_sightsPosition

在文件 ComponentAimingSights.cs14 行定义.

属性说明

◆ DrawOrders

int [] Game.ComponentAimingSights.DrawOrders
get

实现了 Game.IDrawable.

在文件 ComponentAimingSights.cs24 行定义.

◆ IsSightsVisible

bool Game.ComponentAimingSights.IsSightsVisible
getset

在文件 ComponentAimingSights.cs20 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentAimingSights.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentAimingSights.cs22 行定义.


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