mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 16:50:54 +01:00
21 lines
413 B
C
21 lines
413 B
C
#pragma once
|
|
|
|
#ifndef TP_INTERNAL_COMPONENTS_GUARD
|
|
#error Include Components.h instead
|
|
#endif
|
|
|
|
struct Player;
|
|
struct OwnerComponent
|
|
{
|
|
OwnerComponent(Player* apPlayer)
|
|
: pOwner(apPlayer)
|
|
{
|
|
}
|
|
|
|
Player* GetOwner() const { return reinterpret_cast<Player*>(pOwner); }
|
|
|
|
void SetOwner(Player* apPlayer) { pOwner = apPlayer; }
|
|
|
|
Player* pOwner;
|
|
Vector<const Player*> InvalidOwners{};
|
|
};
|