Gaia-ECS
v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
config.h
1
#pragma once
2
#include "gaia/config/config_core.h"
3
#include "gaia/config/version.h"
4
5
//------------------------------------------------------------------------------
6
// General settings.
7
// You are free to modify these.
8
//------------------------------------------------------------------------------
9
11
#if !defined(GAIA_FORCE_DEBUG)
12
#define GAIA_FORCE_DEBUG 0
13
#endif
15
#if !defined(GAIA_DISABLE_ASSERTS)
16
#define GAIA_DISABLE_ASSERTS 0
17
#endif
18
19
//------------------------------------------------------------------------------
20
// Internal features.
21
// You are free to modify these but you probably should not.
22
// It is expected to only use them when something doesn't work as expected
23
// or as some sort of workaround.
24
//------------------------------------------------------------------------------
25
27
#ifndef GAIA_ECS_CHUNK_ALLOCATOR
28
#define GAIA_ECS_CHUNK_ALLOCATOR 1
29
#endif
30
32
#ifndef GAIA_ECS_HASH
33
#define GAIA_ECS_HASH GAIA_ECS_HASH_MURMUR2A
34
#endif
35
37
#ifndef GAIA_USE_PREFETCH
38
#define GAIA_USE_PREFETCH 1
39
#endif
40
42
#ifndef GAIA_SYSTEMS_ENABLED
43
#define GAIA_SYSTEMS_ENABLED 1
44
#endif
45
47
#ifndef GAIA_OBSERVERS_ENABLED
48
#define GAIA_OBSERVERS_ENABLED 1
49
#endif
50
53
#ifndef GAIA_ENABLE_HOOKS
54
#define GAIA_ENABLE_HOOKS 1
55
#endif
56
#ifndef GAIA_ENABLE_ADD_DEL_HOOKS
57
#define GAIA_ENABLE_ADD_DEL_HOOKS (GAIA_ENABLE_HOOKS && 1)
58
#else
59
// If GAIA_ENABLE_ADD_DEL_HOOKS is defined and GAIA_ENABLE_HOOKS is not, unset it
60
#ifndef GAIA_ENABLE_HOOKS
61
#undef GAIA_ENABLE_ADD_DEL_HOOKS
62
#define GAIA_ENABLE_ADD_DEL_HOOKS 0
63
#endif
64
#endif
65
#ifndef GAIA_ENABLE_SET_HOOKS
66
#define GAIA_ENABLE_SET_HOOKS (GAIA_ENABLE_HOOKS && 1)
67
#else
68
// If GAIA_ENABLE_SET_HOOKS is defined and GAIA_ENABLE_HOOKS is not, unset it
69
#ifndef GAIA_ENABLE_HOOKS
70
#undef GAIA_ENABLE_SET_HOOKS
71
#define GAIA_ENABLE_SET_HOOKS 0
72
#endif
73
#endif
74
77
#ifndef GAIA_USE_SAFE_ENTITY
78
#define GAIA_USE_SAFE_ENTITY 1
79
#endif
80
83
#ifndef GAIA_USE_WEAK_ENTITY
84
#define GAIA_USE_WEAK_ENTITY 1
85
#endif
86
95
#ifndef GAIA_USE_PARTITIONED_BLOOM_FILTER
96
#define GAIA_USE_PARTITIONED_BLOOM_FILTER 1
97
#endif
98
100
#ifndef GAIA_ECS_AUTO_COMPONENT_SCHEMA
101
#define GAIA_ECS_AUTO_COMPONENT_SCHEMA 0
102
#endif
103
107
#ifndef GAIA_ECS_AUTO_COMPONENT_REGISTRATION
108
#define GAIA_ECS_AUTO_COMPONENT_REGISTRATION 1
109
#endif
110
111
//------------------------------------------------------------------------------
112
113
#include "gaia/config/config_core_end.h"
include
gaia
config
config.h
Generated by
1.9.8