Exemple #1
0
void CLuaRemoteDebug::SendVariables()
{
	m_sendBuffer.Write((char)ePT_LuaVariables);

	m_sendBuffer.Write((uint8)sizeof(void*));	// Serialise out the size of pointers to cope with 32 and 64 bit systems

	// Local variables
	IScriptTable* pLocalVariables = m_pScriptSystem->GetLocalVariables();
	if (pLocalVariables)
	{
		SerializeLuaTable(pLocalVariables, m_sendBuffer, 8);
		pLocalVariables->Release();
		pLocalVariables = NULL;
	}

	SendBuffer();
}