Skip to content

Commit

Permalink
ALTV-364 prepare static entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Dec 9, 2024
1 parent 58705cb commit 535d570
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions c-api/cache/CachedEntity.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace cache
_rotation(base->GetRotation()),
_visible(base->GetVisible()),
_frozen(base->IsFrozen()),
_staticEntity(base->IsStaticEntity()),
#ifdef ALT_SERVER_API
_streamed(base->GetStreamed()),
_collision(base->HasCollision()),
Expand Down Expand Up @@ -126,16 +127,22 @@ namespace cache
{
return _visible;
}
bool _frozen;
bool _frozen;

bool IsFrozen() const override
{
return _frozen;
}
bool IsFrozen() const override
{
return _frozen;
}

void SetFrozen(bool state) override
{
}
bool _staticEntity;

bool IsStaticEntity() const override
{
return _staticEntity;
}

#ifdef ALT_SERVER_API
void SetNetworkOwner(alt::IPlayer* player, bool disableMigration) override
Expand Down Expand Up @@ -215,6 +222,8 @@ namespace cache
void SetMultipleStreamSyncedMetaData(const std::unordered_map<std::string, alt::MValue>& values) override {}

void SetStreamingDistance(uint32_t streamingDistance) override {}

void SetStaticEntity(bool state) override {}
#endif


Expand Down

0 comments on commit 535d570

Please sign in to comment.