diff options
Diffstat (limited to 'src/game/example/example.cc')
-rw-r--r-- | src/game/example/example.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/example/example.cc b/src/game/example/example.cc index f368556..a6372da 100644 --- a/src/game/example/example.cc +++ b/src/game/example/example.cc @@ -1,14 +1,15 @@ /* intro/intro.cc - This file is part of the Osirion project and is distributed under - the terms of the GNU General Public License version 2 + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 */ #include "core/gameserver.h" #include "example/example.h" #include "example/spectator.h" -namespace example { +namespace example +{ core::Module *factory() { @@ -47,7 +48,7 @@ Example::Example() : core::Module("The Osirion Project Example", true) cube->get_color().assign(1, 0, 0); // set RGB color red cube->set_radius(0.25f); // set radius, in game units cube->set_zone(zone); // add the entity to the zone - + core::Entity *sphere = new core::Entity(); // a new entity sphere->set_label("sphere"); sphere->set_name("The Green Sphere"); |