Night Sky Engine
A fighting game framework made in Unreal Engine
|
#include <NightSkyGameInstance.h>
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< UNightSkySettingsInfo > | SettingsInfo |
TObjectPtr< USoundData > | MusicData |
TArray< UReplaySaveInfo * > | ReplayList |
int | PlayerIndex |
FBattleData | BattleData |
bool | IsTraining = false |
bool | IsCPUBattle = false |
bool | IsReplay = false |
TEnumAsByte< EFighterRunners > | FighterRunner |
Protected Member Functions | |
void | BP_OnFindReplaysComplete (const TArray< UReplaySaveInfo * > &AllReplays) |
Definition at line 45 of file NightSkyGameInstance.h.
|
protected |
void UNightSkyGameInstance::DeleteReplay | ( | const FString & | ReplayName | ) |
Delete a previously recorded replay
Definition at line 127 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::EndRecordReplay | ( | ) | const |
Definition at line 80 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::FindReplays | ( | ) |
Start looking for/finding replays on the hard drive
Definition at line 105 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::LoadReplay | ( | ) |
Definition at line 40 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::PlayReplayFromBP | ( | FString | ReplayName | ) |
Start playback for a previously recorded Replay, from blueprint
Definition at line 96 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::PlayReplayToGameState | ( | int32 | FrameNumber, |
int32 & | OutP1Input, | ||
int32 & | OutP2Input ) const |
Definition at line 45 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::RecordReplay | ( | ) |
Definition at line 56 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::RollbackReplay | ( | int32 | FramesToRollback | ) | const |
Definition at line 70 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::TravelToBattleMap | ( | ) | const |
Definition at line 35 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::TravelToVSInfo | ( | ) | const |
Definition at line 30 of file NightSkyGameInstance.cpp.
void UNightSkyGameInstance::UpdateReplay | ( | int32 | InputsP1, |
int32 | InputsP2 ) const |
Definition at line 63 of file NightSkyGameInstance.cpp.
FBattleData UNightSkyGameInstance::BattleData |
Definition at line 77 of file NightSkyGameInstance.h.
FString UNightSkyGameInstance::BattleVersion |
Definition at line 64 of file NightSkyGameInstance.h.
TEnumAsByte<EFighterRunners> UNightSkyGameInstance::FighterRunner |
Definition at line 87 of file NightSkyGameInstance.h.
bool UNightSkyGameInstance::FinishedLoadingForNetworkBattle = false |
Definition at line 59 of file NightSkyGameInstance.h.
FString UNightSkyGameInstance::GameVersion |
Definition at line 62 of file NightSkyGameInstance.h.
bool UNightSkyGameInstance::IsCPUBattle = false |
Definition at line 82 of file NightSkyGameInstance.h.
bool UNightSkyGameInstance::IsReplay = false |
Definition at line 84 of file NightSkyGameInstance.h.
bool UNightSkyGameInstance::IsTraining = false |
Definition at line 80 of file NightSkyGameInstance.h.
TObjectPtr<USoundData> UNightSkyGameInstance::MusicData |
Definition at line 70 of file NightSkyGameInstance.h.
int UNightSkyGameInstance::PlayerIndex |
Definition at line 75 of file NightSkyGameInstance.h.
TArray<UReplaySaveInfo*> UNightSkyGameInstance::ReplayList |
Definition at line 73 of file NightSkyGameInstance.h.
TObjectPtr<UNightSkySettingsInfo> UNightSkyGameInstance::SettingsInfo |
Definition at line 67 of file NightSkyGameInstance.h.