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