mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:00:54 +01:00
45 lines
787 B
C++
45 lines
787 B
C++
|
|
#include <TiltedOnlinePCH.h>
|
||
|
|
|
||
|
|
#include <Games/ActorExtension.h>
|
||
|
|
|
||
|
|
bool ActorExtension::IsRemote() const noexcept
|
||
|
|
{
|
||
|
|
return onlineFlags & kRemote;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool ActorExtension::IsLocal() const noexcept
|
||
|
|
{
|
||
|
|
return !IsRemote();
|
||
|
|
}
|
||
|
|
|
||
|
|
bool ActorExtension::IsPlayer() const noexcept
|
||
|
|
{
|
||
|
|
return onlineFlags & kPlayer;
|
||
|
|
}
|
||
|
|
|
||
|
|
bool ActorExtension::IsRemotePlayer() const noexcept
|
||
|
|
{
|
||
|
|
return IsRemote() && IsPlayer();
|
||
|
|
}
|
||
|
|
|
||
|
|
bool ActorExtension::IsLocalPlayer() const noexcept
|
||
|
|
{
|
||
|
|
return IsLocal() && IsPlayer();
|
||
|
|
}
|
||
|
|
|
||
|
|
void ActorExtension::SetRemote(bool aSet) noexcept
|
||
|
|
{
|
||
|
|
if (aSet)
|
||
|
|
onlineFlags |= kRemote;
|
||
|
|
else
|
||
|
|
onlineFlags &= ~kRemote;
|
||
|
|
}
|
||
|
|
|
||
|
|
void ActorExtension::SetPlayer(bool aSet) noexcept
|
||
|
|
{
|
||
|
|
if (aSet)
|
||
|
|
onlineFlags |= kPlayer;
|
||
|
|
else
|
||
|
|
onlineFlags &= ~kPlayer;
|
||
|
|
}
|