DeskSim v2 0.1
Train simulator prototype created for Lokførerskolen
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ASaveManager Class Reference
Inheritance diagram for ASaveManager:

Public Member Functions

 ASaveManager ()
 Sets Default Values.
 
virtual void Tick (float DeltaTime) override
 Called every frame on this Actor. More...
 
void SaveGame ()
 Goes through all actors in the scene and saves relevent data specified in SaveLevel.h.
 
void LoadGame ()
 Loads Data from a .sav file and fills it into the correct Actors in the scene.
 

Protected Member Functions

virtual void BeginPlay () override
 Called when the game starts or when spawned.
 
AActor * FindActorByName (FName Name)
 Finds Actor in Scene with name and returns the a pointer to the Actor if it is found. More...
 

Protected Attributes

FString LevelName
 Current name of the .uasset file for level.
 
uint32 UserIndex
 Index of the user that is currently logged in (Used in SaveGame and LoadGame)
 

Member Function Documentation

◆ FindActorByName()

AActor * ASaveManager::FindActorByName ( FName  name)
protected

Finds Actor in Scene with name and returns the a pointer to the Actor if it is found.

Else it will return a NULL

@PARAM name - Name of the Actor you wish to find in scene

Returns
- A pointer to Actor found with name

◆ Tick()

void ASaveManager::Tick ( float  DeltaTime)
overridevirtual

Called every frame on this Actor.

@PARAM DeltaTime - Game time elapsed during last frame modified by the time dilation


The documentation for this class was generated from the following files: