-added more documentation
-remove update() function from entity -currently max supported components count is 64 per type
This commit is contained in:
parent
546b73c567
commit
845f468d59
10 changed files with 199 additions and 64 deletions
|
|
@ -18,6 +18,8 @@ import ecs.manager;
|
|||
*<br/>-void onDestroy();
|
||||
*<br/>-void onAddEntity(EntitesData);
|
||||
*<br/>-void onRemoveEntity(EntitiesData);
|
||||
*<br/>-void onChangeEntity(EntitiesData);
|
||||
*<br/>-void handleEvent(Entity*, Event);
|
||||
*/
|
||||
struct System
|
||||
{
|
||||
|
|
@ -82,14 +84,14 @@ struct System
|
|||
return cast(const(char)[]) m_name;
|
||||
}
|
||||
|
||||
package:
|
||||
|
||||
struct EventCaller
|
||||
{
|
||||
ushort id;
|
||||
void* callback;
|
||||
}
|
||||
|
||||
package:
|
||||
|
||||
///should system be executed in current update?
|
||||
bool m_execute = true;
|
||||
///system id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue