Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/extension.h')
-rw-r--r--src/core/extension.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/core/extension.h b/src/core/extension.h
index 0b9ecad..91ba906 100644
--- a/src/core/extension.h
+++ b/src/core/extension.h
@@ -7,23 +7,30 @@
#ifndef __INCLUDED_CORE_EXTENSION_H__
#define __INCLUDED_CORE_EXTENSION_H__
-namespace core {
- class Extension;
+namespace core
+{
+class Extension;
}
#include "core/entity.h"
-namespace core {
+namespace core
+{
/// a abstract base class for entity extensions
-class Extension {
+class Extension
+{
public:
/// extension types
- enum Type { Client=0, Render=1, Sound=2, Game=3 };
+ enum Type { Client = 0, Render = 1, Sound = 2, Game = 3 };
- inline Type type() const { return extension_type; }
+ inline Type type() const {
+ return extension_type;
+ }
- inline Entity *entity() { return extension_entity; }
+ inline Entity *entity() {
+ return extension_entity;
+ }
Extension(Type type, Entity *entity);
virtual ~Extension();
@@ -33,7 +40,7 @@ public:
private:
Type extension_type;
Entity *extension_entity;
-
+
};
} // namespace core