LeviLamina
Loading...
Searching...
No Matches
WeakStorageEntity.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/deps/ecs/EntityId.h"
5#include "mc/deps/ecs/gamerefs_entity/StackResultStorageEntity.h"
6
7// auto generated inclusion list
8#include "mc/deps/game_refs/WeakRef.h"
9
10// auto generated forward declare list
11// clang-format off
12class EntityId;
13class EntityRegistry;
14// clang-format on
15
16class Actor;
17
19public:
20 template <class Entity = Actor, bool IncludeRemoved = false>
21 [[nodiscard]] optional_ref<Entity> tryUnwrap() const {
22 return StackResultStorageEntity(*this).tryUnwrap<Entity, IncludeRemoved>();
23 }
24
25 WeakStorageEntity() = default;
27 WeakStorageEntity(::WeakStorageEntity const&) = default;
28 WeakStorageEntity& operator=(::WeakStorageEntity&&) = default;
29 WeakStorageEntity& operator=(::WeakStorageEntity const&) = default;
30
31public:
32 // member variables
33 // NOLINTBEGIN
35 ::EntityId mEntity;
36 // NOLINTEND
37};
Definition Actor.h:104
Definition EntityId.h:12
Definition EntityRegistry.h:15
Definition StackResultStorageEntity.h:14
Definition WeakRef.h:8
Definition WeakStorageEntity.h:18
Definition optional_ref.h:10