-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
386 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "coment/managers/Manager.h" | ||
#include "coment/systems/System.h" | ||
|
||
namespace coment | ||
{ | ||
/** Get the priority of this manager */ | ||
inline int Manager::getPriority() const | ||
{ | ||
return mPriority; | ||
} | ||
|
||
struct SystemPtrComparator | ||
{ | ||
bool operator()(const System* lhs, const System* rhs) | ||
{ | ||
return lhs->getPriority() > rhs->getPriority(); | ||
} | ||
}; | ||
|
||
struct ManagerPtrComparator | ||
{ | ||
bool operator()(const Manager* lhs, const Manager* rhs) | ||
{ | ||
return lhs->getPriority() > rhs->getPriority(); | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include "coment/systems/System.h" | ||
|
||
namespace coment | ||
{ | ||
template <typename... ComponentTypes> | ||
class EntitySystem | ||
: public System | ||
{ | ||
public: | ||
|
||
/** Intitialises this system with the given component types */ | ||
EntitySystem(); | ||
|
||
private: | ||
|
||
/** The entity map for this system */ | ||
|
||
}; | ||
} | ||
|
||
#include "coment/systems/EntitySystem.inl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "coment/systems/EntitySystem.h" | ||
|
||
namespace coment | ||
{ | ||
/** Intitialises this system with the given component types */ | ||
template <typename... ComponentTypes> | ||
EntitySystem::EntitySystem() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.