there is now a player character and the world renders using a cammera

This commit is contained in:
2026-04-09 13:11:55 -07:00
parent 09c310cb4a
commit af639e62c3
47 changed files with 1737 additions and 83 deletions

View File

@@ -0,0 +1,36 @@
/* =============================================================================
* # Server Transactions.
* Transactions in the contexts of a entity, is an action. This action could be
* anything that my include moving, shooting, douging, etc.
*
* Transactions take an entity id, action id, argsize and user
*
*
* =============================================================================
* */
#ifndef TRANSACTIONS_H
#define ENTITY_ACTION_MOVE_UP 1
#define ENTITY_ACTION_MOVE_DOWN 2
#define ENTITY_ACTION_MOVE_LEFT 3
#define ENTITY_ACTION_MOVE_RIGHT 4
typedef struct {
int packetTpye, size;
void* packet;
}packet;
typedef struct {
int id;
int action;
int argsize;
void* userArg;
}action;
int CreateTransaction(action* act);
int GetTransaction(action* act);
int ProssesTransaction(action* act);
#define TRANSACTIONS_H
#endif