diff options
author | Stijn Buys <ingar@osirion.org> | 2012-04-22 19:48:27 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-04-22 19:48:27 +0000 |
commit | 8f124fabdfd6761cefbcc2c4120ba325692f5d0b (patch) | |
tree | 21d38bdc6088654802d736dcb905429c42bd591a /src/core/slot.cc | |
parent | d1931b1ebbe79cbd0f41290acbf9cb6d4c462878 (diff) |
Initial support for per-entity weapon slots.
Diffstat (limited to 'src/core/slot.cc')
-rw-r--r-- | src/core/slot.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/slot.cc b/src/core/slot.cc new file mode 100644 index 0000000..1b3e648 --- /dev/null +++ b/src/core/slot.cc @@ -0,0 +1,33 @@ +/* + core/slot.cc + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2. +*/ + +#include "core/slot.h" +#include "core/item.h" + +namespace core +{ + +Slot::Slot() +{ + slot_item = 0; +} + +Slot::Slot(const math::Vector3f &location) +{ + slot_item = 0; + slot_location.assign(location); +} + + +Slot::~Slot() +{ + slot_item = 0; +} + +} // namespace core + + + |