mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 16:50:54 +01:00
13 lines
474 B
C++
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();
|
|
}
|