What would be prefer for attach data to object?

edited September 2013 in General discussions
Which would be prefer to attach data to object?
Attach to object section

[Boss]
Graphics = Graphics
xxx = xxx
; Data attach
HP = 30
MP = 50
AttackCycle = 20

Define in other section then contain object
[Boss]
object = BossObject
HP = 30
MP = 50
AttackCycle = 20

Comments

  • edited September 2013
    I usually go for the first version, as I find it simpler to use. :)
  • edited September 2013
    So you use the first version then define your own class use to create the special object instance with Scroll?
  • edited September 2013
    Not always. I use a custom class if I have a custom behavior that requires it. If it's only for storage or for something generic (like UI menus & buttons), I don't have a custom C++ class for those objects, I use the default ScrollObject.
Sign In or Register to comment.