Thanks, Currently I try to work through the tutorials and wrap all the classes and methods needed in there.
I have already wrapped a few:
Tutorials/"00 - Start" - "07 - Mesh"
Advanced/2-Animation, Physics, Rendering/Rendering/"01 - Rendering" - "07 - Motion Blur"
And at the moment I want to wrap some of the Game Basics stuff, but this isn't that easy. I have managed to wrap the stuff for the first two tutorials, but the third seems to be a bit harder to implement in C# and C++/CLI.
The current Problem: The Player class is inherited of EsenthelNet.Game.Chr, the Chr class looks (very roughly) like this (Chr : Obj inheritance is hidden):
Code:
public ref class Chr {
internal:
EE::Game::Chr* chr;
public:
virtual void Update() { ... }
};
Now in the wrapped World Manager only the EE Chr is updated, so only chr->update() gets called, but the managed Update method doesn't get called.
So the overriden Update method in the managed Player class never gets called. Solutions might be:
1) Manually iterate through all managed Players and call Update.
2) Somehow store the ObjMemx containers in the World Manager wrapper and call the managed update methods in the Update() method of the wrapper class.
But currently I'm still looking for cleaner and better solution for this, all the World Manager stuff seems to be pretty hard to wrap, and needs lots of tricks
best regards,
Kevin