Pyrogenesis trunk
Namespaces | Functions
JSInterface_Simulation.cpp File Reference
#include "precompiled.h"
#include "JSInterface_Simulation.h"
#include "graphics/GameView.h"
#include "ps/ConfigDB.h"
#include "ps/Game.h"
#include "ps/GameSetup/Config.h"
#include "ps/Pyrogenesis.h"
#include "scriptinterface/FunctionWrapper.h"
#include "scriptinterface/Object.h"
#include "scriptinterface/StructuredClone.h"
#include "simulation2/components/ICmpAIManager.h"
#include "simulation2/components/ICmpCommandQueue.h"
#include "simulation2/components/ICmpGuiInterface.h"
#include "simulation2/components/ICmpObstruction.h"
#include "simulation2/components/ICmpPosition.h"
#include "simulation2/components/ICmpSelectable.h"
#include "simulation2/helpers/Geometry.h"
#include "simulation2/helpers/Selection.h"
#include "simulation2/Simulation2.h"
#include "simulation2/system/Entity.h"
#include <array>
#include <fstream>
Include dependency graph for JSInterface_Simulation.cpp:

Namespaces

namespace  JSI_Simulation
 

Functions

JS::Value JSI_Simulation::GuiInterfaceCall (const ScriptInterface &scriptInterface, const std::wstring &name, JS::HandleValue data)
 
void JSI_Simulation::PostNetworkCommand (const ScriptInterface &scriptInterface, JS::HandleValue cmd)
 
void JSI_Simulation::DumpSimState ()
 
entity_id_t JSI_Simulation::PickEntityAtPoint (int x, int y)
 
std::vector< entity_id_tJSI_Simulation::PickPlayerEntitiesInRect (int x0, int y0, int x1, int y1, int player)
 
std::vector< entity_id_tJSI_Simulation::PickPlayerEntitiesOnScreen (int player)
 
std::vector< entity_id_tJSI_Simulation::PickNonGaiaEntitiesOnScreen ()
 
std::vector< entity_id_tJSI_Simulation::GetEntitiesWithStaticObstructionOnScreen ()
 
JS::Value JSI_Simulation::GetEdgesOfStaticObstructionsOnScreenNearTo (const ScriptInterface &scriptInterface, entity_pos_t x, entity_pos_t z)
 
std::vector< entity_id_tJSI_Simulation::PickSimilarPlayerEntities (const std::string &templateName, bool includeOffScreen, bool matchRank, bool allowFoundations)
 
JS::Value JSI_Simulation::GetAIs (const ScriptInterface &scriptInterface)
 
void JSI_Simulation::SetBoundingBoxDebugOverlay (bool enabled)
 
void JSI_Simulation::RegisterScriptFunctions (const ScriptRequest &rq)