Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JSI_Simulation Namespace Reference

Functions

JS::Value GuiInterfaceCall (const ScriptInterface &scriptInterface, const std::wstring &name, JS::HandleValue data)
 
void PostNetworkCommand (const ScriptInterface &scriptInterface, JS::HandleValue cmd)
 
void DumpSimState ()
 
entity_id_t PickEntityAtPoint (int x, int y)
 
std::vector< entity_id_tPickPlayerEntitiesInRect (int x0, int y0, int x1, int y1, int player)
 
std::vector< entity_id_tPickPlayerEntitiesOnScreen (int player)
 
std::vector< entity_id_tPickNonGaiaEntitiesOnScreen ()
 
std::vector< entity_id_tGetEntitiesWithStaticObstructionOnScreen ()
 
JS::Value GetEdgesOfStaticObstructionsOnScreenNearTo (const ScriptInterface &scriptInterface, entity_pos_t x, entity_pos_t z)
 
std::vector< entity_id_tPickSimilarPlayerEntities (const std::string &templateName, bool includeOffScreen, bool matchRank, bool allowFoundations)
 
JS::Value GetAIs (const ScriptInterface &scriptInterface)
 
void SetBoundingBoxDebugOverlay (bool enabled)
 
void RegisterScriptFunctions (const ScriptRequest &rq)
 

Function Documentation

◆ DumpSimState()

void JSI_Simulation::DumpSimState ( )

◆ GetAIs()

JS::Value JSI_Simulation::GetAIs ( const ScriptInterface scriptInterface)

◆ GetEdgesOfStaticObstructionsOnScreenNearTo()

JS::Value JSI_Simulation::GetEdgesOfStaticObstructionsOnScreenNearTo ( const ScriptInterface scriptInterface,
entity_pos_t  x,
entity_pos_t  z 
)

◆ GetEntitiesWithStaticObstructionOnScreen()

std::vector< entity_id_t > JSI_Simulation::GetEntitiesWithStaticObstructionOnScreen ( )

◆ GuiInterfaceCall()

JS::Value JSI_Simulation::GuiInterfaceCall ( const ScriptInterface scriptInterface,
const std::wstring &  name,
JS::HandleValue  data 
)

◆ PickEntityAtPoint()

entity_id_t JSI_Simulation::PickEntityAtPoint ( int  x,
int  y 
)

◆ PickNonGaiaEntitiesOnScreen()

std::vector< entity_id_t > JSI_Simulation::PickNonGaiaEntitiesOnScreen ( )

◆ PickPlayerEntitiesInRect()

std::vector< entity_id_t > JSI_Simulation::PickPlayerEntitiesInRect ( int  x0,
int  y0,
int  x1,
int  y1,
int  player 
)

◆ PickPlayerEntitiesOnScreen()

std::vector< entity_id_t > JSI_Simulation::PickPlayerEntitiesOnScreen ( int  player)

◆ PickSimilarPlayerEntities()

std::vector< entity_id_t > JSI_Simulation::PickSimilarPlayerEntities ( const std::string &  templateName,
bool  includeOffScreen,
bool  matchRank,
bool  allowFoundations 
)

◆ PostNetworkCommand()

void JSI_Simulation::PostNetworkCommand ( const ScriptInterface scriptInterface,
JS::HandleValue  cmd 
)

◆ RegisterScriptFunctions()

void JSI_Simulation::RegisterScriptFunctions ( const ScriptRequest rq)

◆ SetBoundingBoxDebugOverlay()

void JSI_Simulation::SetBoundingBoxDebugOverlay ( bool  enabled)