16 #include "vlutil/vlMutex.h"
18 #include <luabind/luabind.hpp>
27 typedef std::vector<DtLocation3D>
Points;
29 static std::shared_ptr<DtLuaEmbarkationSlotQueryJob> Make(
42 virtual luabind::object
getObject(lua_State* L,
int& index, std::string& message)
override;
45 virtual luabind::object
getDebugObject(lua_State* L)
override {
return luabind::newtable(L);}
48 virtual void cancel(lua_State* L)
override {};
51 static void responseCallback(
DtSimMessage* msg,
void* usr);
64 std::shared_ptr<DtLuaEmbarkationSlotQueryJob> shared_from_this();
65 std::shared_ptr<const DtLuaEmbarkationSlotQueryJob> shared_from_this()
const;
71 static int theRequestId = 0;
73 return ++theRequestId;
77 friend class PathTask;
Mutex myMutex
Definition: luaEmbarkationSlotQueryJob.h:102
Definition: asciiSerializable.h:40
Interface for getting asynchronously computed data into Lua.
Definition: luaAsyncJob.h:27
virtual bool deserialize(const DtString &)=0
This function should take the string that was serialized via serialize() and fill this object with th...
DtSimObjectReference myObjectBeingQueried
Definition: luaEmbarkationSlotQueryJob.h:92
DtMutex Mutex
Definition: luaEmbarkationSlotQueryJob.h:100
virtual luabind::object getDebugObject(lua_State *L) override
Retrieve debug data, if available. Default return value is an empty table.
Definition: luaEmbarkationSlotQueryJob.h:45
virtual DtString serialize()=0
The following characters are reserved and cannot be used in serialization: '|', ':'.
int myRequestId
Definition: luaEmbarkationSlotQueryJob.h:95
File: simMsg.h.
Definition: simMessage.h:35
#define DT_DLL_vrfLua
This file is used to determine how to build.
Definition: vrfLuaDefines.h:25
bool myAllSlots
Definition: luaEmbarkationSlotQueryJob.h:93
virtual luabind::object getObject(lua_State *L, int &index, std::string &message)=0
Retrieve current value.
bool myGotResponse
Definition: luaEmbarkationSlotQueryJob.h:97
virtual DtString objectType() const =0
Should return the string name of this object. The object name should not be part of the serialization...
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
static int nextRequestId()
Definition: luaEmbarkationSlotQueryJob.h:69
Lua object class which represents a query for embarkation slot info.
Definition: luaEmbarkationSlotQueryJob.h:24
DtIfEmbarkationSlotInformationResponse::SlotInformationMap mySlotInfo
Definition: luaEmbarkationSlotQueryJob.h:98
DtSimObjectReference myQueryingObject
Definition: luaEmbarkationSlotQueryJob.h:91
std::vector< DtLocation3D > Points
Definition: luaEmbarkationSlotQueryJob.h:27
virtual void cancel(lua_State *L) override
Currently a no-op.
Definition: luaEmbarkationSlotQueryJob.h:48