Krice
Arcane
- Joined
- May 29, 2010
- Messages
- 1,355
I had to add a new game object type for powder and liquid containers. There is an option to use existing objects, but they would then have some extra features added which is always a bad idea. I have done that mistake before and it just doesn't work well when you have "empty" data for some objects etc. First I thought this would be painful, because OOP, but it was actually quite easy in this case and took only 32 minutes. The engine is somewhat data-driven and got in a new object type without too much hassle. Objects are stored and handled (in display map etc.) by their base class handle, so that's also one reason why it was easy.