Remove backup
This commit is contained in:
@@ -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
|
||||
@@ -1 +0,0 @@
|
||||
emssej@Komputer-Ze-Smieci.2233:1748755544
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user