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:

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< USoundDataAnnouncerData
 
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 55 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 141 of file NightSkyGameInstance.cpp.

◆ EndRecordReplay()

void UNightSkyGameInstance::EndRecordReplay ( ) const

Definition at line 94 of file NightSkyGameInstance.cpp.

◆ FindReplays()

void UNightSkyGameInstance::FindReplays ( )

Start looking for/finding replays on the hard drive

Definition at line 119 of file NightSkyGameInstance.cpp.

◆ LoadReplay()

void UNightSkyGameInstance::LoadReplay ( )

Definition at line 54 of file NightSkyGameInstance.cpp.

◆ PlayReplayFromBP()

void UNightSkyGameInstance::PlayReplayFromBP ( FString ReplayName)

Start playback for a previously recorded Replay, from blueprint

Definition at line 110 of file NightSkyGameInstance.cpp.

◆ PlayReplayToGameState()

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

Definition at line 59 of file NightSkyGameInstance.cpp.

◆ RecordReplay()

void UNightSkyGameInstance::RecordReplay ( )

Definition at line 70 of file NightSkyGameInstance.cpp.

◆ RollbackReplay()

void UNightSkyGameInstance::RollbackReplay ( int32 FramesToRollback) const

Definition at line 84 of file NightSkyGameInstance.cpp.

◆ TravelToBattleMap()

void UNightSkyGameInstance::TravelToBattleMap ( ) const

Definition at line 49 of file NightSkyGameInstance.cpp.

◆ TravelToVSInfo()

void UNightSkyGameInstance::TravelToVSInfo ( ) const

Definition at line 44 of file NightSkyGameInstance.cpp.

◆ UpdateReplay()

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

Definition at line 77 of file NightSkyGameInstance.cpp.

Member Data Documentation

◆ AnnouncerData

TObjectPtr<USoundData> UNightSkyGameInstance::AnnouncerData

Definition at line 83 of file NightSkyGameInstance.h.

◆ BattleData

FBattleData UNightSkyGameInstance::BattleData

Definition at line 92 of file NightSkyGameInstance.h.

◆ BattleVersion

FString UNightSkyGameInstance::BattleVersion

Definition at line 77 of file NightSkyGameInstance.h.

◆ FighterRunner

TEnumAsByte<EFighterRunners> UNightSkyGameInstance::FighterRunner

Definition at line 102 of file NightSkyGameInstance.h.

◆ FinishedLoadingForNetworkBattle

bool UNightSkyGameInstance::FinishedLoadingForNetworkBattle = false

Definition at line 72 of file NightSkyGameInstance.h.

◆ GameVersion

FString UNightSkyGameInstance::GameVersion

Definition at line 75 of file NightSkyGameInstance.h.

◆ IsCPUBattle

bool UNightSkyGameInstance::IsCPUBattle = false

Definition at line 97 of file NightSkyGameInstance.h.

◆ IsReplay

bool UNightSkyGameInstance::IsReplay = false

Definition at line 99 of file NightSkyGameInstance.h.

◆ IsTraining

bool UNightSkyGameInstance::IsTraining = false

Definition at line 95 of file NightSkyGameInstance.h.

◆ MusicData

TObjectPtr<USoundData> UNightSkyGameInstance::MusicData

Definition at line 85 of file NightSkyGameInstance.h.

◆ PlayerIndex

int UNightSkyGameInstance::PlayerIndex

Definition at line 90 of file NightSkyGameInstance.h.

◆ ReplayList

TArray<UReplaySaveInfo*> UNightSkyGameInstance::ReplayList

Definition at line 88 of file NightSkyGameInstance.h.

◆ SettingsInfo

TObjectPtr<UNightSkySettingsInfo> UNightSkyGameInstance::SettingsInfo

Definition at line 80 of file NightSkyGameInstance.h.


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