MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / beginObject

Method beginObject

MonaServer/sources/ScriptWriter.cpp:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103
104UInt64 ScriptWriter::beginObject(const char* type) {
105 start();
106 lua_newtable(_pState);
107 if(type) {
108 lua_pushstring(_pState,type);
109 lua_setfield(_pState,-2,"__type");
110 }
111 _layers.push_back(0);
112 return reference();
113}
114
115UInt64 ScriptWriter::beginArray(UInt32 size) {
116 start();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected