Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/scripting/JSInterface_Simulation.h
Show All 20 Lines | |||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
#include "simulation2/helpers/Position.h" | #include "simulation2/helpers/Position.h" | ||||
#include "simulation2/system/Entity.h" | #include "simulation2/system/Entity.h" | ||||
namespace JSI_Simulation | namespace JSI_Simulation | ||||
{ | { | ||||
JS::Value GuiInterfaceCall(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& name, JS::HandleValue data); | JS::Value GuiInterfaceCall(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& name, JS::HandleValue data); | ||||
void PostNetworkCommand(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue cmd); | void PostNetworkCommand(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue cmd); | ||||
entity_id_t PickEntityAtPoint(ScriptInterface::CxPrivate* pCxPrivate, int x, int y); | entity_id_t PickEntityAtPoint(int x, int y); | ||||
void DumpSimState(ScriptInterface::CxPrivate* pCxPrivate); | void DumpSimState(); | ||||
std::vector<entity_id_t> PickPlayerEntitiesInRect(ScriptInterface::CxPrivate* pCxPrivate, int x0, int y0, int x1, int y1, int player); | std::vector<entity_id_t> PickPlayerEntitiesInRect(int x0, int y0, int x1, int y1, int player); | ||||
std::vector<entity_id_t> PickPlayerEntitiesOnScreen(ScriptInterface::CxPrivate* pCxPrivate, int player); | std::vector<entity_id_t> PickPlayerEntitiesOnScreen(int player); | ||||
std::vector<entity_id_t> PickNonGaiaEntitiesOnScreen(ScriptInterface::CxPrivate* pCxPrivate); | std::vector<entity_id_t> PickNonGaiaEntitiesOnScreen(); | ||||
std::vector<entity_id_t> GetEntitiesWithStaticObstructionOnScreen(ScriptInterface::CxPrivate* pCxPrivate); | std::vector<entity_id_t> GetEntitiesWithStaticObstructionOnScreen(); | ||||
JS::Value GetEdgesOfStaticObstructionsOnScreenNearTo(ScriptInterface::CxPrivate* pCxPrivate, entity_pos_t x, entity_pos_t z); | JS::Value GetEdgesOfStaticObstructionsOnScreenNearTo(ScriptInterface::CxPrivate* pCxPrivate, entity_pos_t x, entity_pos_t z); | ||||
std::vector<entity_id_t> PickSimilarPlayerEntities(ScriptInterface::CxPrivate* pCxPrivate, const std::string& templateName, bool includeOffScreen, bool matchRank, bool allowFoundations); | std::vector<entity_id_t> PickSimilarPlayerEntities(const std::string& templateName, bool includeOffScreen, bool matchRank, bool allowFoundations); | ||||
JS::Value GetAIs(ScriptInterface::CxPrivate* pCxPrivate); | JS::Value GetAIs(ScriptInterface::CxPrivate* pCxPrivate); | ||||
void SetBoundingBoxDebugOverlay(ScriptInterface::CxPrivate* pCxPrivate, bool enabled); | void SetBoundingBoxDebugOverlay(bool enabled); | ||||
void RegisterScriptFunctions(const ScriptInterface& ScriptInterface); | void RegisterScriptFunctions(const ScriptInterface& ScriptInterface); | ||||
} | } | ||||
#endif // INCLUDED_JSI_SIMULATION | #endif // INCLUDED_JSI_SIMULATION |
Wildfire Games · Phabricator