aboutsummaryrefslogtreecommitdiff
path: root/src/player/inc/player.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 15:58:53 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 17:38:11 +0100
commit0aef4f319caa2572d459b18e4e994122d53abcbe (patch)
treec27f3cee65e565db4bf5f457d03190f227cccdf4 /src/player/inc/player.h
parent39ecbd690b2327db4328123f3f9a50c8492794ad (diff)
downloadjancity-0aef4f319caa2572d459b18e4e994122d53abcbe.tar.gz
Remove resource, tech and old game resources
Diffstat (limited to 'src/player/inc/player.h')
-rw-r--r--src/player/inc/player.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/player/inc/player.h b/src/player/inc/player.h
index 153740c..10557b3 100644
--- a/src/player/inc/player.h
+++ b/src/player/inc/player.h
@@ -5,8 +5,6 @@
#include <camera.h>
#include <instance.h>
#include <pad.h>
-#include <resource.h>
-#include <tech.h>
#include <unit.h>
#include <stdbool.h>
#include <stddef.h>
@@ -36,13 +34,7 @@ struct player
bool alive;
struct unit units[PLAYER_MAX_UNITS];
struct building buildings[PLAYER_MAX_BUILDINGS];
- uint32_t resources[MAX_RESOURCE_TYPES];
unsigned char pop, bpop;
-
- struct
- {
- struct unit_tech u;
- } tree;
};
struct player_cfg
@@ -55,8 +47,7 @@ struct player_cfg
struct player_others
{
struct player *pl;
- struct resource *res;
- size_t n_pl, n_res;
+ size_t n_pl;
};
int player_init(const struct player_cfg *cfg, struct player *pl);