INITIAL COMMIT
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// vim:fileencoding=utf-8:foldmethod=marker
|
||||
|
||||
#ifndef ENTITY_ID_H
|
||||
#define ENTITY_ID_H
|
||||
|
||||
#include "wapp/wapp.h"
|
||||
|
||||
#define MAX_ENTITY_COUNT 16384
|
||||
|
||||
typedef struct EntityID {
|
||||
u32 index;
|
||||
} EntityID;
|
||||
typedef EntityID *EntityIdArray;
|
||||
|
||||
#define INVALID_ID ((EntityID){})
|
||||
#define IS_INVALID_ID(ID) (ID.index == INVALID_ID.index)
|
||||
|
||||
#endif // !ENTITY_ID_H
|
||||
Reference in New Issue
Block a user