aboutsummaryrefslogtreecommitdiff
path: root/src/world.h
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-09 01:26:05 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-09 01:26:05 -0600
commit708072e716e7ab22a37f528311a433f195f75054 (patch)
treeee778b916531b8da3967ad5324019cbfb4e03e1c /src/world.h
parent3f0be672f9c5a07a98be0dc703b95f1bbe73f33e (diff)
World entries added
Diffstat (limited to 'src/world.h')
-rw-r--r--src/world.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/world.h b/src/world.h
index b075301..b3a7d69 100644
--- a/src/world.h
+++ b/src/world.h
@@ -35,4 +35,14 @@ KfError removeEntityFromWorld(World * world, EntityId id);
void updateWorld(World * world, Game * game);
void drawWorld(World * world, Game * game);
+// Used for creating worlds.
+typedef struct WorldEntry {
+ EntityType type;
+ Vector3 position;
+ Quaternion rotation;
+} WorldEntry;
+
+KfError addEntryToWorld(World * world, Game * game, WorldEntry entry);
+KfError addEntriesToWorld(World * world, Game * game, WorldEntry * entries, size_t entriesCount);
+
#endif