aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-19 15:05:30 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-19 15:05:30 +0100
commit4d1c6f1831e0a95029ff7af4cf8097e837dc2a5d (patch)
treed4bead6d7bd77a9f602269dda79a4f12c804a173
parent5f39dc386cce357a7c71a81c523a90496f7b1e67 (diff)
add RefVector
-rw-r--r--src/crepe/types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crepe/types.h b/src/crepe/types.h
index 0d459e8..86730cc 100644
--- a/src/crepe/types.h
+++ b/src/crepe/types.h
@@ -1,9 +1,16 @@
#pragma once
#include <cstdint>
+#include <vector>
+#include <functional>
namespace crepe {
+//! GameObject ID
typedef uint32_t game_object_id_t;
+//! vector of reference_wrapper
+template <typename T>
+using RefVector = std::vector<std::reference_wrapper<T>>;
+
}