Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Tribe.h
Go to the documentation of this file.
1#pragma once
2
4{
6 {
12 }
13
19};
20
21struct FTribeData
22{
23 FString& TribeNameField() { return *GetNativePointerField<FString*>(this, "FTribeData.TribeName"); }
24 long double& LastNameChangeTimeField() { return *GetNativePointerField<long double*>(this, "FTribeData.LastNameChangeTime"); }
25 unsigned int& OwnerPlayerDataIDField() { return *GetNativePointerField<unsigned int*>(this, "FTribeData.OwnerPlayerDataID"); }
26 int& TribeIDField() { return *GetNativePointerField<int*>(this, "FTribeData.TribeID"); }
27 TArray<FString>& MembersPlayerNameField() { return *GetNativePointerField<TArray<FString>*>(this, "FTribeData.MembersPlayerName"); }
28 TArray<unsigned int>& MembersPlayerDataIDField() { return *GetNativePointerField<TArray<unsigned int>*>(this, "FTribeData.MembersPlayerDataID"); }
29 TArray<unsigned char>& MembersRankGroupsField() { return *GetNativePointerField<TArray<unsigned char>*>(this, "FTribeData.MembersRankGroups"); }
30 TArray<double>& SlotFreedTimeField() { return *GetNativePointerField<TArray<double>*>(this, "FTribeData.SlotFreedTime"); }
31 TArray<unsigned int>& TribeAdminsField() { return *GetNativePointerField<TArray<unsigned int>*>(this, "FTribeData.TribeAdmins"); }
32 TArray<FTribeAlliance>& TribeAlliancesField() { return *GetNativePointerField<TArray<FTribeAlliance>*>(this, "FTribeData.TribeAlliances"); }
33 bool& bSetGovernmentField() { return *GetNativePointerField<bool*>(this, "FTribeData.bSetGovernment"); }
34 FTribeGovernment& TribeGovernmentField() { return *GetNativePointerField<FTribeGovernment*>(this, "FTribeData.TribeGovernment"); }
35 TArray<FPrimalPlayerCharacterConfigStruct>& MembersConfigsField() { return *GetNativePointerField<TArray<FPrimalPlayerCharacterConfigStruct>*>(this, "FTribeData.MembersConfigs"); }
36 TArray<FTribeWar>& TribeWarsField() { return *GetNativePointerField<TArray<FTribeWar>*>(this, "FTribeData.TribeWars"); }
37 TArray<FString>& TribeLogField() { return *GetNativePointerField<TArray<FString>*>(this, "FTribeData.TribeLog"); }
38 int& LogIndexField() { return *GetNativePointerField<int*>(this, "FTribeData.LogIndex"); }
39 TArray<FTribeRankGroup>& TribeRankGroupsField() { return *GetNativePointerField<TArray<FTribeRankGroup>*>(this, "FTribeData.TribeRankGroups"); }
40 int& NumTribeDinosField() { return *GetNativePointerField<int*>(this, "FTribeData.NumTribeDinos"); }
41 TSet<unsigned __int64, DefaultKeyFuncs<unsigned __int64, 0>, FDefaultSetAllocator>& MembersPlayerDataIDSet_ServerField() { return *GetNativePointerField<TSet<unsigned __int64, DefaultKeyFuncs<unsigned __int64, 0>, FDefaultSetAllocator>*>(this, "FTribeData.MembersPlayerDataIDSet_Server"); }
42
43 // Functions
44
45 bool IsTribeWarActive(int TribeID, UWorld* ForWorld, bool bIncludeUnstarted) { return NativeCall<bool, int, UWorld*, bool>(this, "FTribeData.IsTribeWarActive", TribeID, ForWorld, bIncludeUnstarted); }
46 bool HasTribeWarRequest(int TribeID, UWorld* ForWorld) { return NativeCall<bool, int, UWorld*>(this, "FTribeData.HasTribeWarRequest", TribeID, ForWorld); }
47 void RefreshTribeWars(UWorld* ForWorld) { NativeCall<void, UWorld*>(this, "FTribeData.RefreshTribeWars", ForWorld); }
48 FTribeAlliance* FindTribeAlliance(unsigned int AllianceID) { return NativeCall<FTribeAlliance*, unsigned int>(this, "FTribeData.FindTribeAlliance", AllianceID); }
49 bool IsTribeAlliedWith(unsigned int OtherTribeID) { return NativeCall<bool, unsigned int>(this, "FTribeData.IsTribeAlliedWith", OtherTribeID); }
50 FString* GetTribeNameWithRankGroup(FString* result, unsigned int PlayerDataID) { return NativeCall<FString*, FString*, unsigned int>(this, "FTribeData.GetTribeNameWithRankGroup", result, PlayerDataID); }
51 FString* GetRankNameForPlayerID(FString* result, unsigned int PlayerDataID) { return NativeCall<FString*, FString*, unsigned int>(this, "FTribeData.GetRankNameForPlayerID", result, PlayerDataID); }
52 bool GetTribeRankGroupForPlayer(unsigned int PlayerDataID, FTribeRankGroup* outRankGroup) { return NativeCall<bool, unsigned int, FTribeRankGroup*>(this, "FTribeData.GetTribeRankGroupForPlayer", PlayerDataID, outRankGroup); }
53 int GetTribeRankGroupIndexForPlayer(unsigned int PlayerDataID) { return NativeCall<int, unsigned int>(this, "FTribeData.GetTribeRankGroupIndexForPlayer", PlayerDataID); }
54 int GetBestRankGroupForRank(int Rank) { return NativeCall<int, int>(this, "FTribeData.GetBestRankGroupForRank", Rank); }
55 void MarkTribeNameChanged(UObject* WorldContextObject) { NativeCall<void, UObject*>(this, "FTribeData.MarkTribeNameChanged", WorldContextObject); }
56 long double GetSecondsSinceLastNameChange(UObject* WorldContextObject) { return NativeCall<long double, UObject*>(this, "FTribeData.GetSecondsSinceLastNameChange", WorldContextObject); }
57 float GetTribeNameChangeCooldownTime(UObject* WorldContextObject) { return NativeCall<float, UObject*>(this, "FTribeData.GetTribeNameChangeCooldownTime", WorldContextObject); }
58 int GetDefaultRankGroupIndex() { return NativeCall<int>(this, "FTribeData.GetDefaultRankGroupIndex"); }
59 FTribeData* operator=(FTribeData* __that) { return NativeCall<FTribeData*, FTribeData*>(this, "FTribeData.operator=", __that); }
60 static UScriptStruct* StaticStruct() { return NativeCall<UScriptStruct*>(nullptr, "FTribeData.StaticStruct"); }
61};
62
63struct FTribeWar
64{
65 int& EnemyTribeIDField() { return *GetNativePointerField<int*>(this, "FTribeWar.EnemyTribeID"); }
66 int& StartDayNumberField() { return *GetNativePointerField<int*>(this, "FTribeWar.StartDayNumber"); }
67 int& EndDayNumberField() { return *GetNativePointerField<int*>(this, "FTribeWar.EndDayNumber"); }
68 float& StartDayTimeField() { return *GetNativePointerField<float*>(this, "FTribeWar.StartDayTime"); }
69 float& EndDayTimeField() { return *GetNativePointerField<float*>(this, "FTribeWar.EndDayTime"); }
70 bool& bIsApprovedField() { return *GetNativePointerField<bool*>(this, "FTribeWar.bIsApproved"); }
71 int& InitiatingTribeIDField() { return *GetNativePointerField<int*>(this, "FTribeWar.InitiatingTribeID"); }
72 FString& EnemyTribeNameField() { return *GetNativePointerField<FString*>(this, "FTribeWar.EnemyTribeName"); }
73
74 // Functions
75
76 bool CanBeRejected(UWorld* ForWorld) { return NativeCall<bool, UWorld*>(this, "FTribeWar.CanBeRejected", ForWorld); }
77 bool IsCurrentlyActive(UWorld* ForWorld) { return NativeCall<bool, UWorld*>(this, "FTribeWar.IsCurrentlyActive", ForWorld); }
78 bool IsTribeWarOn(UWorld* ForWorld) { return NativeCall<bool, UWorld*>(this, "FTribeWar.IsTribeWarOn", ForWorld); }
79 FString* GetWarTimeString(FString* result, int DayNumber, float DayTime) { return NativeCall<FString*, FString*, int, float>(this, "FTribeWar.GetWarTimeString", result, DayNumber, DayTime); }
80 bool operator==(FTribeWar* Other) { return NativeCall<bool, FTribeWar*>(this, "FTribeWar.operator==", Other); }
81 static UScriptStruct* StaticStruct() { return NativeCall<UScriptStruct*>(nullptr, "FTribeWar.StaticStruct"); }
82};
83
84struct FTribeRankGroup
85{
86 FString& RankGroupNameField() { return *GetNativePointerField<FString*>(this, "FTribeRankGroup.RankGroupName"); }
87 char& RankGroupRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.RankGroupRank"); }
88 char& InventoryRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.InventoryRank"); }
89 char& StructureActivationRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.StructureActivationRank"); }
90 char& NewStructureActivationRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.NewStructureActivationRank"); }
91 char& NewStructureInventoryRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.NewStructureInventoryRank"); }
92 char& PetOrderRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.PetOrderRank"); }
93 char& PetRidingRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.PetRidingRank"); }
94 char& InviteToGroupRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.InviteToGroupRank"); }
95 char& MaxPromotionGroupRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.MaxPromotionGroupRank"); }
96 char& MaxDemotionGroupRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.MaxDemotionGroupRank"); }
97 char& MaxBanishmentGroupRankField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.MaxBanishmentGroupRank"); }
98 char& NumInvitesRemainingField() { return *GetNativePointerField<char*>(this, "FTribeRankGroup.NumInvitesRemaining"); }
99
100 // Bit fields
101
102 BitFieldValue<bool, unsigned __int32> bPreventStructureDemolish() { return { this, "FTribeRankGroup.bPreventStructureDemolish" }; }
103 BitFieldValue<bool, unsigned __int32> bPreventStructureAttachment() { return { this, "FTribeRankGroup.bPreventStructureAttachment" }; }
104 BitFieldValue<bool, unsigned __int32> bPreventStructureBuildInRange() { return { this, "FTribeRankGroup.bPreventStructureBuildInRange" }; }
105 BitFieldValue<bool, unsigned __int32> bPreventUnclaiming() { return { this, "FTribeRankGroup.bPreventUnclaiming" }; }
106 BitFieldValue<bool, unsigned __int32> bAllowInvites() { return { this, "FTribeRankGroup.bAllowInvites" }; }
107 BitFieldValue<bool, unsigned __int32> bLimitInvites() { return { this, "FTribeRankGroup.bLimitInvites" }; }
108 BitFieldValue<bool, unsigned __int32> bAllowDemotions() { return { this, "FTribeRankGroup.bAllowDemotions" }; }
109 BitFieldValue<bool, unsigned __int32> bAllowPromotions() { return { this, "FTribeRankGroup.bAllowPromotions" }; }
110 BitFieldValue<bool, unsigned __int32> bAllowBanishments() { return { this, "FTribeRankGroup.bAllowBanishments" }; }
111 BitFieldValue<bool, unsigned __int32> bDefaultRank() { return { this, "FTribeRankGroup.bDefaultRank" }; }
112
113 // Functions
114
115 FTribeRankGroup* operator=(FTribeRankGroup* __that) { return NativeCall<FTribeRankGroup*, FTribeRankGroup*>(this, "FTribeRankGroup.operator=", __that); }
116 void ValidateSettings() { NativeCall<void>(this, "FTribeRankGroup.ValidateSettings"); }
117 bool operator==(FTribeRankGroup* Other) { return NativeCall<bool, FTribeRankGroup*>(this, "FTribeRankGroup.operator==", Other); }
118 static UScriptStruct* StaticStruct() { return NativeCall<UScriptStruct*>(nullptr, "FTribeRankGroup.StaticStruct"); }
119};
120
121struct FTribeAlliance
122{
124 unsigned int AllianceIDField;
128};
TArray< unsigned int > AdminsTribeIDField
Definition Tribe.h:127
TArray< FString > MembersTribeNameField
Definition Tribe.h:125
unsigned int AllianceIDField
Definition Tribe.h:124
FString AllianceNameField
Definition Tribe.h:123
TArray< unsigned int > MembersTribeIDField
Definition Tribe.h:126
bool IsTribeAlliedWith(unsigned int OtherTribeID)
Definition Tribe.h:54
bool HasTribeWarRequest(int TribeID, UWorld *ForWorld)
Definition Tribe.h:46
long double GetSecondsSinceLastNameChange(UObject *WorldContextObject)
Definition Tribe.h:56
TSet< unsigned __int64, DefaultKeyFuncs< unsigned __int64, 0 >, FDefaultSetAllocator > & MembersPlayerDataIDSet_ServerField()
Definition Tribe.h:36
int GetTribeRankGroupIndexForPlayer(unsigned int PlayerDataID)
Definition Tribe.h:52
TArray< unsigned int > & MembersPlayerDataIDField()
Definition Tribe.h:23
TArray< double > & SlotFreedTimeField()
Definition Tribe.h:30
TArray< FPrimalPlayerCharacterConfigStruct > & MembersConfigsField()
Definition Tribe.h:30
TArray< FString > & TribeLogField()
Definition Tribe.h:32
bool GetTribeRankGroupForPlayer(unsigned int PlayerDataID, FTribeRankGroup *outRankGroup)
Definition Tribe.h:52
float GetTribeNameChangeCooldownTime(UObject *WorldContextObject)
Definition Tribe.h:57
TArray< FString > & MembersPlayerNameField()
Definition Tribe.h:22
int GetBestRankGroupForRank(int Rank)
Definition Tribe.h:46
void MarkTribeNameChanged(UObject *WorldContextObject)
Definition Tribe.h:55
bool IsTribeWarActive(int TribeID, UWorld *ForWorld, bool bIncludeUnstarted)
Definition Tribe.h:45
bool & bSetGovernmentField()
Definition Tribe.h:28
unsigned int & OwnerPlayerDataIDField()
Definition Tribe.h:20
TArray< FTribeWar > & TribeWarsField()
Definition Tribe.h:31
TArray< unsigned char > & MembersRankGroupsField()
Definition Tribe.h:25
TArray< FTribeRankGroup > & TribeRankGroupsField()
Definition Tribe.h:34
void RefreshTribeWars(UWorld *ForWorld)
Definition Tribe.h:47
static UScriptStruct * StaticStruct()
Definition Tribe.h:59
TArray< unsigned int > & TribeAdminsField()
Definition Tribe.h:26
FTribeData * operator=(FTribeData *__that)
Definition Tribe.h:58
FTribeAlliance * FindTribeAlliance(unsigned int AllianceID)
Definition Tribe.h:45
TArray< FTribeAlliance > & TribeAlliancesField()
Definition Tribe.h:27
int & TribeIDField()
Definition Tribe.h:21
FString * GetTribeNameWithRankGroup(FString *result, unsigned int PlayerDataID)
Definition Tribe.h:50
int & LogIndexField()
Definition Tribe.h:33
int GetDefaultRankGroupIndex()
Definition Tribe.h:47
FString & TribeNameField()
Definition Tribe.h:18
FString * GetRankNameForPlayerID(FString *result, unsigned int PlayerDataID)
Definition Tribe.h:51
FTribeGovernment & TribeGovernmentField()
Definition Tribe.h:29
long double & LastNameChangeTimeField()
Definition Tribe.h:19
int & NumTribeDinosField()
Definition Tribe.h:40
int TribeGovern_DinoTaming
Definition Tribe.h:17
int TribeGovern_PINCode
Definition Tribe.h:14
int TribeGovern_DinoOwnership
Definition Tribe.h:15
int TribeGovern_DinoUnclaimAdminOnly
Definition Tribe.h:18
FTribeGovernment()
Definition Tribe.h:5
int TribeGovern_StructureOwnership
Definition Tribe.h:16
bool operator==(FTribeRankGroup *Other)
Definition Tribe.h:106
FString & RankGroupNameField()
Definition Tribe.h:87
BitFieldValue< bool, unsigned __int32 > bAllowDemotions()
Definition Tribe.h:108
void ValidateSettings()
Definition Tribe.h:105
FTribeRankGroup * operator=(FTribeRankGroup *__that)
Definition Tribe.h:103
BitFieldValue< bool, unsigned __int32 > bPreventStructureBuildInRange()
Definition Tribe.h:104
BitFieldValue< bool, unsigned __int32 > bAllowBanishments()
Definition Tribe.h:110
char & RankGroupRankField()
Definition Tribe.h:88
char & PetOrderRankField()
Definition Tribe.h:93
char & PetRidingRankField()
Definition Tribe.h:94
char & InviteToGroupRankField()
Definition Tribe.h:95
char & NumInvitesRemainingField()
Definition Tribe.h:99
char & NewStructureInventoryRankField()
Definition Tribe.h:92
char & MaxBanishmentGroupRankField()
Definition Tribe.h:98
BitFieldValue< bool, unsigned __int32 > bPreventStructureDemolish()
Definition Tribe.h:102
char & NewStructureActivationRankField()
Definition Tribe.h:91
BitFieldValue< bool, unsigned __int32 > bAllowPromotions()
Definition Tribe.h:109
BitFieldValue< bool, unsigned __int32 > bPreventStructureAttachment()
Definition Tribe.h:103
static UScriptStruct * StaticStruct()
Definition Tribe.h:107
BitFieldValue< bool, unsigned __int32 > bPreventUnclaiming()
Definition Tribe.h:105
BitFieldValue< bool, unsigned __int32 > bDefaultRank()
Definition Tribe.h:111
char & StructureActivationRankField()
Definition Tribe.h:90
BitFieldValue< bool, unsigned __int32 > bLimitInvites()
Definition Tribe.h:107
char & MaxPromotionGroupRankField()
Definition Tribe.h:96
char & MaxDemotionGroupRankField()
Definition Tribe.h:97
BitFieldValue< bool, unsigned __int32 > bAllowInvites()
Definition Tribe.h:106
char & InventoryRankField()
Definition Tribe.h:89
bool CanBeRejected(UWorld *ForWorld)
Definition Tribe.h:76
bool operator==(FTribeWar *Other)
Definition Tribe.h:81
FString * GetWarTimeString(FString *result, int DayNumber, float DayTime)
Definition Tribe.h:79
int & EnemyTribeIDField()
Definition Tribe.h:64
bool & bIsApprovedField()
Definition Tribe.h:69
float & EndDayTimeField()
Definition Tribe.h:68
static UScriptStruct * StaticStruct()
Definition Tribe.h:82
float & StartDayTimeField()
Definition Tribe.h:67
bool IsTribeWarOn(UWorld *ForWorld)
Definition Tribe.h:78
FString & EnemyTribeNameField()
Definition Tribe.h:71
int & EndDayNumberField()
Definition Tribe.h:66
bool IsCurrentlyActive(UWorld *ForWorld)
Definition Tribe.h:77
int & InitiatingTribeIDField()
Definition Tribe.h:70
int & StartDayNumberField()
Definition Tribe.h:65