15 #include "vlutil/vlMutex.h"
17 #include <luabind/luabind.hpp>
26 typedef std::vector<DtLocation3D>
Points;
28 static std::shared_ptr<DtLuaEmbarkationSlotReservationJob> Make(
41 virtual luabind::object
getObject(lua_State* L,
int& index, std::string& message)
override;
44 virtual luabind::object
getDebugObject(lua_State* L)
override {
return luabind::newtable(L);}
47 virtual void cancel(lua_State* L)
override {};
50 static void responseCallback(
DtSimMessage* msg,
void* usr);
63 std::shared_ptr<DtLuaEmbarkationSlotReservationJob> shared_from_this();
64 std::shared_ptr<const DtLuaEmbarkationSlotReservationJob> shared_from_this()
const;
70 static int theRequestId = 0;
72 return ++theRequestId;
76 friend class PathTask;
DtSimObjectReference myEmbarkingObject
Definition: luaEmbarkationSlotReservationJob.h:90
std::vector< DtLocation3D > Points
Definition: luaEmbarkationSlotReservationJob.h:26
virtual luabind::object getDebugObject(lua_State *L) override
Retrieve debug data, if available. Default return value is an empty table.
Definition: luaEmbarkationSlotReservationJob.h:44
DtSimObjectReference myObjectToEmbarkOn
Definition: luaEmbarkationSlotReservationJob.h:91
int mySlotNumber
Definition: luaEmbarkationSlotReservationJob.h:92
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...
int myRequestId
Definition: luaEmbarkationSlotReservationJob.h:94
DtTaitBryan myOrientation
Definition: luaEmbarkationSlotReservationJob.h:98
virtual DtString serialize()=0
The following characters are reserved and cannot be used in serialization: '|', ':'.
File: simMsg.h.
Definition: simMessage.h:35
#define DT_DLL_vrfLua
This file is used to determine how to build.
Definition: vrfLuaDefines.h:25
virtual luabind::object getObject(lua_State *L, int &index, std::string &message)=0
Retrieve current value.
static int nextRequestId()
Definition: luaEmbarkationSlotReservationJob.h:68
bool mySlotAvailable
Definition: luaEmbarkationSlotReservationJob.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...
DtVector myPosition
Definition: luaEmbarkationSlotReservationJob.h:99
virtual void cancel(lua_State *L) override
Currently a no-op.
Definition: luaEmbarkationSlotReservationJob.h:47
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
Mutex myMutex
Definition: luaEmbarkationSlotReservationJob.h:103
Lua object class which represents a request to reserve an embarkation slot.
Definition: luaEmbarkationSlotReservationJob.h:23
bool myGotResponse
Definition: luaEmbarkationSlotReservationJob.h:96
DtMutex Mutex
Definition: luaEmbarkationSlotReservationJob.h:101