F4MP/tiltedcode/Code/client/Systems/CacheSystem.cpp
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

13 lines
474 B
C++

#include <TiltedOnlinePCH.h>
#include <Systems/CacheSystem.h>
#include <World.h>
#include <Games/References.h>
// We don't clean up after ourselves since only a server removal should clean and server removals destroy entities entirely
void CacheSystem::Setup(World& aWorld, const entt::entity aEntity, Actor* apActor) noexcept
{
auto& cacheComponent = aWorld.emplace_or_replace<CacheComponent>(aEntity);
cacheComponent.FactionsContent = apActor->GetFactions();
}