Tramway SDK
Functions | Variables
tram::Loader Namespace Reference

WorldCell streaming. More...

Functions

void Track (Entity *entity)
 Starts tracking an Entity. More...
 
void Untrack (Entity *entity)
 Stops tracking a tracked Entity. More...
 
void Update ()
 Performs WorldCell loading and unloading. More...
 

Variables

std::set< id_ttracked_entities
 

Detailed Description

WorldCell streaming.

Provides services for application localization, character re-encoding, translation, etc.

See also
https://racenis.github.io/tram-sdk/documentation/framework/loader.html

Function Documentation

◆ Track()

void tram::Loader::Track ( Entity entity)

Starts tracking an Entity.

See Loader::Update().

◆ Untrack()

void tram::Loader::Untrack ( Entity entity)

Stops tracking a tracked Entity.

See Loader::Untrack().

◆ Update()

void tram::Loader::Update ( )

Performs WorldCell loading and unloading.

Calling this function will apply a constraint to the load status of all WorldCells, whereby cells which either contain a tracked entity, or are directly connected to such a cell, will be loaded, and all other cells will be unloaded. See also Loader::Track() and Loader::Untrack().

Variable Documentation

◆ tracked_entities

std::set<id_t> tram::Loader::tracked_entities