VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
Notify.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
VoltMod/Engine/EngineTypes.hpp
>
4
#include <cstdint>
5
6
namespace
VoltMod::Schema
7
{
8
9
/** Dirty the field at @p offset on @p entity for the next snapshot. */
10
void
NotifyEntity
(
::CEntityInstance
* entity, int32_t offset);
11
12
/**
13
* Dirty the field at @p offset on a component whose owner link (the engine's `__m_pChainEntity`)
14
* sits at @p ownerLinkOffset.
15
*
16
* The engine wants the link's path index alongside the offset, and the entity to notify is the
17
* one the link points at - usually the component's own entity, but not always.
18
*/
19
void
NotifyComponentOwner
(
void
* component, int32_t ownerLinkOffset, int32_t offset);
20
21
/** The entity that owns @p component, read through its owner link; nullptr when unset. */
22
::CEntityInstance
*
ComponentOwner
(
const
void
* component, int32_t ownerLinkOffset);
23
24
}
// namespace VoltMod::Schema
EngineTypes.hpp
VoltMod::Schema::CEntityInstance
Definition
CEntityInstance.hpp:13
VoltMod::Schema
Definition
CBaseAnimGraph.hpp:10
VoltMod::Schema::NotifyComponentOwner
void NotifyComponentOwner(void *component, int32_t ownerLinkOffset, int32_t offset)
Definition
Notify.cpp:20
VoltMod::Schema::NotifyEntity
void NotifyEntity(CEntityInstance *entity, int32_t offset)
Definition
Notify.cpp:10
VoltMod::Schema::ComponentOwner
CEntityInstance * ComponentOwner(const void *component, int32_t ownerLinkOffset)
Definition
Notify.cpp:32
src
Schema
Notify.hpp
Generated by
1.15.0