summaryrefslogtreecommitdiff
path: root/src/game-server/spawnareacomponent.h
AgeCommit message (Collapse)AuthorFilesLines
2013-03-25Changed Item to a component of ActorThorbjørn Lindeijer1-1/+1
Items also have positions, so the ItemComponent only makes sense as part of an Actor. Later on it will probably be part of an entity that also has an ActorComponent. Since it was annoying to update all the places where items were created, I've introduced a function for this. The component types are now prefixed with "CT_" because I wanted to introduce an 'Item' namespace which would otherwise be conflicting. The component types enum isn't used much in the code so it can look a bit ugly. Reviewed-by: Yohann Ferreira
2013-03-25Changed SpawnArea and TriggerArea to components of EntityThorbjørn Lindeijer1-0/+62
Well, first visible change is that everything just gets longer to read. Reviewed-by: Yohann Ferreira