LeviLamina
Loading...
Searching...
No Matches
StackResultStorageEntity.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/deps/ecs/gamerefs_entity/EntityContext.h"
5
6// auto generated forward declare list
7// clang-format off
8class EntityContext;
10// clang-format on
11
12class Actor;
13
14class StackResultStorageEntity : public ::std::optional<::EntityContext> {
15public:
16 template <class Entity = Actor, bool IncludeRemoved = false>
17 [[nodiscard]] optional_ref<Entity> tryUnwrap() const {
18 if (*this) {
19 return Entity::tryGetFromEntity(const_cast<EntityContext&>(**this), IncludeRemoved);
20 }
21 return nullptr;
22 }
23
24public:
25 // member functions
26 // NOLINTBEGIN
27 MCAPI explicit StackResultStorageEntity(::WeakStorageEntity const& weakStorage);
28 // NOLINTEND
29
30public:
31 // constructor thunks
32 // NOLINTBEGIN
33 MCAPI void* $ctor(::WeakStorageEntity const& weakStorage);
34 // NOLINTEND
35};
Definition Actor.h:104
Definition EntityContext.h:16
Definition StackResultStorageEntity.h:14
Definition WeakStorageEntity.h:18
Definition optional_ref.h:10