working on adding a entity workflow
This commit is contained in:
29
source/game_source/entity_handler.h
Normal file
29
source/game_source/entity_handler.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef ENTITY_HEADER_H
|
||||
#define ENTITY_HEADER_H
|
||||
|
||||
#define ENTITY_LIST_ACTION_ADD
|
||||
#define ENTITY_LIST_ACTION_REMOVE
|
||||
#include "entity.h"
|
||||
|
||||
typedef struct {
|
||||
int count;
|
||||
entity* entities[256];
|
||||
} entity_list;
|
||||
|
||||
typedef struct {
|
||||
int action;
|
||||
int sizeOfData;
|
||||
void* data;
|
||||
}entity_list_transaction;
|
||||
|
||||
void EntityListInit(entity_list* list);
|
||||
int EntityListAddEntity(entity* ent);
|
||||
int EntityListRemoveEntity(entity* ent);
|
||||
|
||||
int EntityListTransactionSet(entity_list_transaction* ta, int action, void* data);
|
||||
int EntityListTransactionSend(entity_list* list, entity_list_transaction* ta);
|
||||
|
||||
int EntityListUpdate();
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user