X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=addon_types.h;h=a244fc0e7d6c60bc184081b1738231cf5187313c;hb=be5e25dee2c54c2a22ca3bbb5bbe0eb6149343be;hp=fa8ab96a7cf286bf45a8420fc0974d0cd2706c08;hpb=02e009ae6e20938675277e9ce2f467e17b170cc7;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/addon_types.h b/addon_types.h index fa8ab96..a244fc0 100644 --- a/addon_types.h +++ b/addon_types.h @@ -1,5 +1,4 @@ -#ifndef ADDON_TYPES_H -#define ADDON_TYPES_H +#pragma once enum addon_type{ k_addon_type_none = 0, @@ -9,34 +8,17 @@ enum addon_type{ k_addon_type_max }; -#ifdef VG_GAME +#define ADDON_FOLDERNAME_MAX 64 +#define ADDON_MOUNTED_MAX 128 /* total count that we have knowledge of */ +#define ADDON_UID_MAX 76 -#include "vg/vg_stdint.h" -#include "stddef.h" -#include "world.h" -#include "player.h" +#ifdef VG_ENGINE struct addon_type_info { size_t cache_stride; u16 cache_count; const char *local_content_folder; } -static addon_type_infos[] = { - [k_addon_type_board] = { - .local_content_folder = "boards/", - .cache_stride = sizeof(struct player_board), - .cache_count = 10 - }, - [k_addon_type_player] = { - .local_content_folder = "playermodels/", - .cache_stride = sizeof(struct player_model), - .cache_count = 10 - }, - [k_addon_type_world] = { - .local_content_folder = "maps/" - } -}; +extern addon_type_infos[]; #endif - -#endif /* ADDON_TYPES_H */