Class: MockCVertex
Mock of a game-level vertex object for jest/node.
Implements
GameGraph__CVertex
Constructors
Constructor
ts
new MockCVertex(vertexId: number): MockCVertex;Parameters
| Parameter | Type |
|---|---|
vertexId | number |
Returns
MockCVertex
Methods
create()
ts
static create(vertexId?: number): MockCVertex;Parameters
| Parameter | Type | Default value |
|---|---|---|
vertexId | number | 0 |
Returns
MockCVertex
mock()
ts
static mock(vertexId?: number): GameGraph__CVertex;Parameters
| Parameter | Type | Default value |
|---|---|---|
vertexId | number | 0 |
Returns
GameGraph__CVertex
Properties
__name
ts
__name: string = "GameGraph__CVertex";LuaBind instance constructor name.
Implementation of
ts
GameGraph__CVertex.__namegame_point
ts
game_point: Mock<() => MockVector>;Get this point position in global game space.
Returns
Game-space position.
Implementation of
ts
GameGraph__CVertex.game_pointgamePoint
ts
gamePoint: MockVector;level_id
ts
level_id: Mock<() => number>;Get the id of the level that owns this graph point.
Returns
Level id.
Implementation of
ts
GameGraph__CVertex.level_idlevel_point
ts
level_point: Mock<() => MockVector>;Get this point position in its level.
Returns
Level-space position.
Implementation of
ts
GameGraph__CVertex.level_pointlevel_vertex_id
ts
level_vertex_id: Mock<() => number>;Get the level-graph vertex this game-graph point maps to.
Returns
Level vertex id inside the owning level.
Implementation of
ts
GameGraph__CVertex.level_vertex_idlevelPoint
ts
levelPoint: MockVector;vertexId
ts
vertexId: number;