Creating a level editor event system
Posted
by
Vaughan Hilts
on Game Development
See other posts from Game Development
or by Vaughan Hilts
Published on 2012-06-29T03:01:44Z
Indexed on
2012/06/29
3:24 UTC
Read the original article
Hit count: 299
I'm designing a level editor for game, and I'm trying to create sort of an 'event' system so I can chain together things. If anyone has used RPG Maker, I'm trying to do similar to their system. Right now, I have an 'EventTemplate' class and a bunch of sub-classed 'EventNodes' which basically just contain properties of their data. Orginally, the IAction and IExecute interface performed logic but it was moved into a DLL to share between the two projects.
Question: How can I abstract logic from data in this case? Is my model wrong? Isn't cast typing expensive to parse these actions all the time? Should I write a 'Processor' class to execute these all? But then these actions that can do all sorts of things need to interact with all sorts of sub-systems.
© Game Development or respective owner