Irredit plugins.
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Yeah, it sends an event to the GameManager object, and it tells the game manager to load a new level. I just need to know how to get the custom attributes to show up in Irredit.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Did you check with the Irrlicht help? Maybe some const is missing, that is what took me some hours of search.3DModelerMan wrote:This is my codeCode: Select all
void CLevelEndCheckpoint::serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) { ISceneNode::serializeAttributes(out, options); out->setAttribute("Radius", m_radius); out->setAttribute("Box", m_boundingBox); out->setAttribute("Next_checkpoint_ID", m_nextID); out->setAttribute("Load_level_filename", *m_levelFilename); out->setAttribute("Script_filename", *m_scriptFilename); } void CLevelEndCheckpoint::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options) { ISceneNode::deserializeAttributes(in, options); m_radius = in->getAttributeAsFloat("Radius"); m_boundingBox = in->getAttributeAsBox3d("Box"); m_nextID = in->getAttributeAsInt("Next_checkpoint_ID"); *m_levelFilename = *in->getAttributeAsEnumeration("Load_level_filename");//Watch these for errors. *m_scriptFilename = *in->getAttributeAsEnumeration("Script_filename"); }
Dustbin::Games on the web: https://www.dustbin-online.de/
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
Dustbin::Games on facebook: https://www.facebook.com/dustbingames/
Dustbin::Games on twitter: https://twitter.com/dustbingames
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
I added in a const after serialize attributes and now Irredit crashes, so at least I know it's trying to do something. I'll debug my code to see whats up.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar