aboutsummaryrefslogtreecommitdiff
path: root/src/resource/inc
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/resource/inc
parent39ecbd690b2327db4328123f3f9a50c8492794ad (diff)
downloadjancity-0aef4f319caa2572d459b18e4e994122d53abcbe.tar.gz
Remove resource, tech and old game resources
Diffstat (limited to 'src/resource/inc')
-rw-r--r--src/resource/inc/resource.h58
-rw-r--r--src/resource/inc/resource_type.h21
2 files changed, 0 insertions, 79 deletions
diff --git a/src/resource/inc/resource.h b/src/resource/inc/resource.h
deleted file mode 100644
index aa7f1bd..0000000
--- a/src/resource/inc/resource.h
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifndef RESOURCE_H
-#define RESOURCE_H
-
-#include <camera.h>
-#include <container.h>
-#include <gfx.h>
-#include <instance.h>
-#include <resource_type.h>
-#include <util.h>
-#include <stdbool.h>
-#include <stddef.h>
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-enum {RESOURCE_GOLD_CAPACITY = 2};
-
-struct resource
-{
- struct instance instance;
- enum resource_type type;
-
- union
- {
- struct resource_gold
- {
- struct instance *miners[RESOURCE_GOLD_CAPACITY];
- size_t n_miners;
- } gold;
- } res;
-};
-
-UTIL_STATIC_ASSERT(!offsetof(struct resource, instance), "must be at offset zero");
-
-struct resource_cfg
-{
- enum resource_type type;
- unsigned long x, y;
-};
-
-const struct container_list *resource_res(void);
-void resource_set_alive_cb(void (*f)(const struct util_rect *dim, bool alive, void *p), void *p);
-int resource_create(const struct resource_cfg *cfg, struct resource *list, size_t n);
-int resource_render(const struct resource *res, const struct camera *cam, bool sel);
-instance_sheltered_cb resource_shelter(const struct resource *res);
-bool resource_harvested(struct instance *i, instance_hp ap);
-instance_hp resource_maxhp(const struct resource *res);
-const char *resource_str(const struct resource *res);
-
-extern struct sprite resource_sprites[MAX_RESOURCE_TYPES];
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* RESOURCE_H */
diff --git a/src/resource/inc/resource_type.h b/src/resource/inc/resource_type.h
deleted file mode 100644
index 8a41148..0000000
--- a/src/resource/inc/resource_type.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#ifndef RESOURCE_TYPE_H
-#define RESOURCE_TYPE_H
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-enum resource_type
-{
- RESOURCE_TYPE_WOOD,
- RESOURCE_TYPE_GOLD,
-
- MAX_RESOURCE_TYPES
-};
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* RESOURCE_TYPE_H */