2022-08-13 06:43:15 +00:00
|
|
|
// NOTE(zaklaus): access to spawners
|
2022-09-27 12:56:48 +00:00
|
|
|
#include "ents/storage.h"
|
2022-09-28 05:29:32 +00:00
|
|
|
#include "ents/furnace.h"
|
2022-08-13 06:43:15 +00:00
|
|
|
|
2022-09-27 15:22:13 +00:00
|
|
|
static struct {
|
|
|
|
asset_id id;
|
|
|
|
uint64_t (*proc)();
|
|
|
|
} entity_spawnlist[] = {
|
2022-09-28 05:29:32 +00:00
|
|
|
{ .id = ASSET_CHEST, .proc = storage_spawn },
|
|
|
|
{ .id = ASSET_FURNACE, .proc = furnace_spawn }
|
2022-09-27 15:22:13 +00:00
|
|
|
};
|
2022-08-13 06:43:15 +00:00
|
|
|
|
2022-09-27 15:22:13 +00:00
|
|
|
#define MAX_ENTITY_SPAWNDEFS ((sizeof(entity_spawnlist))/(sizeof(entity_spawnlist[0])))
|