Skip to content

Class: MockCVertex ​

Mock of a game-level vertex object for jest/node.

Implements ​

  • GameGraph__CVertex

Constructors ​

Constructor ​

ts
new MockCVertex(vertexId: number): MockCVertex;

Parameters ​

ParameterType
vertexIdnumber

Returns ​

MockCVertex

Methods ​

create() ​

ts
static create(vertexId?: number): MockCVertex;

Parameters ​

ParameterTypeDefault value
vertexIdnumber0

Returns ​

MockCVertex


mock() ​

ts
static mock(vertexId?: number): GameGraph__CVertex;

Parameters ​

ParameterTypeDefault value
vertexIdnumber0

Returns ​

GameGraph__CVertex

Properties ​

__name ​

ts
__name: string = "GameGraph__CVertex";

LuaBind instance constructor name.

Implementation of ​

ts
GameGraph__CVertex.__name

game_point ​

ts
game_point: Mock<() => MockVector>;

Get this point position in global game space.

Returns ​

Game-space position.

Implementation of ​

ts
GameGraph__CVertex.game_point

gamePoint ​

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_id

level_point ​

ts
level_point: Mock<() => MockVector>;

Get this point position in its level.

Returns ​

Level-space position.

Implementation of ​

ts
GameGraph__CVertex.level_point

level_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_id

levelPoint ​

ts
levelPoint: MockVector;

vertexId ​

ts
vertexId: number;