Copying a script object in C++
gamedev.net
I've declared an object type in AS:class MyMsg : IMessage{ int iValue = 0;}IMessage is just an empty interface. Now I want to send that message to another object with a delay:MyMsg msg;msg.iValue = 42;GetObject().PostMessage(msg, 0.5);PostMessage is implemented on the C++ side and now needs to duplicate the object, so that it can return to the script and let msg get dest
0 Comments ·0 Shares ·41 Views