LeviLamina
Loading...
Searching...
No Matches
EntityRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/EntityId.h"
7#include "mc/deps/game_refs/EnableGetWeakRef.h"
8
9class EntityRegistry : public ::EnableGetWeakRef<::EntityRegistry>,
10 public ::std::enable_shared_from_this<::EntityRegistry> {
11public:
12 // EntityRegistry inner types define
13 using Base = ::entt::basic_registry<::EntityId>;
14
16
17 using BaseShared = ::std::enable_shared_from_this<::EntityRegistry>;
18
19 using EntityInvokeCallbackSig = void(::EntityId);
20
21 using EntityInvokeCallbackFunc = ::std::function<void(::EntityId)>;
22
23 using EntityInvokeCallbackPair = ::std::pair<::std::function<void(::EntityId)>, ::std::function<void(::EntityId)>>;
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 32, ::std::string> mDebugName;
29 ::ll::TypedStorage<8, 304, ::entt::basic_registry<::EntityId>> mRegistry;
30 ::ll::TypedStorage<4, 4, uint> mId;
31 ::ll::TypedStorage<8, 64, ::std::function<void(::EntityId)>> mPreEntityInvoke;
32 ::ll::TypedStorage<8, 64, ::std::function<void(::EntityId)>> mPostEntityInvoke;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI explicit EntityRegistry(::std::string identifier);
43
44 MCNAPI void postViewEachCount(uint64 count);
45
47 // NOLINTEND
48
49public:
50 // static variables
51 // NOLINTBEGIN
52 MCNAPI static ::std::atomic<uint>& mRegistryCount();
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCNAPI void* $ctor(::std::string identifier);
59 // NOLINTEND
60
61public:
62 // destructor thunk
63 // NOLINTBEGIN
64 MCNAPI void $dtor();
65 // NOLINTEND
66};
Definition EnableGetWeakRef.h:6
Definition EntityId.h:13
Definition EntityRegistry.h:10
MCAPI void * $ctor(::std::string identifier)
MCAPI ~EntityRegistry()
static MCAPI ::std::atomic< uint > & mRegistryCount()
MCAPI EntityRegistry(::std::string identifier)
MCAPI void postViewEachCount(uint64 count)
MCAPI void $dtor()