summary refs log tree commit diff stats
path: root/src/components/prototypable.h
blob: c0dd9725626ca2b759e96604e8f7de6c69450978 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PROTOTYPABLE_H_817F2205
#define PROTOTYPABLE_H_817F2205

#include "component.h"
#include "entity_manager.h"

class PrototypableComponent : public Component {
public:

  using id_type = EntityManager::id_type;

  /**
   * The index of the object in the map definition.
   */
  size_t mapObjectIndex;

  /**
   * The name of the prototype that the object was spawned from.
   */
  std::string prototypeId;
};

#endif /* end of include guard: PROTOTYPABLE_H_817F2205 */