Overworld render test.
This commit is contained in:
@@ -7,37 +7,23 @@
|
||||
|
||||
#pragma once
|
||||
#include "dusk.h"
|
||||
#include "rpg/item/inventory.h"
|
||||
|
||||
#define PLAYER_SPEED_WALK 1
|
||||
#define PLAYER_SPEED_RUN 2
|
||||
|
||||
typedef struct _entity_t entity_t;
|
||||
typedef struct entity_s entity_t;
|
||||
|
||||
typedef struct {
|
||||
uint32_t nothing;
|
||||
} playerentity_t;
|
||||
|
||||
#define PLAYER_ENTITY_ID (UINT32_MAX-1)
|
||||
|
||||
extern inventory_t PLAYER_INVENTORY;
|
||||
void *nothing;
|
||||
} player_t;
|
||||
|
||||
/**
|
||||
* Initializes the player and all player-related entities.
|
||||
*/
|
||||
void playerInit(void);
|
||||
|
||||
/**
|
||||
* Loads the player entity.
|
||||
* Initializes a player entity.
|
||||
*
|
||||
* @param entity The entity to initialize.
|
||||
* @param source The source entity to copy data from.
|
||||
* @param entity Pointer to the entity structure to initialize.
|
||||
*/
|
||||
void playerEntityLoad(entity_t *entity, const entity_t *source);
|
||||
void playerInit(entity_t *entity);
|
||||
|
||||
/**
|
||||
* Updates the player entity.
|
||||
* Updates a player entity.
|
||||
*
|
||||
* @param entity The entity to update.
|
||||
* @param entity Pointer to the entity structure to update.
|
||||
*/
|
||||
void playerEntityUpdate(entity_t *entity);
|
||||
void playerUpdate(entity_t *entity);
|
Reference in New Issue
Block a user