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 forward declare list
7
// clang-format off
8
class
EntityContext
;
9
class
EntityRegistry
;
10
// clang-format on
11
12
class
Actor
;
13
14
class
OwnerStorageEntity
:
public
::std::optional<::EntityContext> {
15
public
:
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
24
public
:
25
// member functions
26
// NOLINTBEGIN
27
MCAPI
explicit
OwnerStorageEntity
(
::EntityRegistry
& registry);
28
// NOLINTEND
29
30
public
:
31
// constructor thunks
32
// NOLINTBEGIN
33
MCAPI
void
* $ctor(
::EntityRegistry
& registry);
34
// NOLINTEND
35
};
Actor
Definition
Actor.h:104
EntityContext
Definition
EntityContext.h:16
EntityRegistry
Definition
EntityRegistry.h:15
OwnerStorageEntity
Definition
OwnerStorageEntity.h:14
optional_ref
Definition
optional_ref.h:10
src
mc
deps
ecs
gamerefs_entity
OwnerStorageEntity.h
Generated on Sat Apr 26 2025 05:55:27 for LeviLamina by
1.12.0