From 9b87ddef34a1f8f2fc13d7425275c85c18c2af75 Mon Sep 17 00:00:00 2001 From: Emil Kosz Date: Tue, 3 Jun 2025 19:29:46 +0200 Subject: [PATCH] Remove backup --- game/src/entity/#templates.c# | 25 ------------------------- game/src/entity/.#templates.c | 1 - game/src/entity/templates.c | 7 ------- 3 files changed, 33 deletions(-) delete mode 100644 game/src/entity/#templates.c# delete mode 120000 game/src/entity/.#templates.c diff --git a/game/src/entity/#templates.c# b/game/src/entity/#templates.c# deleted file mode 100644 index c89e2db..0000000 --- a/game/src/entity/#templates.c# +++ /dev/null @@ -1,25 +0,0 @@ -#include "templates.h" - -GHashTable *entity_templates; - -void -EntityTemplates_init () -{ - entity_templates = g_hash_table_new (g_str_hash, g_str_equal); - - Entity *tree = malloc (sizeof (Entity)); - *tree = (Entity) { - .type = ENTITY_SOLID, - .mesh_type = ENTITY_MESH_X, - .origin = ENTITY_BOTTOM, - .position = { 0.0, 0.0, 0.0 }, - .scale = { 1.0, 3.0, 1.0 }, - .rotation = 0.0, - .texture = "tree0" - }; - - ET_ENTADD ("tree", tree); -} - -/* To avoid confusion with EM_ENTADD. */ -#undef ET_ENTADD diff --git a/game/src/entity/.#templates.c b/game/src/entity/.#templates.c deleted file mode 120000 index 9eac588..0000000 --- a/game/src/entity/.#templates.c +++ /dev/null @@ -1 +0,0 @@ -emssej@Komputer-Ze-Smieci.2233:1748755544 \ No newline at end of file diff --git a/game/src/entity/templates.c b/game/src/entity/templates.c index eb63b4c..c89e2db 100644 --- a/game/src/entity/templates.c +++ b/game/src/entity/templates.c @@ -21,12 +21,5 @@ EntityTemplates_init () ET_ENTADD ("tree", tree); } -/* Example function for a tick for an entity. */ -void -example_entity_tick (Entity *entity) -{ - entity->scale[1] += 0.0000001; -} - /* To avoid confusion with EM_ENTADD. */ #undef ET_ENTADD