hestia-rsps / hestia

An open-source Kotlin game server.
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

Objects should use `Type` component #79

Closed GregHib closed 4 years ago

GregHib commented 4 years ago

See GameObject and ObjectType

GregHib commented 4 years ago

ObjectType is separate from the object's id, which is stored in GameObject. It's dual-purpose and could be split to use the Type and have GameObject as an empty component for easy identification. But doesn't seem necessary at the moment.