aboutsummaryrefslogtreecommitdiff
path: root/src/resource/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-03-30 08:28:47 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-03-30 08:28:47 +0200
commit1950fe7b0679c6b6486cc7b25bef813db2b1bb4e (patch)
treec2098c9ec65f9a9e5fada68c0b51b0217f14b00c /src/resource/inc
parent06056a9b5e900f67702c509ce1ba2e2351357fb7 (diff)
downloadjancity-1950fe7b0679c6b6486cc7b25bef813db2b1bb4e.tar.gz
Implement sub-tile collboxes
These will be later used by the pathfinding algorithm.
Diffstat (limited to 'src/resource/inc')
-rw-r--r--src/resource/inc/resource.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resource/inc/resource.h b/src/resource/inc/resource.h
index 56da45e..aa7f1bd 100644
--- a/src/resource/inc/resource.h
+++ b/src/resource/inc/resource.h
@@ -41,6 +41,7 @@ struct resource_cfg
};
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);