LeviLamina
Loading...
Searching...
No Matches
OwnerStorageEntity.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/gamerefs_entity/EntityContext.h"
7
8class Actor;
9
10class OwnerStorageEntity : public ::std::optional<::EntityContext> {
11public:
12 template <class Entity = Actor, bool IncludeRemoved = false>
13 [[nodiscard]] optional_ref<Entity> tryUnwrap() const {
14 if (*this) {
15 return Entity::tryGetFromEntity(const_cast<EntityContext&>(**this), IncludeRemoved);
16 }
17 return nullptr;
18 }
19};
Definition Actor.h:123
Definition EntityContext.h:17
Definition OwnerStorageEntity.h:10
Definition optional_ref.h:10