Skip to content

Commit

Permalink
Fix Functions for latest server update (ServersHub#36)
Browse files Browse the repository at this point in the history
-add param in GetOrLoadTribeData
-add param in LoadTribeData
-add ETribeDataExclude enum
  • Loading branch information
AvtandilJaparidze authored Mar 12, 2024
1 parent e5b889f commit fe50c51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AsaApi/Core/Public/API/ARK/GameMode.h
Original file line number Diff line number Diff line change
Expand Up @@ -2323,8 +2323,8 @@ struct AShooterGameMode : APrimalGameMode
void DeletePlayerData(AShooterPlayerState* PlayerState) { NativeCall<void, AShooterPlayerState*>(this, "AShooterGameMode.DeletePlayerData(AShooterPlayerState*)", PlayerState); }
TSharedPtr<FWriteFileTaskInfo>* SavePlayerData(TSharedPtr<FWriteFileTaskInfo>* result, UPrimalPlayerData* PlayerData, bool bSaveBackup) { return NativeCall<TSharedPtr<FWriteFileTaskInfo> *, TSharedPtr<FWriteFileTaskInfo>*, UPrimalPlayerData*, bool>(this, "AShooterGameMode.SavePlayerData(TSharedPtr<FWriteFileTaskInfo,1>*,UPrimalPlayerData*,bool)", result, PlayerData, bSaveBackup); }
TSharedPtr<FWriteFileTaskInfo>* SaveTribeData(TSharedPtr<FWriteFileTaskInfo>* result, const FTribeData* TribeData, bool bCanDeferToTick) { return NativeCall<TSharedPtr<FWriteFileTaskInfo> *, TSharedPtr<FWriteFileTaskInfo>*, const FTribeData*, bool>(this, "AShooterGameMode.SaveTribeData(TSharedPtr<FWriteFileTaskInfo,1>*,FTribeData*,bool)", result, TribeData, bCanDeferToTick); }
bool GetOrLoadTribeData(int TribeID, FTribeData* LoadedTribeData) { return NativeCall<bool, int, FTribeData*>(this, "AShooterGameMode.GetOrLoadTribeData(int,FTribeData&)", TribeID, LoadedTribeData); }
bool LoadTribeData(int TribeID, FTribeData* LoadedTribeData, bool bIsLoadingBackup, bool bDontCheckDirtyTribeWar) { return NativeCall<bool, int, FTribeData*, bool, bool>(this, "AShooterGameMode.LoadTribeData(int,FTribeData&,bool,bool)", TribeID, LoadedTribeData, bIsLoadingBackup, bDontCheckDirtyTribeWar); }
bool GetOrLoadTribeData(int TribeID, FTribeData* LoadedTribeData, ETribeDataExclude ExcludeFilter) { return NativeCall<bool, int, FTribeData*, ETribeDataExclude>(this, "AShooterGameMode.GetOrLoadTribeData(int,FTribeData&,ETribeDataExclude)", TribeID, LoadedTribeData, ExcludeFilter); }
bool LoadTribeData(int TribeID, FTribeData* LoadedTribeData, bool bIsLoadingBackup, bool bDontCheckDirtyTribeWar, ETribeDataExclude ExcludeFilter) { return NativeCall<bool, int, FTribeData*, bool, bool, ETribeDataExclude>(this, "AShooterGameMode.LoadTribeData(int,FTribeData&,bool,bool,ETribeDataExclude)", TribeID, LoadedTribeData, bIsLoadingBackup, bDontCheckDirtyTribeWar, ExcludeFilter); }
UPrimalPlayerData* GetPlayerDataFor(AShooterPlayerController* PC, bool* bCreatedNewPlayerData, bool bForceCreateNewPlayerData, const FPrimalPlayerCharacterConfigStruct* charConfig, bool bAutoCreateNewData, bool bDontSaveNewData) { return NativeCall<UPrimalPlayerData*, AShooterPlayerController*, bool*, bool, const FPrimalPlayerCharacterConfigStruct*, bool, bool>(this, "AShooterGameMode.GetPlayerDataFor(AShooterPlayerController*,bool*,bool,FPrimalPlayerCharacterConfigStruct*,bool,bool)", PC, bCreatedNewPlayerData, bForceCreateNewPlayerData, charConfig, bAutoCreateNewData, bDontSaveNewData); }
void OnHarvestingComponentHidden(FAttachedInstancedHarvestingElement* component) { NativeCall<void, FAttachedInstancedHarvestingElement*>(this, "AShooterGameMode.OnHarvestingComponentHidden(FAttachedInstancedHarvestingElement*)", component); }
void ServerConstructedFoliageHiddenAttachedComponent(FAttachedInstanced* aComponent) { NativeCall<void, FAttachedInstanced*>(this, "AShooterGameMode.ServerConstructedFoliageHiddenAttachedComponent(FAttachedInstanced*)", aComponent); }
Expand Down
8 changes: 8 additions & 0 deletions AsaApi/Core/Public/API/Enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -41335,5 +41335,13 @@ enum class EMovementMode :int
MOVE_MAX = 0x7
};

enum class ETribeDataExclude :int
{
TribeNone = 0x0,
TribeLog = 0x1,
TrackingPoints = 0x2,
TribeLogAndTrackingPoints = 0x3,
};

typedef EWorldType::Type ETeleportType;
typedef EWorldType::Type EInternalObjectFlags;

0 comments on commit fe50c51

Please sign in to comment.