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
commit82c61e3d1d97c6e829bfbe0e35539abfe75d1380 (patch)
tree9354b82ba202229e39e8fa04f4d1cd900ce39d3a /src/resource/inc
parent638dbd0af112aa730c04af776fbd15dffee43337 (diff)
downloadrts-82c61e3d1d97c6e829bfbe0e35539abfe75d1380.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);