[source lang=cpp]
class Packet {
float x,y;
}
[source lang=cpp]
class Packet {
float x, y;
}
void Main (){
Packet p;
sendPacket((void@)@p, sizeof(p));
}
[source lang=cpp]
class Packet {
float x,y;
}
[source lang=cpp]
class Packet {
float x, y;
}
void Main (){
Packet p;
sendPacket((void@)@p, sizeof(p));
}
// AngelScriptinterface Packet;class MyClass : Packet{ float x,y;}void Main(){ MyClass c; sendPacket(@c);}
// C++void sendPacket(asIScriptStruct *pkg){ // Use the methods of asIScriptStruct to obtain the information about members to build the package sendPacket(buffer, size);}// Register the functionengine->RegisterGlobalFunction("void sendPacket(Packet @)", asFUNCTIONPR(SendPacket, (asIScriptStruct *), void), asCALL_CDECL);
// AngelScriptclass Packet{ float x,y;}void Main(){ Packet p; any a; a.store(@p); sendPacket(a);}
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game