add move sound to ui
[carveJwlIkooP6JGAAIwe30JlM.git] / addon_types.h
index fa8ab96a7cf286bf45a8420fc0974d0cd2706c08..a244fc0e7d6c60bc184081b1738231cf5187313c 100644 (file)
@@ -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 */