Night Sky Engine
A fighting game framework made in Unreal Engine
Loading...
Searching...
No Matches
UNightSkyGameInstance Class Reference

#include <NightSkyGameInstance.h>

Inheritance diagram for UNightSkyGameInstance:
Collaboration diagram for UNightSkyGameInstance:

Public Member Functions

void TravelToVSInfo () const
 
void TravelToBattleMap () const
 
void LoadReplay ()
 
void PlayReplayToGameState (int32 FrameNumber, int32 &OutP1Input, int32 &OutP2Input) const
 
void RecordReplay ()
 
void UpdateReplay (int32 InputsP1, int32 InputsP2) const
 
void RollbackReplay (int32 FramesToRollback) const
 
void EndRecordReplay () const
 
void PlayReplayFromBP (FString ReplayName)
 
void FindReplays ()
 
void DeleteReplay (const FString &ReplayName)
 

Public Attributes

bool FinishedLoadingForNetworkBattle = false
 
FString GameVersion
 
FString BattleVersion
 
TObjectPtr< UNightSkySettingsInfoSettingsInfo
 
TObjectPtr< USoundDataMusicData
 
TArray< UReplaySaveInfo * > ReplayList
 
int PlayerIndex
 
FBattleData BattleData
 
bool IsTraining = false
 
bool IsCPUBattle = false
 
bool IsReplay = false
 
TEnumAsByte< EFighterRunnersFighterRunner
 

Protected Member Functions

void BP_OnFindReplaysComplete (const TArray< UReplaySaveInfo * > &AllReplays)
 

Detailed Description

Definition at line 45 of file NightSkyGameInstance.h.

Member Function Documentation

◆ BP_OnFindReplaysComplete()

void UNightSkyGameInstance::BP_OnFindReplaysComplete ( const TArray< UReplaySaveInfo * > & AllReplays)
protected

◆ DeleteReplay()

void UNightSkyGameInstance::DeleteReplay ( const FString & ReplayName)

Delete a previously recorded replay

Definition at line 127 of file NightSkyGameInstance.cpp.

◆ EndRecordReplay()

void UNightSkyGameInstance::EndRecordReplay ( ) const

Definition at line 80 of file NightSkyGameInstance.cpp.

◆ FindReplays()

void UNightSkyGameInstance::FindReplays ( )

Start looking for/finding replays on the hard drive

Definition at line 105 of file NightSkyGameInstance.cpp.

◆ LoadReplay()

void UNightSkyGameInstance::LoadReplay ( )

Definition at line 40 of file NightSkyGameInstance.cpp.

◆ PlayReplayFromBP()

void UNightSkyGameInstance::PlayReplayFromBP ( FString ReplayName)

Start playback for a previously recorded Replay, from blueprint

Definition at line 96 of file NightSkyGameInstance.cpp.

◆ PlayReplayToGameState()

void UNightSkyGameInstance::PlayReplayToGameState ( int32 FrameNumber,
int32 & OutP1Input,
int32 & OutP2Input ) const

Definition at line 45 of file NightSkyGameInstance.cpp.

◆ RecordReplay()

void UNightSkyGameInstance::RecordReplay ( )

Definition at line 56 of file NightSkyGameInstance.cpp.

◆ RollbackReplay()

void UNightSkyGameInstance::RollbackReplay ( int32 FramesToRollback) const

Definition at line 70 of file NightSkyGameInstance.cpp.

◆ TravelToBattleMap()

void UNightSkyGameInstance::TravelToBattleMap ( ) const

Definition at line 35 of file NightSkyGameInstance.cpp.

◆ TravelToVSInfo()

void UNightSkyGameInstance::TravelToVSInfo ( ) const

Definition at line 30 of file NightSkyGameInstance.cpp.

◆ UpdateReplay()

void UNightSkyGameInstance::UpdateReplay ( int32 InputsP1,
int32 InputsP2 ) const

Definition at line 63 of file NightSkyGameInstance.cpp.

Member Data Documentation

◆ BattleData

FBattleData UNightSkyGameInstance::BattleData

Definition at line 77 of file NightSkyGameInstance.h.

◆ BattleVersion

FString UNightSkyGameInstance::BattleVersion

Definition at line 64 of file NightSkyGameInstance.h.

◆ FighterRunner

TEnumAsByte<EFighterRunners> UNightSkyGameInstance::FighterRunner

Definition at line 87 of file NightSkyGameInstance.h.

◆ FinishedLoadingForNetworkBattle

bool UNightSkyGameInstance::FinishedLoadingForNetworkBattle = false

Definition at line 59 of file NightSkyGameInstance.h.

◆ GameVersion

FString UNightSkyGameInstance::GameVersion

Definition at line 62 of file NightSkyGameInstance.h.

◆ IsCPUBattle

bool UNightSkyGameInstance::IsCPUBattle = false

Definition at line 82 of file NightSkyGameInstance.h.

◆ IsReplay

bool UNightSkyGameInstance::IsReplay = false

Definition at line 84 of file NightSkyGameInstance.h.

◆ IsTraining

bool UNightSkyGameInstance::IsTraining = false

Definition at line 80 of file NightSkyGameInstance.h.

◆ MusicData

TObjectPtr<USoundData> UNightSkyGameInstance::MusicData

Definition at line 70 of file NightSkyGameInstance.h.

◆ PlayerIndex

int UNightSkyGameInstance::PlayerIndex

Definition at line 75 of file NightSkyGameInstance.h.

◆ ReplayList

TArray<UReplaySaveInfo*> UNightSkyGameInstance::ReplayList

Definition at line 73 of file NightSkyGameInstance.h.

◆ SettingsInfo

TObjectPtr<UNightSkySettingsInfo> UNightSkyGameInstance::SettingsInfo

Definition at line 67 of file NightSkyGameInstance.h.


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