diff options
| author | nathan <nathansmith@disroot.org> | 2025-10-26 00:10:58 +0000 |
|---|---|---|
| committer | nathan <nathansmith@disroot.org> | 2025-10-26 00:10:58 +0000 |
| commit | 5925230971875ba3e6e591f0655cf84b739b50fc (patch) | |
| tree | a08383647602ec9afc4cce49da4f25242e9e236b /src/entity.h | |
| parent | 361c596fa09e9bac1d256ee21da63e352d796fa3 (diff) | |
| download | FindThings-5925230971875ba3e6e591f0655cf84b739b50fc.tar.gz FindThings-5925230971875ba3e6e591f0655cf84b739b50fc.tar.bz2 FindThings-5925230971875ba3e6e591f0655cf84b739b50fc.zip | |
New entity system is working (:
Diffstat (limited to 'src/entity.h')
| -rw-r--r-- | src/entity.h | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/src/entity.h b/src/entity.h index 3170059..a394d7a 100644 --- a/src/entity.h +++ b/src/entity.h @@ -7,39 +7,6 @@ #define ENTITY_COUNT 14 -#define TREE_SCALE 40.0 -#define BUSH_SCALE 3.0 -#define FLOWER_SCALE 3.0 - -#define POND_SIZE 250.0 -#define POND_HEIGHT 15.0 - -#define UTILITY_POLE_HEIGHT 100.0 -#define UTILITY_POLE_RADIUS 3.0 - -#define SAMANTHA_WIDTH (2.65966 / 2.0) -#define SAMANTHA_HEIGHT (3.21054 / 2.0) -#define SAMANTHA_THICKNESS (1.46845 / 2.0) -#define SAMANTHA_STATIC_SPEED 24 -#define SAMANTHA_STATIC_FRAMES 4 - -#define SAMANTHAS_SPOT_SIZE 10 -#define SAMANTHAS_SPOT_HEIGHT 5 - -#define TRASHCAN_SCALE 2.0 -#define TRASHCAN_FRAMES 4 -#define TRASHCAN_ANIMATION_SPEED 6 -#define TRASHCAN_WIDTH 45.0 -#define TRASHCAN_HEIGHT 60.0 - -#define TRASH_SCALE 2.0 - -#define MEDICAL_TRASH_SCALE 2.0 - -#define SHOPKEEPER_WIDTH (2.04211 / 2.0) -#define SHOPKEEPER_HEIGHT (2.59521 / 2.0) -#define SHOPKEEPER_THICKNESS (0.493349 / 2.0) - #define INTERACTION_MENU_MAX 9 #define INTERACTION_LABEL_MAX 64 #define ENTITY_DEFAULT_STATE -1 @@ -109,8 +76,12 @@ extern const EntityEntry entityEntries[ENTITY_COUNT]; Entity createEntity(EntityId id, Vector3 position); void updateEntity(Entity* entity, Game* game); +void closeEntity(Entity* entity); + void setEntityPosition(Entity* entity, Vector3 position); void placeEntityOnGround(Entity* entity, const World* world); + +bool entityIsPlace(EntityId id); bool entityCanBeSelected(EntityId id); InteractionCommand interactWithEntity(Entity* entity, Game* game, |
