Rust update

This commit is contained in:
Flero 2025-11-07 15:19:56 +10:30
parent 273ce1c364
commit 7bd8d8f30f
Signed by: flerouwu
SSH key fingerprint: SHA256:FB8cuclKIbQLfo1o/JNTq7r9e3vocaOu/vkEg+gViVU
2651 changed files with 106836 additions and 108533 deletions

View file

@ -4,7 +4,10 @@
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="cab4d00f-f27d-4bfb-879d-b88dbdbd387a" name="Changes" comment="" />
<list default="true" id="cab4d00f-f27d-4bfb-879d-b88dbdbd387a" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/.idea.rust-dedicated/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.rust-dedicated/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Assembly-CSharp/ConVar/Time.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Assembly-CSharp/ConVar/Time.cs" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -28,7 +31,9 @@
<setting file="file://$APPLICATION_CONFIG_DIR$/resharper-host/DecompilerCache/decompiler/fcb9dac8ae3a488693b0f4cd5b0db0be287150/49/292e70af/List`1.cs" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/Assembly-CSharp/AntiHackType.cs" root0="FORCE_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/Assembly-CSharp/BasePlayer.cs" root0="SKIP_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/Assembly-CSharp/Bootstrap.cs" root0="SKIP_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/Assembly-CSharp/BowWeapon.cs" root0="SKIP_HIGHLIGHTING" />
<setting file="file://$PROJECT_DIR$/Assembly-CSharp/ConsoleGen.cs" root0="SKIP_HIGHLIGHTING" />
</component>
<component name="ProjectColorInfo">{
&quot;customColor&quot;: &quot;&quot;,
@ -83,6 +88,10 @@
<workItem from="1752219714755" duration="10000" />
<workItem from="1752274528875" duration="1271000" />
<workItem from="1753567185116" duration="887000" />
<workItem from="1754738685824" duration="252000" />
<workItem from="1755260710308" duration="4235000" />
<workItem from="1755306348947" duration="19000" />
<workItem from="1755321525178" duration="485000" />
</task>
<servers />
</component>

View file

@ -22,7 +22,7 @@
</ItemGroup>
<ItemGroup>
<Reference Include="System.Core">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/System.Core.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/System.Core.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

View file

@ -13,49 +13,49 @@
<ItemGroup />
<ItemGroup>
<Reference Include="Facepunch.UnityEngine">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.UnityEngine.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.UI.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="Rust.UI">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/Rust.UI.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/Rust.UI.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/Unity.TextMeshPro.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.CoreModule.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.InputLegacyModule">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.InputLegacyModule.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.InputLegacyModule.dll</HintPath>
</Reference>
<Reference Include="Facepunch.System">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.System.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.System.dll</HintPath>
</Reference>
<Reference Include="System.Xml">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/System.Xml.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/System.Xml.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AudioModule">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.AudioModule.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.AudioModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.ParticleSystemModule">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.ParticleSystemModule.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.ParticleSystemModule.dll</HintPath>
</Reference>
<Reference Include="Facepunch.Network">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.Network.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.Network.dll</HintPath>
</Reference>
<Reference Include="Facepunch.Unity">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.Unity.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.Unity.dll</HintPath>
</Reference>
<Reference Include="Facepunch.Input">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.Input.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/Facepunch.Input.dll</HintPath>
</Reference>
<Reference Include="System.Core">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/System.Core.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/System.Core.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.JSONSerializeModule">
<HintPath>../../../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.JSONSerializeModule.dll</HintPath>
<HintPath>../ProtobitRust/.references/RustDedicated_Data/Managed/UnityEngine.JSONSerializeModule.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

View file

@ -4,57 +4,57 @@ namespace Epic.OnlineServices.Achievements;
public sealed class AchievementsInterface : Handle
{
public const int AchievementUnlocktimeUndefined = -1;
public const int ACHIEVEMENT_UNLOCKTIME_UNDEFINED = -1;
public const int AddnotifyachievementsunlockedApiLatest = 1;
public const int ADDNOTIFYACHIEVEMENTSUNLOCKEDV2_API_LATEST = 2;
public const int Addnotifyachievementsunlockedv2ApiLatest = 2;
public const int ADDNOTIFYACHIEVEMENTSUNLOCKED_API_LATEST = 1;
public const int Copyachievementdefinitionv2ByachievementidApiLatest = 2;
public const int COPYACHIEVEMENTDEFINITIONV2BYACHIEVEMENTID_API_LATEST = 2;
public const int Copyachievementdefinitionv2ByindexApiLatest = 2;
public const int COPYACHIEVEMENTDEFINITIONV2BYINDEX_API_LATEST = 2;
public const int CopydefinitionbyachievementidApiLatest = 1;
public const int COPYDEFINITIONBYACHIEVEMENTID_API_LATEST = 1;
public const int CopydefinitionbyindexApiLatest = 1;
public const int COPYDEFINITIONBYINDEX_API_LATEST = 1;
public const int Copydefinitionv2ByachievementidApiLatest = 2;
public const int COPYDEFINITIONV2BYACHIEVEMENTID_API_LATEST = 2;
public const int Copydefinitionv2ByindexApiLatest = 2;
public const int COPYDEFINITIONV2BYINDEX_API_LATEST = 2;
public const int CopyplayerachievementbyachievementidApiLatest = 2;
public const int COPYPLAYERACHIEVEMENTBYACHIEVEMENTID_API_LATEST = 2;
public const int CopyplayerachievementbyindexApiLatest = 2;
public const int COPYPLAYERACHIEVEMENTBYINDEX_API_LATEST = 2;
public const int CopyunlockedachievementbyachievementidApiLatest = 1;
public const int COPYUNLOCKEDACHIEVEMENTBYACHIEVEMENTID_API_LATEST = 1;
public const int CopyunlockedachievementbyindexApiLatest = 1;
public const int COPYUNLOCKEDACHIEVEMENTBYINDEX_API_LATEST = 1;
public const int DefinitionApiLatest = 1;
public const int DEFINITIONV2_API_LATEST = 2;
public const int Definitionv2ApiLatest = 2;
public const int DEFINITION_API_LATEST = 1;
public const int GetachievementdefinitioncountApiLatest = 1;
public const int GETACHIEVEMENTDEFINITIONCOUNT_API_LATEST = 1;
public const int GetplayerachievementcountApiLatest = 1;
public const int GETPLAYERACHIEVEMENTCOUNT_API_LATEST = 1;
public const int GetunlockedachievementcountApiLatest = 1;
public const int GETUNLOCKEDACHIEVEMENTCOUNT_API_LATEST = 1;
public const int PlayerachievementApiLatest = 2;
public const int PLAYERACHIEVEMENT_API_LATEST = 2;
public const int PlayerstatinfoApiLatest = 1;
public const int PLAYERSTATINFO_API_LATEST = 1;
public const int QuerydefinitionsApiLatest = 3;
public const int QUERYDEFINITIONS_API_LATEST = 3;
public const int QueryplayerachievementsApiLatest = 2;
public const int QUERYPLAYERACHIEVEMENTS_API_LATEST = 2;
public const int StatthresholdApiLatest = 1;
public const int STATTHRESHOLDS_API_LATEST = 1;
public const int StatthresholdsApiLatest = 1;
public const int STATTHRESHOLD_API_LATEST = 1;
public const int UnlockachievementsApiLatest = 1;
public const int UNLOCKACHIEVEMENTS_API_LATEST = 1;
public const int UnlockedachievementApiLatest = 1;
public const int UNLOCKEDACHIEVEMENT_API_LATEST = 1;
public AchievementsInterface()
{
@ -67,27 +67,33 @@ public sealed class AchievementsInterface : Handle
public ulong AddNotifyAchievementsUnlocked(ref AddNotifyAchievementsUnlockedOptions options, object clientData, OnAchievementsUnlockedCallback notificationFn)
{
if (notificationFn == null)
{
throw new ArgumentNullException("notificationFn");
}
AddNotifyAchievementsUnlockedOptionsInternal options2 = default(AddNotifyAchievementsUnlockedOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnAchievementsUnlockedCallbackInternal onAchievementsUnlockedCallbackInternal = OnAchievementsUnlockedCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, notificationFn, onAchievementsUnlockedCallbackInternal);
ulong num = Bindings.EOS_Achievements_AddNotifyAchievementsUnlocked(base.InnerHandle, ref options2, clientDataAddress, onAchievementsUnlockedCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, notificationFn);
ulong num = Bindings.EOS_Achievements_AddNotifyAchievementsUnlocked(base.InnerHandle, ref options2, clientDataPointer, OnAchievementsUnlockedCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
Helper.AssignNotificationIdToCallback(clientDataAddress, num);
Helper.AssignNotificationIdToCallback(clientDataPointer, num);
return num;
}
public ulong AddNotifyAchievementsUnlockedV2(ref AddNotifyAchievementsUnlockedV2Options options, object clientData, OnAchievementsUnlockedCallbackV2 notificationFn)
{
if (notificationFn == null)
{
throw new ArgumentNullException("notificationFn");
}
AddNotifyAchievementsUnlockedV2OptionsInternal options2 = default(AddNotifyAchievementsUnlockedV2OptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnAchievementsUnlockedCallbackV2Internal onAchievementsUnlockedCallbackV2Internal = OnAchievementsUnlockedCallbackV2InternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, notificationFn, onAchievementsUnlockedCallbackV2Internal);
ulong num = Bindings.EOS_Achievements_AddNotifyAchievementsUnlockedV2(base.InnerHandle, ref options2, clientDataAddress, onAchievementsUnlockedCallbackV2Internal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, notificationFn);
ulong num = Bindings.EOS_Achievements_AddNotifyAchievementsUnlockedV2(base.InnerHandle, ref options2, clientDataPointer, OnAchievementsUnlockedCallbackV2InternalImplementation.Delegate);
Helper.Dispose(ref options2);
Helper.AssignNotificationIdToCallback(clientDataAddress, num);
Helper.AssignNotificationIdToCallback(clientDataPointer, num);
return num;
}
@ -96,10 +102,10 @@ public sealed class AchievementsInterface : Handle
CopyAchievementDefinitionByAchievementIdOptionsInternal options2 = default(CopyAchievementDefinitionByAchievementIdOptionsInternal);
options2.Set(ref options);
IntPtr outDefinition2 = IntPtr.Zero;
Result result = Bindings.EOS_Achievements_CopyAchievementDefinitionByAchievementId(base.InnerHandle, ref options2, ref outDefinition2);
Result result = Bindings.EOS_Achievements_CopyAchievementDefinitionByAchievementId(base.InnerHandle, ref options2, out outDefinition2);
Helper.Dispose(ref options2);
Helper.Get<DefinitionInternal, Definition>(outDefinition2, out outDefinition);
if (outDefinition.HasValue)
if (outDefinition2 != IntPtr.Zero)
{
Bindings.EOS_Achievements_Definition_Release(outDefinition2);
}
@ -111,10 +117,10 @@ public sealed class AchievementsInterface : Handle
CopyAchievementDefinitionByIndexOptionsInternal options2 = default(CopyAchievementDefinitionByIndexOptionsInternal);
options2.Set(ref options);
IntPtr outDefinition2 = IntPtr.Zero;
Result result = Bindings.EOS_Achievements_CopyAchievementDefinitionByIndex(base.InnerHandle, ref options2, ref outDefinition2);
Result result = Bindings.EOS_Achievements_CopyAchievementDefinitionByIndex(base.InnerHandle, ref options2, out outDefinition2);
Helper.Dispose(ref options2);
Helper.Get<DefinitionInternal, Definition>(outDefinition2, out outDefinition);
if (outDefinition.HasValue)
if (outDefinition2 != IntPtr.Zero)
{
Bindings.EOS_Achievements_Definition_Release(outDefinition2);
}
@ -126,10 +132,10 @@ public sealed class AchievementsInterface : Handle
CopyAchievementDefinitionV2ByAchievementIdOptionsInternal options2 = default(CopyAchievementDefinitionV2ByAchievementIdOptionsInternal);
options2.Set(ref options);
IntPtr outDefinition2 = IntPtr.Zero;
Result result = Bindings.EOS_Achievements_CopyAchievementDefinitionV2ByAchievementId(base.InnerHandle, ref options2, ref outDefinition2);
Result result = Bindings.EOS_Achievements_CopyAchievementDefinitionV2ByAchievementId(base.InnerHandle, ref options2, out outDefinition2);
Helper.Dispose(ref options2);
Helper.Get<DefinitionV2Internal, DefinitionV2>(outDefinition2, out outDefinition);
if (outDefinition.HasValue)
if (outDefinition2 != IntPtr.Zero)
{
Bindings.EOS_Achievements_DefinitionV2_Release(outDefinition2);
}
@ -141,10 +147,10 @@ public sealed class AchievementsInterface : Handle
CopyAchievementDefinitionV2ByIndexOptionsInternal options2 = default(CopyAchievementDefinitionV2ByIndexOptionsInternal);
options2.Set(ref options);
IntPtr outDefinition2 = IntPtr.Zero;
Result result = Bindings.EOS_Achievements_CopyAchievementDefinitionV2ByIndex(base.InnerHandle, ref options2, ref outDefinition2);
Result result = Bindings.EOS_Achievements_CopyAchievementDefinitionV2ByIndex(base.InnerHandle, ref options2, out outDefinition2);
Helper.Dispose(ref options2);
Helper.Get<DefinitionV2Internal, DefinitionV2>(outDefinition2, out outDefinition);
if (outDefinition.HasValue)
if (outDefinition2 != IntPtr.Zero)
{
Bindings.EOS_Achievements_DefinitionV2_Release(outDefinition2);
}
@ -156,10 +162,10 @@ public sealed class AchievementsInterface : Handle
CopyPlayerAchievementByAchievementIdOptionsInternal options2 = default(CopyPlayerAchievementByAchievementIdOptionsInternal);
options2.Set(ref options);
IntPtr outAchievement2 = IntPtr.Zero;
Result result = Bindings.EOS_Achievements_CopyPlayerAchievementByAchievementId(base.InnerHandle, ref options2, ref outAchievement2);
Result result = Bindings.EOS_Achievements_CopyPlayerAchievementByAchievementId(base.InnerHandle, ref options2, out outAchievement2);
Helper.Dispose(ref options2);
Helper.Get<PlayerAchievementInternal, PlayerAchievement>(outAchievement2, out outAchievement);
if (outAchievement.HasValue)
if (outAchievement2 != IntPtr.Zero)
{
Bindings.EOS_Achievements_PlayerAchievement_Release(outAchievement2);
}
@ -171,10 +177,10 @@ public sealed class AchievementsInterface : Handle
CopyPlayerAchievementByIndexOptionsInternal options2 = default(CopyPlayerAchievementByIndexOptionsInternal);
options2.Set(ref options);
IntPtr outAchievement2 = IntPtr.Zero;
Result result = Bindings.EOS_Achievements_CopyPlayerAchievementByIndex(base.InnerHandle, ref options2, ref outAchievement2);
Result result = Bindings.EOS_Achievements_CopyPlayerAchievementByIndex(base.InnerHandle, ref options2, out outAchievement2);
Helper.Dispose(ref options2);
Helper.Get<PlayerAchievementInternal, PlayerAchievement>(outAchievement2, out outAchievement);
if (outAchievement.HasValue)
if (outAchievement2 != IntPtr.Zero)
{
Bindings.EOS_Achievements_PlayerAchievement_Release(outAchievement2);
}
@ -186,10 +192,10 @@ public sealed class AchievementsInterface : Handle
CopyUnlockedAchievementByAchievementIdOptionsInternal options2 = default(CopyUnlockedAchievementByAchievementIdOptionsInternal);
options2.Set(ref options);
IntPtr outAchievement2 = IntPtr.Zero;
Result result = Bindings.EOS_Achievements_CopyUnlockedAchievementByAchievementId(base.InnerHandle, ref options2, ref outAchievement2);
Result result = Bindings.EOS_Achievements_CopyUnlockedAchievementByAchievementId(base.InnerHandle, ref options2, out outAchievement2);
Helper.Dispose(ref options2);
Helper.Get<UnlockedAchievementInternal, UnlockedAchievement>(outAchievement2, out outAchievement);
if (outAchievement.HasValue)
if (outAchievement2 != IntPtr.Zero)
{
Bindings.EOS_Achievements_UnlockedAchievement_Release(outAchievement2);
}
@ -201,10 +207,10 @@ public sealed class AchievementsInterface : Handle
CopyUnlockedAchievementByIndexOptionsInternal options2 = default(CopyUnlockedAchievementByIndexOptionsInternal);
options2.Set(ref options);
IntPtr outAchievement2 = IntPtr.Zero;
Result result = Bindings.EOS_Achievements_CopyUnlockedAchievementByIndex(base.InnerHandle, ref options2, ref outAchievement2);
Result result = Bindings.EOS_Achievements_CopyUnlockedAchievementByIndex(base.InnerHandle, ref options2, out outAchievement2);
Helper.Dispose(ref options2);
Helper.Get<UnlockedAchievementInternal, UnlockedAchievement>(outAchievement2, out outAchievement);
if (outAchievement.HasValue)
if (outAchievement2 != IntPtr.Zero)
{
Bindings.EOS_Achievements_UnlockedAchievement_Release(outAchievement2);
}
@ -240,23 +246,29 @@ public sealed class AchievementsInterface : Handle
public void QueryDefinitions(ref QueryDefinitionsOptions options, object clientData, OnQueryDefinitionsCompleteCallback completionDelegate)
{
if (completionDelegate == null)
{
throw new ArgumentNullException("completionDelegate");
}
QueryDefinitionsOptionsInternal options2 = default(QueryDefinitionsOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnQueryDefinitionsCompleteCallbackInternal onQueryDefinitionsCompleteCallbackInternal = OnQueryDefinitionsCompleteCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, completionDelegate, onQueryDefinitionsCompleteCallbackInternal);
Bindings.EOS_Achievements_QueryDefinitions(base.InnerHandle, ref options2, clientDataAddress, onQueryDefinitionsCompleteCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, completionDelegate);
Bindings.EOS_Achievements_QueryDefinitions(base.InnerHandle, ref options2, clientDataPointer, OnQueryDefinitionsCompleteCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
}
public void QueryPlayerAchievements(ref QueryPlayerAchievementsOptions options, object clientData, OnQueryPlayerAchievementsCompleteCallback completionDelegate)
{
if (completionDelegate == null)
{
throw new ArgumentNullException("completionDelegate");
}
QueryPlayerAchievementsOptionsInternal options2 = default(QueryPlayerAchievementsOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnQueryPlayerAchievementsCompleteCallbackInternal onQueryPlayerAchievementsCompleteCallbackInternal = OnQueryPlayerAchievementsCompleteCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, completionDelegate, onQueryPlayerAchievementsCompleteCallbackInternal);
Bindings.EOS_Achievements_QueryPlayerAchievements(base.InnerHandle, ref options2, clientDataAddress, onQueryPlayerAchievementsCompleteCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, completionDelegate);
Bindings.EOS_Achievements_QueryPlayerAchievements(base.InnerHandle, ref options2, clientDataPointer, OnQueryPlayerAchievementsCompleteCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
}
@ -268,57 +280,15 @@ public sealed class AchievementsInterface : Handle
public void UnlockAchievements(ref UnlockAchievementsOptions options, object clientData, OnUnlockAchievementsCompleteCallback completionDelegate)
{
if (completionDelegate == null)
{
throw new ArgumentNullException("completionDelegate");
}
UnlockAchievementsOptionsInternal options2 = default(UnlockAchievementsOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnUnlockAchievementsCompleteCallbackInternal onUnlockAchievementsCompleteCallbackInternal = OnUnlockAchievementsCompleteCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, completionDelegate, onUnlockAchievementsCompleteCallbackInternal);
Bindings.EOS_Achievements_UnlockAchievements(base.InnerHandle, ref options2, clientDataAddress, onUnlockAchievementsCompleteCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, completionDelegate);
Bindings.EOS_Achievements_UnlockAchievements(base.InnerHandle, ref options2, clientDataPointer, OnUnlockAchievementsCompleteCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
}
[MonoPInvokeCallback(typeof(OnAchievementsUnlockedCallbackInternal))]
internal static void OnAchievementsUnlockedCallbackInternalImplementation(ref OnAchievementsUnlockedCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnAchievementsUnlockedCallbackInfoInternal, OnAchievementsUnlockedCallback, OnAchievementsUnlockedCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
[MonoPInvokeCallback(typeof(OnAchievementsUnlockedCallbackV2Internal))]
internal static void OnAchievementsUnlockedCallbackV2InternalImplementation(ref OnAchievementsUnlockedCallbackV2InfoInternal data)
{
if (Helper.TryGetCallback<OnAchievementsUnlockedCallbackV2InfoInternal, OnAchievementsUnlockedCallbackV2, OnAchievementsUnlockedCallbackV2Info>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
[MonoPInvokeCallback(typeof(OnQueryDefinitionsCompleteCallbackInternal))]
internal static void OnQueryDefinitionsCompleteCallbackInternalImplementation(ref OnQueryDefinitionsCompleteCallbackInfoInternal data)
{
if (Helper.TryGetAndRemoveCallback<OnQueryDefinitionsCompleteCallbackInfoInternal, OnQueryDefinitionsCompleteCallback, OnQueryDefinitionsCompleteCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
[MonoPInvokeCallback(typeof(OnQueryPlayerAchievementsCompleteCallbackInternal))]
internal static void OnQueryPlayerAchievementsCompleteCallbackInternalImplementation(ref OnQueryPlayerAchievementsCompleteCallbackInfoInternal data)
{
if (Helper.TryGetAndRemoveCallback<OnQueryPlayerAchievementsCompleteCallbackInfoInternal, OnQueryPlayerAchievementsCompleteCallback, OnQueryPlayerAchievementsCompleteCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
[MonoPInvokeCallback(typeof(OnUnlockAchievementsCompleteCallbackInternal))]
internal static void OnUnlockAchievementsCompleteCallbackInternalImplementation(ref OnUnlockAchievementsCompleteCallbackInfoInternal data)
{
if (Helper.TryGetAndRemoveCallback<OnUnlockAchievementsCompleteCallbackInfoInternal, OnUnlockAchievementsCompleteCallback, OnUnlockAchievementsCompleteCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct AddNotifyAchievementsUnlockedOptionsInternal : ISettable<AddNotifyAchievementsUnlockedOptions>, IDisposable
{
private int m_ApiVersion;
public void Set(ref AddNotifyAchievementsUnlockedOptions other)
{
Dispose();
m_ApiVersion = 1;
}
public void Set(ref AddNotifyAchievementsUnlockedOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
}
}
public void Dispose()
{
}

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct AddNotifyAchievementsUnlockedV2OptionsInternal : ISettable<AddNotifyAchievementsUnlockedV2Options>, IDisposable
{
private int m_ApiVersion;
public void Set(ref AddNotifyAchievementsUnlockedV2Options other)
{
Dispose();
m_ApiVersion = 2;
}
public void Set(ref AddNotifyAchievementsUnlockedV2Options? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
}
}
public void Dispose()
{
}

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CopyAchievementDefinitionByAchievementIdOptionsInternal : ISettable<CopyAchievementDefinitionByAchievementIdOptions>, IDisposable
{
private int m_ApiVersion;
private IntPtr m_AchievementId;
public Utf8String AchievementId
{
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public void Set(ref CopyAchievementDefinitionByAchievementIdOptions other)
{
Dispose();
m_ApiVersion = 1;
AchievementId = other.AchievementId;
}
public void Set(ref CopyAchievementDefinitionByAchievementIdOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
AchievementId = other.Value.AchievementId;
}
Helper.Set(other.AchievementId, ref m_AchievementId);
}
public void Dispose()

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CopyAchievementDefinitionByIndexOptionsInternal : ISettable<CopyAchievementDefinitionByIndexOptions>, IDisposable
{
private int m_ApiVersion;
private uint m_AchievementIndex;
public uint AchievementIndex
{
set
{
m_AchievementIndex = value;
}
}
public void Set(ref CopyAchievementDefinitionByIndexOptions other)
{
Dispose();
m_ApiVersion = 1;
AchievementIndex = other.AchievementIndex;
}
public void Set(ref CopyAchievementDefinitionByIndexOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
AchievementIndex = other.Value.AchievementIndex;
}
m_AchievementIndex = other.AchievementIndex;
}
public void Dispose()

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CopyAchievementDefinitionV2ByAchievementIdOptionsInternal : ISettable<CopyAchievementDefinitionV2ByAchievementIdOptions>, IDisposable
{
private int m_ApiVersion;
private IntPtr m_AchievementId;
public Utf8String AchievementId
{
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public void Set(ref CopyAchievementDefinitionV2ByAchievementIdOptions other)
{
Dispose();
m_ApiVersion = 2;
AchievementId = other.AchievementId;
}
public void Set(ref CopyAchievementDefinitionV2ByAchievementIdOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
AchievementId = other.Value.AchievementId;
}
Helper.Set(other.AchievementId, ref m_AchievementId);
}
public void Dispose()

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CopyAchievementDefinitionV2ByIndexOptionsInternal : ISettable<CopyAchievementDefinitionV2ByIndexOptions>, IDisposable
{
private int m_ApiVersion;
private uint m_AchievementIndex;
public uint AchievementIndex
{
set
{
m_AchievementIndex = value;
}
}
public void Set(ref CopyAchievementDefinitionV2ByIndexOptions other)
{
Dispose();
m_ApiVersion = 2;
AchievementIndex = other.AchievementIndex;
}
public void Set(ref CopyAchievementDefinitionV2ByIndexOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
AchievementIndex = other.Value.AchievementIndex;
}
m_AchievementIndex = other.AchievementIndex;
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CopyPlayerAchievementByAchievementIdOptionsInternal : ISettable<CopyPlayerAchievementByAchievementIdOptions>, IDisposable
{
private int m_ApiVersion;
@ -14,47 +12,13 @@ internal struct CopyPlayerAchievementByAchievementIdOptionsInternal : ISettable<
private IntPtr m_LocalUserId;
public ProductUserId TargetUserId
{
set
{
Helper.Set(value, ref m_TargetUserId);
}
}
public Utf8String AchievementId
{
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public void Set(ref CopyPlayerAchievementByAchievementIdOptions other)
{
Dispose();
m_ApiVersion = 2;
TargetUserId = other.TargetUserId;
AchievementId = other.AchievementId;
LocalUserId = other.LocalUserId;
}
public void Set(ref CopyPlayerAchievementByAchievementIdOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
TargetUserId = other.Value.TargetUserId;
AchievementId = other.Value.AchievementId;
LocalUserId = other.Value.LocalUserId;
}
Helper.Set((Handle)other.TargetUserId, ref m_TargetUserId);
Helper.Set(other.AchievementId, ref m_AchievementId);
Helper.Set((Handle)other.LocalUserId, ref m_LocalUserId);
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CopyPlayerAchievementByIndexOptionsInternal : ISettable<CopyPlayerAchievementByIndexOptions>, IDisposable
{
private int m_ApiVersion;
@ -14,47 +12,13 @@ internal struct CopyPlayerAchievementByIndexOptionsInternal : ISettable<CopyPlay
private IntPtr m_LocalUserId;
public ProductUserId TargetUserId
{
set
{
Helper.Set(value, ref m_TargetUserId);
}
}
public uint AchievementIndex
{
set
{
m_AchievementIndex = value;
}
}
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public void Set(ref CopyPlayerAchievementByIndexOptions other)
{
Dispose();
m_ApiVersion = 2;
TargetUserId = other.TargetUserId;
AchievementIndex = other.AchievementIndex;
LocalUserId = other.LocalUserId;
}
public void Set(ref CopyPlayerAchievementByIndexOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
TargetUserId = other.Value.TargetUserId;
AchievementIndex = other.Value.AchievementIndex;
LocalUserId = other.Value.LocalUserId;
}
Helper.Set((Handle)other.TargetUserId, ref m_TargetUserId);
m_AchievementIndex = other.AchievementIndex;
Helper.Set((Handle)other.LocalUserId, ref m_LocalUserId);
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CopyUnlockedAchievementByAchievementIdOptionsInternal : ISettable<CopyUnlockedAchievementByAchievementIdOptions>, IDisposable
{
private int m_ApiVersion;
@ -12,37 +10,12 @@ internal struct CopyUnlockedAchievementByAchievementIdOptionsInternal : ISettabl
private IntPtr m_AchievementId;
public ProductUserId UserId
{
set
{
Helper.Set(value, ref m_UserId);
}
}
public Utf8String AchievementId
{
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public void Set(ref CopyUnlockedAchievementByAchievementIdOptions other)
{
Dispose();
m_ApiVersion = 1;
UserId = other.UserId;
AchievementId = other.AchievementId;
}
public void Set(ref CopyUnlockedAchievementByAchievementIdOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
UserId = other.Value.UserId;
AchievementId = other.Value.AchievementId;
}
Helper.Set((Handle)other.UserId, ref m_UserId);
Helper.Set(other.AchievementId, ref m_AchievementId);
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct CopyUnlockedAchievementByIndexOptionsInternal : ISettable<CopyUnlockedAchievementByIndexOptions>, IDisposable
{
private int m_ApiVersion;
@ -12,37 +10,12 @@ internal struct CopyUnlockedAchievementByIndexOptionsInternal : ISettable<CopyUn
private uint m_AchievementIndex;
public ProductUserId UserId
{
set
{
Helper.Set(value, ref m_UserId);
}
}
public uint AchievementIndex
{
set
{
m_AchievementIndex = value;
}
}
public void Set(ref CopyUnlockedAchievementByIndexOptions other)
{
Dispose();
m_ApiVersion = 1;
UserId = other.UserId;
AchievementIndex = other.AchievementIndex;
}
public void Set(ref CopyUnlockedAchievementByIndexOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
UserId = other.Value.UserId;
AchievementIndex = other.Value.AchievementIndex;
}
Helper.Set((Handle)other.UserId, ref m_UserId);
m_AchievementIndex = other.AchievementIndex;
}
public void Dispose()

View file

@ -23,19 +23,4 @@ public struct Definition
public bool IsHidden { get; set; }
public StatThresholds[] StatThresholds { get; set; }
internal void Set(ref DefinitionInternal other)
{
AchievementId = other.AchievementId;
DisplayName = other.DisplayName;
Description = other.Description;
LockedDisplayName = other.LockedDisplayName;
LockedDescription = other.LockedDescription;
HiddenDescription = other.HiddenDescription;
CompletionDescription = other.CompletionDescription;
UnlockedIconId = other.UnlockedIconId;
LockedIconId = other.LockedIconId;
IsHidden = other.IsHidden;
StatThresholds = other.StatThresholds;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct DefinitionInternal : IGettable<Definition>, ISettable<Definition>, IDisposable
internal struct DefinitionInternal : IGettable<Definition>
{
private int m_ApiVersion;
@ -32,201 +30,30 @@ internal struct DefinitionInternal : IGettable<Definition>, ISettable<Definition
private IntPtr m_StatThresholds;
public Utf8String AchievementId
public void Get(out Definition other)
{
get
{
Helper.Get(m_AchievementId, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public Utf8String DisplayName
{
get
{
Helper.Get(m_DisplayName, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_DisplayName);
}
}
public Utf8String Description
{
get
{
Helper.Get(m_Description, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_Description);
}
}
public Utf8String LockedDisplayName
{
get
{
Helper.Get(m_LockedDisplayName, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_LockedDisplayName);
}
}
public Utf8String LockedDescription
{
get
{
Helper.Get(m_LockedDescription, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_LockedDescription);
}
}
public Utf8String HiddenDescription
{
get
{
Helper.Get(m_HiddenDescription, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_HiddenDescription);
}
}
public Utf8String CompletionDescription
{
get
{
Helper.Get(m_CompletionDescription, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_CompletionDescription);
}
}
public Utf8String UnlockedIconId
{
get
{
Helper.Get(m_UnlockedIconId, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_UnlockedIconId);
}
}
public Utf8String LockedIconId
{
get
{
Helper.Get(m_LockedIconId, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_LockedIconId);
}
}
public bool IsHidden
{
get
{
Helper.Get(m_IsHidden, out var to);
return to;
}
set
{
Helper.Set(value, ref m_IsHidden);
}
}
public StatThresholds[] StatThresholds
{
get
{
Helper.Get<StatThresholdsInternal, StatThresholds>(m_StatThresholds, out var to, m_StatThresholdsCount);
return to;
}
set
{
Helper.Set<StatThresholds, StatThresholdsInternal>(ref value, ref m_StatThresholds, out m_StatThresholdsCount);
}
}
public void Set(ref Definition other)
{
m_ApiVersion = 1;
AchievementId = other.AchievementId;
DisplayName = other.DisplayName;
Description = other.Description;
LockedDisplayName = other.LockedDisplayName;
LockedDescription = other.LockedDescription;
HiddenDescription = other.HiddenDescription;
CompletionDescription = other.CompletionDescription;
UnlockedIconId = other.UnlockedIconId;
LockedIconId = other.LockedIconId;
IsHidden = other.IsHidden;
StatThresholds = other.StatThresholds;
}
public void Set(ref Definition? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
AchievementId = other.Value.AchievementId;
DisplayName = other.Value.DisplayName;
Description = other.Value.Description;
LockedDisplayName = other.Value.LockedDisplayName;
LockedDescription = other.Value.LockedDescription;
HiddenDescription = other.Value.HiddenDescription;
CompletionDescription = other.Value.CompletionDescription;
UnlockedIconId = other.Value.UnlockedIconId;
LockedIconId = other.Value.LockedIconId;
IsHidden = other.Value.IsHidden;
StatThresholds = other.Value.StatThresholds;
}
}
public void Dispose()
{
Helper.Dispose(ref m_AchievementId);
Helper.Dispose(ref m_DisplayName);
Helper.Dispose(ref m_Description);
Helper.Dispose(ref m_LockedDisplayName);
Helper.Dispose(ref m_LockedDescription);
Helper.Dispose(ref m_HiddenDescription);
Helper.Dispose(ref m_CompletionDescription);
Helper.Dispose(ref m_UnlockedIconId);
Helper.Dispose(ref m_LockedIconId);
Helper.Dispose(ref m_StatThresholds);
}
public void Get(out Definition output)
{
output = default(Definition);
output.Set(ref this);
other = default(Definition);
Helper.Get(m_AchievementId, out Utf8String to);
other.AchievementId = to;
Helper.Get(m_DisplayName, out Utf8String to2);
other.DisplayName = to2;
Helper.Get(m_Description, out Utf8String to3);
other.Description = to3;
Helper.Get(m_LockedDisplayName, out Utf8String to4);
other.LockedDisplayName = to4;
Helper.Get(m_LockedDescription, out Utf8String to5);
other.LockedDescription = to5;
Helper.Get(m_HiddenDescription, out Utf8String to6);
other.HiddenDescription = to6;
Helper.Get(m_CompletionDescription, out Utf8String to7);
other.CompletionDescription = to7;
Helper.Get(m_UnlockedIconId, out Utf8String to8);
other.UnlockedIconId = to8;
Helper.Get(m_LockedIconId, out Utf8String to9);
other.LockedIconId = to9;
Helper.Get(m_IsHidden, out bool to10);
other.IsHidden = to10;
Helper.Get<StatThresholdsInternal, StatThresholds>(m_StatThresholds, out var to11, m_StatThresholdsCount, isArrayItemAllocated: false);
other.StatThresholds = to11;
}
}

View file

@ -21,18 +21,4 @@ public struct DefinitionV2
public bool IsHidden { get; set; }
public StatThresholds[] StatThresholds { get; set; }
internal void Set(ref DefinitionV2Internal other)
{
AchievementId = other.AchievementId;
UnlockedDisplayName = other.UnlockedDisplayName;
UnlockedDescription = other.UnlockedDescription;
LockedDisplayName = other.LockedDisplayName;
LockedDescription = other.LockedDescription;
FlavorText = other.FlavorText;
UnlockedIconURL = other.UnlockedIconURL;
LockedIconURL = other.LockedIconURL;
IsHidden = other.IsHidden;
StatThresholds = other.StatThresholds;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct DefinitionV2Internal : IGettable<DefinitionV2>, ISettable<DefinitionV2>, IDisposable
internal struct DefinitionV2Internal : IGettable<DefinitionV2>
{
private int m_ApiVersion;
@ -30,185 +28,28 @@ internal struct DefinitionV2Internal : IGettable<DefinitionV2>, ISettable<Defini
private IntPtr m_StatThresholds;
public Utf8String AchievementId
public void Get(out DefinitionV2 other)
{
get
{
Helper.Get(m_AchievementId, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public Utf8String UnlockedDisplayName
{
get
{
Helper.Get(m_UnlockedDisplayName, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_UnlockedDisplayName);
}
}
public Utf8String UnlockedDescription
{
get
{
Helper.Get(m_UnlockedDescription, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_UnlockedDescription);
}
}
public Utf8String LockedDisplayName
{
get
{
Helper.Get(m_LockedDisplayName, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_LockedDisplayName);
}
}
public Utf8String LockedDescription
{
get
{
Helper.Get(m_LockedDescription, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_LockedDescription);
}
}
public Utf8String FlavorText
{
get
{
Helper.Get(m_FlavorText, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_FlavorText);
}
}
public Utf8String UnlockedIconURL
{
get
{
Helper.Get(m_UnlockedIconURL, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_UnlockedIconURL);
}
}
public Utf8String LockedIconURL
{
get
{
Helper.Get(m_LockedIconURL, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_LockedIconURL);
}
}
public bool IsHidden
{
get
{
Helper.Get(m_IsHidden, out var to);
return to;
}
set
{
Helper.Set(value, ref m_IsHidden);
}
}
public StatThresholds[] StatThresholds
{
get
{
Helper.Get<StatThresholdsInternal, StatThresholds>(m_StatThresholds, out var to, m_StatThresholdsCount);
return to;
}
set
{
Helper.Set<StatThresholds, StatThresholdsInternal>(ref value, ref m_StatThresholds, out m_StatThresholdsCount);
}
}
public void Set(ref DefinitionV2 other)
{
m_ApiVersion = 2;
AchievementId = other.AchievementId;
UnlockedDisplayName = other.UnlockedDisplayName;
UnlockedDescription = other.UnlockedDescription;
LockedDisplayName = other.LockedDisplayName;
LockedDescription = other.LockedDescription;
FlavorText = other.FlavorText;
UnlockedIconURL = other.UnlockedIconURL;
LockedIconURL = other.LockedIconURL;
IsHidden = other.IsHidden;
StatThresholds = other.StatThresholds;
}
public void Set(ref DefinitionV2? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
AchievementId = other.Value.AchievementId;
UnlockedDisplayName = other.Value.UnlockedDisplayName;
UnlockedDescription = other.Value.UnlockedDescription;
LockedDisplayName = other.Value.LockedDisplayName;
LockedDescription = other.Value.LockedDescription;
FlavorText = other.Value.FlavorText;
UnlockedIconURL = other.Value.UnlockedIconURL;
LockedIconURL = other.Value.LockedIconURL;
IsHidden = other.Value.IsHidden;
StatThresholds = other.Value.StatThresholds;
}
}
public void Dispose()
{
Helper.Dispose(ref m_AchievementId);
Helper.Dispose(ref m_UnlockedDisplayName);
Helper.Dispose(ref m_UnlockedDescription);
Helper.Dispose(ref m_LockedDisplayName);
Helper.Dispose(ref m_LockedDescription);
Helper.Dispose(ref m_FlavorText);
Helper.Dispose(ref m_UnlockedIconURL);
Helper.Dispose(ref m_LockedIconURL);
Helper.Dispose(ref m_StatThresholds);
}
public void Get(out DefinitionV2 output)
{
output = default(DefinitionV2);
output.Set(ref this);
other = default(DefinitionV2);
Helper.Get(m_AchievementId, out Utf8String to);
other.AchievementId = to;
Helper.Get(m_UnlockedDisplayName, out Utf8String to2);
other.UnlockedDisplayName = to2;
Helper.Get(m_UnlockedDescription, out Utf8String to3);
other.UnlockedDescription = to3;
Helper.Get(m_LockedDisplayName, out Utf8String to4);
other.LockedDisplayName = to4;
Helper.Get(m_LockedDescription, out Utf8String to5);
other.LockedDescription = to5;
Helper.Get(m_FlavorText, out Utf8String to6);
other.FlavorText = to6;
Helper.Get(m_UnlockedIconURL, out Utf8String to7);
other.UnlockedIconURL = to7;
Helper.Get(m_LockedIconURL, out Utf8String to8);
other.LockedIconURL = to8;
Helper.Get(m_IsHidden, out bool to9);
other.IsHidden = to9;
Helper.Get<StatThresholdsInternal, StatThresholds>(m_StatThresholds, out var to10, m_StatThresholdsCount, isArrayItemAllocated: false);
other.StatThresholds = to10;
}
}

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct GetAchievementDefinitionCountOptionsInternal : ISettable<GetAchievementDefinitionCountOptions>, IDisposable
{
private int m_ApiVersion;
public void Set(ref GetAchievementDefinitionCountOptions other)
{
Dispose();
m_ApiVersion = 1;
}
public void Set(ref GetAchievementDefinitionCountOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
}
}
public void Dispose()
{
}

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct GetPlayerAchievementCountOptionsInternal : ISettable<GetPlayerAchievementCountOptions>, IDisposable
{
private int m_ApiVersion;
private IntPtr m_UserId;
public ProductUserId UserId
{
set
{
Helper.Set(value, ref m_UserId);
}
}
public void Set(ref GetPlayerAchievementCountOptions other)
{
Dispose();
m_ApiVersion = 1;
UserId = other.UserId;
}
public void Set(ref GetPlayerAchievementCountOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
UserId = other.Value.UserId;
}
Helper.Set((Handle)other.UserId, ref m_UserId);
}
public void Dispose()

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct GetUnlockedAchievementCountOptionsInternal : ISettable<GetUnlockedAchievementCountOptions>, IDisposable
{
private int m_ApiVersion;
private IntPtr m_UserId;
public ProductUserId UserId
{
set
{
Helper.Set(value, ref m_UserId);
}
}
public void Set(ref GetUnlockedAchievementCountOptions other)
{
Dispose();
m_ApiVersion = 1;
UserId = other.UserId;
}
public void Set(ref GetUnlockedAchievementCountOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
UserId = other.Value.UserId;
}
Helper.Set((Handle)other.UserId, ref m_UserId);
}
public void Dispose()

View file

@ -8,15 +8,13 @@ public struct OnAchievementsUnlockedCallbackInfo : ICallbackInfo
public Utf8String[] AchievementIds { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return null;
}
internal void Set(ref OnAchievementsUnlockedCallbackInfoInternal other)
{
ClientData = other.ClientData;
UserId = other.UserId;
AchievementIds = other.AchievementIds;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnAchievementsUnlockedCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnAchievementsUnlockedCallbackInfo>, ISettable<OnAchievementsUnlockedCallbackInfo>, IDisposable
internal struct OnAchievementsUnlockedCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnAchievementsUnlockedCallbackInfo>
{
private IntPtr m_ClientData;
@ -14,74 +12,16 @@ internal struct OnAchievementsUnlockedCallbackInfoInternal : ICallbackInfoIntern
private IntPtr m_AchievementIds;
public object ClientData
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataPointer => m_ClientData;
public IntPtr ClientDataAddress => m_ClientData;
public ProductUserId UserId
public void Get(out OnAchievementsUnlockedCallbackInfo other)
{
get
{
Helper.Get(m_UserId, out ProductUserId to);
return to;
}
set
{
Helper.Set(value, ref m_UserId);
}
}
public Utf8String[] AchievementIds
{
get
{
Helper.Get<Utf8String>(m_AchievementIds, out var to, m_AchievementsCount, isArrayItemAllocated: true);
return to;
}
set
{
Helper.Set(value, ref m_AchievementIds, isArrayItemAllocated: true, out m_AchievementsCount);
}
}
public void Set(ref OnAchievementsUnlockedCallbackInfo other)
{
ClientData = other.ClientData;
UserId = other.UserId;
AchievementIds = other.AchievementIds;
}
public void Set(ref OnAchievementsUnlockedCallbackInfo? other)
{
if (other.HasValue)
{
ClientData = other.Value.ClientData;
UserId = other.Value.UserId;
AchievementIds = other.Value.AchievementIds;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_UserId);
Helper.Dispose(ref m_AchievementIds);
}
public void Get(out OnAchievementsUnlockedCallbackInfo output)
{
output = default(OnAchievementsUnlockedCallbackInfo);
output.Set(ref this);
other = default(OnAchievementsUnlockedCallbackInfo);
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
Helper.Get(m_UserId, out ProductUserId to2);
other.UserId = to2;
Helper.Get(m_AchievementIds, out var to3, m_AchievementsCount, isArrayItemAllocated: true);
other.AchievementIds = to3;
}
}

View file

@ -0,0 +1,27 @@
namespace Epic.OnlineServices.Achievements;
internal static class OnAchievementsUnlockedCallbackInternalImplementation
{
private static OnAchievementsUnlockedCallbackInternal s_Delegate;
public static OnAchievementsUnlockedCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnAchievementsUnlockedCallbackInternal))]
public static void EntryPoint(ref OnAchievementsUnlockedCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnAchievementsUnlockedCallbackInfoInternal, OnAchievementsUnlockedCallback, OnAchievementsUnlockedCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -12,16 +12,13 @@ public struct OnAchievementsUnlockedCallbackV2Info : ICallbackInfo
public DateTimeOffset? UnlockTime { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return null;
}
internal void Set(ref OnAchievementsUnlockedCallbackV2InfoInternal other)
{
ClientData = other.ClientData;
UserId = other.UserId;
AchievementId = other.AchievementId;
UnlockTime = other.UnlockTime;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnAchievementsUnlockedCallbackV2InfoInternal : ICallbackInfoInternal, IGettable<OnAchievementsUnlockedCallbackV2Info>, ISettable<OnAchievementsUnlockedCallbackV2Info>, IDisposable
internal struct OnAchievementsUnlockedCallbackV2InfoInternal : ICallbackInfoInternal, IGettable<OnAchievementsUnlockedCallbackV2Info>
{
private IntPtr m_ClientData;
@ -14,89 +12,18 @@ internal struct OnAchievementsUnlockedCallbackV2InfoInternal : ICallbackInfoInte
private long m_UnlockTime;
public object ClientData
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataPointer => m_ClientData;
public IntPtr ClientDataAddress => m_ClientData;
public ProductUserId UserId
public void Get(out OnAchievementsUnlockedCallbackV2Info other)
{
get
{
Helper.Get(m_UserId, out ProductUserId to);
return to;
}
set
{
Helper.Set(value, ref m_UserId);
}
}
public Utf8String AchievementId
{
get
{
Helper.Get(m_AchievementId, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public DateTimeOffset? UnlockTime
{
get
{
Helper.Get(m_UnlockTime, out var to);
return to;
}
set
{
Helper.Set(value, ref m_UnlockTime);
}
}
public void Set(ref OnAchievementsUnlockedCallbackV2Info other)
{
ClientData = other.ClientData;
UserId = other.UserId;
AchievementId = other.AchievementId;
UnlockTime = other.UnlockTime;
}
public void Set(ref OnAchievementsUnlockedCallbackV2Info? other)
{
if (other.HasValue)
{
ClientData = other.Value.ClientData;
UserId = other.Value.UserId;
AchievementId = other.Value.AchievementId;
UnlockTime = other.Value.UnlockTime;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_UserId);
Helper.Dispose(ref m_AchievementId);
}
public void Get(out OnAchievementsUnlockedCallbackV2Info output)
{
output = default(OnAchievementsUnlockedCallbackV2Info);
output.Set(ref this);
other = default(OnAchievementsUnlockedCallbackV2Info);
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
Helper.Get(m_UserId, out ProductUserId to2);
other.UserId = to2;
Helper.Get(m_AchievementId, out Utf8String to3);
other.AchievementId = to3;
Helper.Get(m_UnlockTime, out DateTimeOffset? to4);
other.UnlockTime = to4;
}
}

View file

@ -0,0 +1,27 @@
namespace Epic.OnlineServices.Achievements;
internal static class OnAchievementsUnlockedCallbackV2InternalImplementation
{
private static OnAchievementsUnlockedCallbackV2Internal s_Delegate;
public static OnAchievementsUnlockedCallbackV2Internal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnAchievementsUnlockedCallbackV2Internal))]
public static void EntryPoint(ref OnAchievementsUnlockedCallbackV2InfoInternal data)
{
if (Helper.TryGetCallback<OnAchievementsUnlockedCallbackV2InfoInternal, OnAchievementsUnlockedCallbackV2, OnAchievementsUnlockedCallbackV2Info>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -6,14 +6,13 @@ public struct OnQueryDefinitionsCompleteCallbackInfo : ICallbackInfo
public object ClientData { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return ResultCode;
}
internal void Set(ref OnQueryDefinitionsCompleteCallbackInfoInternal other)
{
ResultCode = other.ResultCode;
ClientData = other.ClientData;
}
}

View file

@ -1,65 +1,20 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnQueryDefinitionsCompleteCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnQueryDefinitionsCompleteCallbackInfo>, ISettable<OnQueryDefinitionsCompleteCallbackInfo>, IDisposable
internal struct OnQueryDefinitionsCompleteCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnQueryDefinitionsCompleteCallbackInfo>
{
private Result m_ResultCode;
private IntPtr m_ClientData;
public Result ResultCode
{
get
{
return m_ResultCode;
}
set
{
m_ResultCode = value;
}
}
public IntPtr ClientDataPointer => m_ClientData;
public object ClientData
public void Get(out OnQueryDefinitionsCompleteCallbackInfo other)
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataAddress => m_ClientData;
public void Set(ref OnQueryDefinitionsCompleteCallbackInfo other)
{
ResultCode = other.ResultCode;
ClientData = other.ClientData;
}
public void Set(ref OnQueryDefinitionsCompleteCallbackInfo? other)
{
if (other.HasValue)
{
ResultCode = other.Value.ResultCode;
ClientData = other.Value.ClientData;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
}
public void Get(out OnQueryDefinitionsCompleteCallbackInfo output)
{
output = default(OnQueryDefinitionsCompleteCallbackInfo);
output.Set(ref this);
other = default(OnQueryDefinitionsCompleteCallbackInfo);
other.ResultCode = m_ResultCode;
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
}
}

View file

@ -0,0 +1,27 @@
namespace Epic.OnlineServices.Achievements;
internal static class OnQueryDefinitionsCompleteCallbackInternalImplementation
{
private static OnQueryDefinitionsCompleteCallbackInternal s_Delegate;
public static OnQueryDefinitionsCompleteCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnQueryDefinitionsCompleteCallbackInternal))]
public static void EntryPoint(ref OnQueryDefinitionsCompleteCallbackInfoInternal data)
{
if (Helper.TryGetAndRemoveCallback<OnQueryDefinitionsCompleteCallbackInfoInternal, OnQueryDefinitionsCompleteCallback, OnQueryDefinitionsCompleteCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -10,16 +10,13 @@ public struct OnQueryPlayerAchievementsCompleteCallbackInfo : ICallbackInfo
public ProductUserId LocalUserId { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return ResultCode;
}
internal void Set(ref OnQueryPlayerAchievementsCompleteCallbackInfoInternal other)
{
ResultCode = other.ResultCode;
ClientData = other.ClientData;
TargetUserId = other.TargetUserId;
LocalUserId = other.LocalUserId;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnQueryPlayerAchievementsCompleteCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnQueryPlayerAchievementsCompleteCallbackInfo>, ISettable<OnQueryPlayerAchievementsCompleteCallbackInfo>, IDisposable
internal struct OnQueryPlayerAchievementsCompleteCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnQueryPlayerAchievementsCompleteCallbackInfo>
{
private Result m_ResultCode;
@ -14,88 +12,17 @@ internal struct OnQueryPlayerAchievementsCompleteCallbackInfoInternal : ICallbac
private IntPtr m_LocalUserId;
public Result ResultCode
{
get
{
return m_ResultCode;
}
set
{
m_ResultCode = value;
}
}
public IntPtr ClientDataPointer => m_ClientData;
public object ClientData
public void Get(out OnQueryPlayerAchievementsCompleteCallbackInfo other)
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataAddress => m_ClientData;
public ProductUserId TargetUserId
{
get
{
Helper.Get(m_TargetUserId, out ProductUserId to);
return to;
}
set
{
Helper.Set(value, ref m_TargetUserId);
}
}
public ProductUserId LocalUserId
{
get
{
Helper.Get(m_LocalUserId, out ProductUserId to);
return to;
}
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public void Set(ref OnQueryPlayerAchievementsCompleteCallbackInfo other)
{
ResultCode = other.ResultCode;
ClientData = other.ClientData;
TargetUserId = other.TargetUserId;
LocalUserId = other.LocalUserId;
}
public void Set(ref OnQueryPlayerAchievementsCompleteCallbackInfo? other)
{
if (other.HasValue)
{
ResultCode = other.Value.ResultCode;
ClientData = other.Value.ClientData;
TargetUserId = other.Value.TargetUserId;
LocalUserId = other.Value.LocalUserId;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_TargetUserId);
Helper.Dispose(ref m_LocalUserId);
}
public void Get(out OnQueryPlayerAchievementsCompleteCallbackInfo output)
{
output = default(OnQueryPlayerAchievementsCompleteCallbackInfo);
output.Set(ref this);
other = default(OnQueryPlayerAchievementsCompleteCallbackInfo);
other.ResultCode = m_ResultCode;
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
Helper.Get(m_TargetUserId, out ProductUserId to2);
other.TargetUserId = to2;
Helper.Get(m_LocalUserId, out ProductUserId to3);
other.LocalUserId = to3;
}
}

View file

@ -0,0 +1,27 @@
namespace Epic.OnlineServices.Achievements;
internal static class OnQueryPlayerAchievementsCompleteCallbackInternalImplementation
{
private static OnQueryPlayerAchievementsCompleteCallbackInternal s_Delegate;
public static OnQueryPlayerAchievementsCompleteCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnQueryPlayerAchievementsCompleteCallbackInternal))]
public static void EntryPoint(ref OnQueryPlayerAchievementsCompleteCallbackInfoInternal data)
{
if (Helper.TryGetAndRemoveCallback<OnQueryPlayerAchievementsCompleteCallbackInfoInternal, OnQueryPlayerAchievementsCompleteCallback, OnQueryPlayerAchievementsCompleteCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -10,16 +10,13 @@ public struct OnUnlockAchievementsCompleteCallbackInfo : ICallbackInfo
public uint AchievementsCount { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return ResultCode;
}
internal void Set(ref OnUnlockAchievementsCompleteCallbackInfoInternal other)
{
ResultCode = other.ResultCode;
ClientData = other.ClientData;
UserId = other.UserId;
AchievementsCount = other.AchievementsCount;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnUnlockAchievementsCompleteCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnUnlockAchievementsCompleteCallbackInfo>, ISettable<OnUnlockAchievementsCompleteCallbackInfo>, IDisposable
internal struct OnUnlockAchievementsCompleteCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnUnlockAchievementsCompleteCallbackInfo>
{
private Result m_ResultCode;
@ -14,86 +12,16 @@ internal struct OnUnlockAchievementsCompleteCallbackInfoInternal : ICallbackInfo
private uint m_AchievementsCount;
public Result ResultCode
{
get
{
return m_ResultCode;
}
set
{
m_ResultCode = value;
}
}
public IntPtr ClientDataPointer => m_ClientData;
public object ClientData
public void Get(out OnUnlockAchievementsCompleteCallbackInfo other)
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataAddress => m_ClientData;
public ProductUserId UserId
{
get
{
Helper.Get(m_UserId, out ProductUserId to);
return to;
}
set
{
Helper.Set(value, ref m_UserId);
}
}
public uint AchievementsCount
{
get
{
return m_AchievementsCount;
}
set
{
m_AchievementsCount = value;
}
}
public void Set(ref OnUnlockAchievementsCompleteCallbackInfo other)
{
ResultCode = other.ResultCode;
ClientData = other.ClientData;
UserId = other.UserId;
AchievementsCount = other.AchievementsCount;
}
public void Set(ref OnUnlockAchievementsCompleteCallbackInfo? other)
{
if (other.HasValue)
{
ResultCode = other.Value.ResultCode;
ClientData = other.Value.ClientData;
UserId = other.Value.UserId;
AchievementsCount = other.Value.AchievementsCount;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_UserId);
}
public void Get(out OnUnlockAchievementsCompleteCallbackInfo output)
{
output = default(OnUnlockAchievementsCompleteCallbackInfo);
output.Set(ref this);
other = default(OnUnlockAchievementsCompleteCallbackInfo);
other.ResultCode = m_ResultCode;
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
Helper.Get(m_UserId, out ProductUserId to2);
other.UserId = to2;
other.AchievementsCount = m_AchievementsCount;
}
}

View file

@ -0,0 +1,27 @@
namespace Epic.OnlineServices.Achievements;
internal static class OnUnlockAchievementsCompleteCallbackInternalImplementation
{
private static OnUnlockAchievementsCompleteCallbackInternal s_Delegate;
public static OnUnlockAchievementsCompleteCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnUnlockAchievementsCompleteCallbackInternal))]
public static void EntryPoint(ref OnUnlockAchievementsCompleteCallbackInfoInternal data)
{
if (Helper.TryGetAndRemoveCallback<OnUnlockAchievementsCompleteCallbackInfoInternal, OnUnlockAchievementsCompleteCallback, OnUnlockAchievementsCompleteCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -19,16 +19,4 @@ public struct PlayerAchievement
public Utf8String IconURL { get; set; }
public Utf8String FlavorText { get; set; }
internal void Set(ref PlayerAchievementInternal other)
{
AchievementId = other.AchievementId;
Progress = other.Progress;
UnlockTime = other.UnlockTime;
StatInfo = other.StatInfo;
DisplayName = other.DisplayName;
Description = other.Description;
IconURL = other.IconURL;
FlavorText = other.FlavorText;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct PlayerAchievementInternal : IGettable<PlayerAchievement>, ISettable<PlayerAchievement>, IDisposable
internal struct PlayerAchievementInternal : IGettable<PlayerAchievement>
{
private int m_ApiVersion;
@ -26,151 +24,23 @@ internal struct PlayerAchievementInternal : IGettable<PlayerAchievement>, ISetta
private IntPtr m_FlavorText;
public Utf8String AchievementId
public void Get(out PlayerAchievement other)
{
get
{
Helper.Get(m_AchievementId, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public double Progress
{
get
{
return m_Progress;
}
set
{
m_Progress = value;
}
}
public DateTimeOffset? UnlockTime
{
get
{
Helper.Get(m_UnlockTime, out var to);
return to;
}
set
{
Helper.Set(value, ref m_UnlockTime);
}
}
public PlayerStatInfo[] StatInfo
{
get
{
Helper.Get<PlayerStatInfoInternal, PlayerStatInfo>(m_StatInfo, out var to, m_StatInfoCount);
return to;
}
set
{
Helper.Set<PlayerStatInfo, PlayerStatInfoInternal>(ref value, ref m_StatInfo, out m_StatInfoCount);
}
}
public Utf8String DisplayName
{
get
{
Helper.Get(m_DisplayName, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_DisplayName);
}
}
public Utf8String Description
{
get
{
Helper.Get(m_Description, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_Description);
}
}
public Utf8String IconURL
{
get
{
Helper.Get(m_IconURL, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_IconURL);
}
}
public Utf8String FlavorText
{
get
{
Helper.Get(m_FlavorText, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_FlavorText);
}
}
public void Set(ref PlayerAchievement other)
{
m_ApiVersion = 2;
AchievementId = other.AchievementId;
Progress = other.Progress;
UnlockTime = other.UnlockTime;
StatInfo = other.StatInfo;
DisplayName = other.DisplayName;
Description = other.Description;
IconURL = other.IconURL;
FlavorText = other.FlavorText;
}
public void Set(ref PlayerAchievement? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
AchievementId = other.Value.AchievementId;
Progress = other.Value.Progress;
UnlockTime = other.Value.UnlockTime;
StatInfo = other.Value.StatInfo;
DisplayName = other.Value.DisplayName;
Description = other.Value.Description;
IconURL = other.Value.IconURL;
FlavorText = other.Value.FlavorText;
}
}
public void Dispose()
{
Helper.Dispose(ref m_AchievementId);
Helper.Dispose(ref m_StatInfo);
Helper.Dispose(ref m_DisplayName);
Helper.Dispose(ref m_Description);
Helper.Dispose(ref m_IconURL);
Helper.Dispose(ref m_FlavorText);
}
public void Get(out PlayerAchievement output)
{
output = default(PlayerAchievement);
output.Set(ref this);
other = default(PlayerAchievement);
Helper.Get(m_AchievementId, out Utf8String to);
other.AchievementId = to;
other.Progress = m_Progress;
Helper.Get(m_UnlockTime, out DateTimeOffset? to2);
other.UnlockTime = to2;
Helper.Get<PlayerStatInfoInternal, PlayerStatInfo>(m_StatInfo, out var to3, m_StatInfoCount, isArrayItemAllocated: false);
other.StatInfo = to3;
Helper.Get(m_DisplayName, out Utf8String to4);
other.DisplayName = to4;
Helper.Get(m_Description, out Utf8String to5);
other.Description = to5;
Helper.Get(m_IconURL, out Utf8String to6);
other.IconURL = to6;
Helper.Get(m_FlavorText, out Utf8String to7);
other.FlavorText = to7;
}
}

View file

@ -7,11 +7,4 @@ public struct PlayerStatInfo
public int CurrentValue { get; set; }
public int ThresholdValue { get; set; }
internal void Set(ref PlayerStatInfoInternal other)
{
Name = other.Name;
CurrentValue = other.CurrentValue;
ThresholdValue = other.ThresholdValue;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct PlayerStatInfoInternal : IGettable<PlayerStatInfo>, ISettable<PlayerStatInfo>, IDisposable
internal struct PlayerStatInfoInternal : IGettable<PlayerStatInfo>
{
private int m_ApiVersion;
@ -14,70 +12,12 @@ internal struct PlayerStatInfoInternal : IGettable<PlayerStatInfo>, ISettable<Pl
private int m_ThresholdValue;
public Utf8String Name
public void Get(out PlayerStatInfo other)
{
get
{
Helper.Get(m_Name, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_Name);
}
}
public int CurrentValue
{
get
{
return m_CurrentValue;
}
set
{
m_CurrentValue = value;
}
}
public int ThresholdValue
{
get
{
return m_ThresholdValue;
}
set
{
m_ThresholdValue = value;
}
}
public void Set(ref PlayerStatInfo other)
{
m_ApiVersion = 1;
Name = other.Name;
CurrentValue = other.CurrentValue;
ThresholdValue = other.ThresholdValue;
}
public void Set(ref PlayerStatInfo? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
Name = other.Value.Name;
CurrentValue = other.Value.CurrentValue;
ThresholdValue = other.Value.ThresholdValue;
}
}
public void Dispose()
{
Helper.Dispose(ref m_Name);
}
public void Get(out PlayerStatInfo output)
{
output = default(PlayerStatInfo);
output.Set(ref this);
other = default(PlayerStatInfo);
Helper.Get(m_Name, out Utf8String to);
other.Name = to;
other.CurrentValue = m_CurrentValue;
other.ThresholdValue = m_ThresholdValue;
}
}

View file

@ -4,7 +4,7 @@ public struct QueryDefinitionsOptions
{
public ProductUserId LocalUserId { get; set; }
internal EpicAccountId EpicUserId_DEPRECATED { get; set; }
public EpicAccountId EpicUserId_DEPRECATED { get; set; }
internal Utf8String[] HiddenAchievementIds_DEPRECATED { get; set; }
public Utf8String[] HiddenAchievementIds_DEPRECATED { get; set; }
}

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct QueryDefinitionsOptionsInternal : ISettable<QueryDefinitionsOptions>, IDisposable
{
private int m_ApiVersion;
@ -16,47 +14,13 @@ internal struct QueryDefinitionsOptionsInternal : ISettable<QueryDefinitionsOpti
private uint m_HiddenAchievementsCount_DEPRECATED;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public EpicAccountId EpicUserId_DEPRECATED
{
set
{
Helper.Set(value, ref m_EpicUserId_DEPRECATED);
}
}
public Utf8String[] HiddenAchievementIds_DEPRECATED
{
set
{
Helper.Set(value, ref m_HiddenAchievementIds_DEPRECATED, isArrayItemAllocated: true, out m_HiddenAchievementsCount_DEPRECATED);
}
}
public void Set(ref QueryDefinitionsOptions other)
{
Dispose();
m_ApiVersion = 3;
LocalUserId = other.LocalUserId;
EpicUserId_DEPRECATED = other.EpicUserId_DEPRECATED;
HiddenAchievementIds_DEPRECATED = other.HiddenAchievementIds_DEPRECATED;
}
public void Set(ref QueryDefinitionsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 3;
LocalUserId = other.Value.LocalUserId;
EpicUserId_DEPRECATED = other.Value.EpicUserId_DEPRECATED;
HiddenAchievementIds_DEPRECATED = other.Value.HiddenAchievementIds_DEPRECATED;
}
Helper.Set((Handle)other.LocalUserId, ref m_LocalUserId);
Helper.Set((Handle)other.EpicUserId_DEPRECATED, ref m_EpicUserId_DEPRECATED);
Helper.Set(other.HiddenAchievementIds_DEPRECATED, ref m_HiddenAchievementIds_DEPRECATED, out m_HiddenAchievementsCount_DEPRECATED, isArrayItemAllocated: true);
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct QueryPlayerAchievementsOptionsInternal : ISettable<QueryPlayerAchievementsOptions>, IDisposable
{
private int m_ApiVersion;
@ -12,37 +10,12 @@ internal struct QueryPlayerAchievementsOptionsInternal : ISettable<QueryPlayerAc
private IntPtr m_LocalUserId;
public ProductUserId TargetUserId
{
set
{
Helper.Set(value, ref m_TargetUserId);
}
}
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public void Set(ref QueryPlayerAchievementsOptions other)
{
Dispose();
m_ApiVersion = 2;
TargetUserId = other.TargetUserId;
LocalUserId = other.LocalUserId;
}
public void Set(ref QueryPlayerAchievementsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
TargetUserId = other.Value.TargetUserId;
LocalUserId = other.Value.LocalUserId;
}
Helper.Set((Handle)other.TargetUserId, ref m_TargetUserId);
Helper.Set((Handle)other.LocalUserId, ref m_LocalUserId);
}
public void Dispose()

View file

@ -5,10 +5,4 @@ public struct StatThresholds
public Utf8String Name { get; set; }
public int Threshold { get; set; }
internal void Set(ref StatThresholdsInternal other)
{
Name = other.Name;
Threshold = other.Threshold;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct StatThresholdsInternal : IGettable<StatThresholds>, ISettable<StatThresholds>, IDisposable
internal struct StatThresholdsInternal : IGettable<StatThresholds>
{
private int m_ApiVersion;
@ -12,56 +10,11 @@ internal struct StatThresholdsInternal : IGettable<StatThresholds>, ISettable<St
private int m_Threshold;
public Utf8String Name
public void Get(out StatThresholds other)
{
get
{
Helper.Get(m_Name, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_Name);
}
}
public int Threshold
{
get
{
return m_Threshold;
}
set
{
m_Threshold = value;
}
}
public void Set(ref StatThresholds other)
{
m_ApiVersion = 1;
Name = other.Name;
Threshold = other.Threshold;
}
public void Set(ref StatThresholds? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
Name = other.Value.Name;
Threshold = other.Value.Threshold;
}
}
public void Dispose()
{
Helper.Dispose(ref m_Name);
}
public void Get(out StatThresholds output)
{
output = default(StatThresholds);
output.Set(ref this);
other = default(StatThresholds);
Helper.Get(m_Name, out Utf8String to);
other.Name = to;
other.Threshold = m_Threshold;
}
}

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct UnlockAchievementsOptionsInternal : ISettable<UnlockAchievementsOptions>, IDisposable
{
private int m_ApiVersion;
@ -14,37 +12,12 @@ internal struct UnlockAchievementsOptionsInternal : ISettable<UnlockAchievements
private uint m_AchievementsCount;
public ProductUserId UserId
{
set
{
Helper.Set(value, ref m_UserId);
}
}
public Utf8String[] AchievementIds
{
set
{
Helper.Set(value, ref m_AchievementIds, isArrayItemAllocated: true, out m_AchievementsCount);
}
}
public void Set(ref UnlockAchievementsOptions other)
{
Dispose();
m_ApiVersion = 1;
UserId = other.UserId;
AchievementIds = other.AchievementIds;
}
public void Set(ref UnlockAchievementsOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
UserId = other.Value.UserId;
AchievementIds = other.Value.AchievementIds;
}
Helper.Set((Handle)other.UserId, ref m_UserId);
Helper.Set(other.AchievementIds, ref m_AchievementIds, out m_AchievementsCount, isArrayItemAllocated: true);
}
public void Dispose()

View file

@ -7,10 +7,4 @@ public struct UnlockedAchievement
public Utf8String AchievementId { get; set; }
public DateTimeOffset? UnlockTime { get; set; }
internal void Set(ref UnlockedAchievementInternal other)
{
AchievementId = other.AchievementId;
UnlockTime = other.UnlockTime;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.Achievements;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct UnlockedAchievementInternal : IGettable<UnlockedAchievement>, ISettable<UnlockedAchievement>, IDisposable
internal struct UnlockedAchievementInternal : IGettable<UnlockedAchievement>
{
private int m_ApiVersion;
@ -12,57 +10,12 @@ internal struct UnlockedAchievementInternal : IGettable<UnlockedAchievement>, IS
private long m_UnlockTime;
public Utf8String AchievementId
public void Get(out UnlockedAchievement other)
{
get
{
Helper.Get(m_AchievementId, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_AchievementId);
}
}
public DateTimeOffset? UnlockTime
{
get
{
Helper.Get(m_UnlockTime, out var to);
return to;
}
set
{
Helper.Set(value, ref m_UnlockTime);
}
}
public void Set(ref UnlockedAchievement other)
{
m_ApiVersion = 1;
AchievementId = other.AchievementId;
UnlockTime = other.UnlockTime;
}
public void Set(ref UnlockedAchievement? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
AchievementId = other.Value.AchievementId;
UnlockTime = other.Value.UnlockTime;
}
}
public void Dispose()
{
Helper.Dispose(ref m_AchievementId);
}
public void Get(out UnlockedAchievement output)
{
output = default(UnlockedAchievement);
output.Set(ref this);
other = default(UnlockedAchievement);
Helper.Get(m_AchievementId, out Utf8String to);
other.AchievementId = to;
Helper.Get(m_UnlockTime, out DateTimeOffset? to2);
other.UnlockTime = to2;
}
}

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct AddExternalIntegrityCatalogOptionsInternal : ISettable<AddExternalIntegrityCatalogOptions>, IDisposable
{
private int m_ApiVersion;
private IntPtr m_PathToBinFile;
public Utf8String PathToBinFile
{
set
{
Helper.Set(value, ref m_PathToBinFile);
}
}
public void Set(ref AddExternalIntegrityCatalogOptions other)
{
Dispose();
m_ApiVersion = 1;
PathToBinFile = other.PathToBinFile;
}
public void Set(ref AddExternalIntegrityCatalogOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
PathToBinFile = other.Value.PathToBinFile;
}
Helper.Set(other.PathToBinFile, ref m_PathToBinFile);
}
public void Dispose()

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct AddNotifyClientIntegrityViolatedOptionsInternal : ISettable<AddNotifyClientIntegrityViolatedOptions>, IDisposable
{
private int m_ApiVersion;
public void Set(ref AddNotifyClientIntegrityViolatedOptions other)
{
Dispose();
m_ApiVersion = 1;
}
public void Set(ref AddNotifyClientIntegrityViolatedOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
}
}
public void Dispose()
{
}

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct AddNotifyMessageToPeerOptionsInternal : ISettable<AddNotifyMessageToPeerOptions>, IDisposable
{
private int m_ApiVersion;
public void Set(ref AddNotifyMessageToPeerOptions other)
{
Dispose();
m_ApiVersion = 1;
}
public void Set(ref AddNotifyMessageToPeerOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
}
}
public void Dispose()
{
}

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct AddNotifyMessageToServerOptionsInternal : ISettable<AddNotifyMessageToServerOptions>, IDisposable
{
private int m_ApiVersion;
public void Set(ref AddNotifyMessageToServerOptions other)
{
Dispose();
m_ApiVersion = 1;
}
public void Set(ref AddNotifyMessageToServerOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
}
}
public void Dispose()
{
}

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct AddNotifyPeerActionRequiredOptionsInternal : ISettable<AddNotifyPeerActionRequiredOptions>, IDisposable
{
private int m_ApiVersion;
public void Set(ref AddNotifyPeerActionRequiredOptions other)
{
Dispose();
m_ApiVersion = 1;
}
public void Set(ref AddNotifyPeerActionRequiredOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
}
}
public void Dispose()
{
}

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct AddNotifyPeerAuthStatusChangedOptionsInternal : ISettable<AddNotifyPeerAuthStatusChangedOptions>, IDisposable
{
private int m_ApiVersion;
public void Set(ref AddNotifyPeerAuthStatusChangedOptions other)
{
Dispose();
m_ApiVersion = 1;
}
public void Set(ref AddNotifyPeerAuthStatusChangedOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
}
}
public void Dispose()
{
}

View file

@ -1,5 +1,4 @@
using System;
using Epic.OnlineServices.AntiCheatCommon;
namespace Epic.OnlineServices.AntiCheatClient;
@ -7,47 +6,49 @@ public sealed class AntiCheatClientInterface : Handle
{
private static byte[] PollStatusStaticBuffer = new byte[256];
public const int AddexternalintegritycatalogApiLatest = 1;
public const int ADDEXTERNALINTEGRITYCATALOG_API_LATEST = 1;
public const int AddnotifyclientintegrityviolatedApiLatest = 1;
public const int ADDNOTIFYCLIENTINTEGRITYVIOLATED_API_LATEST = 1;
public const int AddnotifymessagetopeerApiLatest = 1;
public const int ADDNOTIFYMESSAGETOPEER_API_LATEST = 1;
public const int AddnotifymessagetoserverApiLatest = 1;
public const int ADDNOTIFYMESSAGETOSERVER_API_LATEST = 1;
public const int AddnotifypeeractionrequiredApiLatest = 1;
public const int ADDNOTIFYPEERACTIONREQUIRED_API_LATEST = 1;
public const int AddnotifypeerauthstatuschangedApiLatest = 1;
public const int ADDNOTIFYPEERAUTHSTATUSCHANGED_API_LATEST = 1;
public const int BeginsessionApiLatest = 3;
public const int BEGINSESSION_API_LATEST = 3;
public const int EndsessionApiLatest = 1;
public const int ENDSESSION_API_LATEST = 1;
public const int GetprotectmessageoutputlengthApiLatest = 1;
public const int GETPROTECTMESSAGEOUTPUTLENGTH_API_LATEST = 1;
public const int OnmessagetopeercallbackMaxMessageSize = 512;
public const int ONMESSAGETOPEERCALLBACK_MAX_MESSAGE_SIZE = 512;
public const int OnmessagetoservercallbackMaxMessageSize = 512;
public const int ONMESSAGETOSERVERCALLBACK_MAX_MESSAGE_SIZE = 512;
public IntPtr PeerSelf = (IntPtr)(-1);
public static readonly IntPtr PEER_SELF = (IntPtr)(-1);
public const int PollstatusApiLatest = 1;
public const int POLLSTATUS_API_LATEST = 1;
public const int ProtectmessageApiLatest = 1;
public const int PROTECTMESSAGE_API_LATEST = 1;
public const int ReceivemessagefrompeerApiLatest = 1;
public const int RECEIVEMESSAGEFROMPEER_API_LATEST = 1;
public const int ReceivemessagefromserverApiLatest = 1;
public const int RECEIVEMESSAGEFROMSERVER_API_LATEST = 1;
public const int RegisterpeerApiLatest = 3;
public const int REGISTERPEER_API_LATEST = 3;
public const int RegisterpeerMaxAuthenticationtimeout = 120;
public const int REGISTERPEER_MAX_AUTHENTICATIONTIMEOUT = 120;
public const int RegisterpeerMinAuthenticationtimeout = 40;
public const int REGISTERPEER_MIN_AUTHENTICATIONTIMEOUT = 40;
public const int UnprotectmessageApiLatest = 1;
public const int RESERVED01_API_LATEST = 1;
public const int UnregisterpeerApiLatest = 1;
public const int UNPROTECTMESSAGE_API_LATEST = 1;
public const int UNREGISTERPEER_API_LATEST = 1;
public AntiCheatClientInterface()
{
@ -69,66 +70,81 @@ public sealed class AntiCheatClientInterface : Handle
public ulong AddNotifyClientIntegrityViolated(ref AddNotifyClientIntegrityViolatedOptions options, object clientData, OnClientIntegrityViolatedCallback notificationFn)
{
if (notificationFn == null)
{
throw new ArgumentNullException("notificationFn");
}
AddNotifyClientIntegrityViolatedOptionsInternal options2 = default(AddNotifyClientIntegrityViolatedOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnClientIntegrityViolatedCallbackInternal onClientIntegrityViolatedCallbackInternal = OnClientIntegrityViolatedCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, notificationFn, onClientIntegrityViolatedCallbackInternal);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyClientIntegrityViolated(base.InnerHandle, ref options2, clientDataAddress, onClientIntegrityViolatedCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, notificationFn);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyClientIntegrityViolated(base.InnerHandle, ref options2, clientDataPointer, OnClientIntegrityViolatedCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
Helper.AssignNotificationIdToCallback(clientDataAddress, num);
Helper.AssignNotificationIdToCallback(clientDataPointer, num);
return num;
}
public ulong AddNotifyMessageToPeer(ref AddNotifyMessageToPeerOptions options, object clientData, OnMessageToPeerCallback notificationFn)
{
if (notificationFn == null)
{
throw new ArgumentNullException("notificationFn");
}
AddNotifyMessageToPeerOptionsInternal options2 = default(AddNotifyMessageToPeerOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnMessageToPeerCallbackInternal onMessageToPeerCallbackInternal = OnMessageToPeerCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, notificationFn, onMessageToPeerCallbackInternal);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyMessageToPeer(base.InnerHandle, ref options2, clientDataAddress, onMessageToPeerCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, notificationFn);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyMessageToPeer(base.InnerHandle, ref options2, clientDataPointer, OnMessageToPeerCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
Helper.AssignNotificationIdToCallback(clientDataAddress, num);
Helper.AssignNotificationIdToCallback(clientDataPointer, num);
return num;
}
public ulong AddNotifyMessageToServer(ref AddNotifyMessageToServerOptions options, object clientData, OnMessageToServerCallback notificationFn)
{
if (notificationFn == null)
{
throw new ArgumentNullException("notificationFn");
}
AddNotifyMessageToServerOptionsInternal options2 = default(AddNotifyMessageToServerOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnMessageToServerCallbackInternal onMessageToServerCallbackInternal = OnMessageToServerCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, notificationFn, onMessageToServerCallbackInternal);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyMessageToServer(base.InnerHandle, ref options2, clientDataAddress, onMessageToServerCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, notificationFn);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyMessageToServer(base.InnerHandle, ref options2, clientDataPointer, OnMessageToServerCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
Helper.AssignNotificationIdToCallback(clientDataAddress, num);
Helper.AssignNotificationIdToCallback(clientDataPointer, num);
return num;
}
public ulong AddNotifyPeerActionRequired(ref AddNotifyPeerActionRequiredOptions options, object clientData, OnPeerActionRequiredCallback notificationFn)
{
if (notificationFn == null)
{
throw new ArgumentNullException("notificationFn");
}
AddNotifyPeerActionRequiredOptionsInternal options2 = default(AddNotifyPeerActionRequiredOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnPeerActionRequiredCallbackInternal onPeerActionRequiredCallbackInternal = OnPeerActionRequiredCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, notificationFn, onPeerActionRequiredCallbackInternal);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyPeerActionRequired(base.InnerHandle, ref options2, clientDataAddress, onPeerActionRequiredCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, notificationFn);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyPeerActionRequired(base.InnerHandle, ref options2, clientDataPointer, OnPeerActionRequiredCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
Helper.AssignNotificationIdToCallback(clientDataAddress, num);
Helper.AssignNotificationIdToCallback(clientDataPointer, num);
return num;
}
public ulong AddNotifyPeerAuthStatusChanged(ref AddNotifyPeerAuthStatusChangedOptions options, object clientData, OnPeerAuthStatusChangedCallback notificationFn)
{
if (notificationFn == null)
{
throw new ArgumentNullException("notificationFn");
}
AddNotifyPeerAuthStatusChangedOptionsInternal options2 = default(AddNotifyPeerAuthStatusChangedOptionsInternal);
options2.Set(ref options);
IntPtr clientDataAddress = IntPtr.Zero;
OnPeerAuthStatusChangedCallbackInternal onPeerAuthStatusChangedCallbackInternal = OnPeerAuthStatusChangedCallbackInternalImplementation;
Helper.AddCallback(out clientDataAddress, clientData, notificationFn, onPeerAuthStatusChangedCallbackInternal);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyPeerAuthStatusChanged(base.InnerHandle, ref options2, clientDataAddress, onPeerAuthStatusChangedCallbackInternal);
IntPtr clientDataPointer = IntPtr.Zero;
Helper.AddCallback(out clientDataPointer, clientData, notificationFn);
ulong num = Bindings.EOS_AntiCheatClient_AddNotifyPeerAuthStatusChanged(base.InnerHandle, ref options2, clientDataPointer, OnPeerAuthStatusChangedCallbackInternalImplementation.Delegate);
Helper.Dispose(ref options2);
Helper.AssignNotificationIdToCallback(clientDataAddress, num);
Helper.AssignNotificationIdToCallback(clientDataPointer, num);
return num;
}
@ -154,23 +170,21 @@ public sealed class AntiCheatClientInterface : Handle
{
GetProtectMessageOutputLengthOptionsInternal options2 = default(GetProtectMessageOutputLengthOptionsInternal);
options2.Set(ref options);
outBufferSizeBytes = Helper.GetDefault<uint>();
Result result = Bindings.EOS_AntiCheatClient_GetProtectMessageOutputLength(base.InnerHandle, ref options2, ref outBufferSizeBytes);
Result result = Bindings.EOS_AntiCheatClient_GetProtectMessageOutputLength(base.InnerHandle, ref options2, out outBufferSizeBytes);
Helper.Dispose(ref options2);
return result;
}
public unsafe Result PollStatus(ref PollStatusOptions options, out AntiCheatClientViolationType outViolationType, out Utf8String outMessage)
{
outViolationType = AntiCheatClientViolationType.Invalid;
outMessage = Utf8String.EmptyString;
PollStatusOptionsInternal disposable = default(PollStatusOptionsInternal);
disposable.Set(ref options);
outViolationType = Helper.GetDefault<AntiCheatClientViolationType>();
_ = options.OutMessageLength;
Result num;
fixed (byte* pollStatusStaticBuffer = PollStatusStaticBuffer)
{
num = Bindings.EOS_AntiCheatClient_PollStatus(outMessage: new IntPtr(pollStatusStaticBuffer), handle: base.InnerHandle, options: ref disposable, outViolationType: ref outViolationType);
num = Bindings.EOS_AntiCheatClient_PollStatus(outMessage: new IntPtr(pollStatusStaticBuffer), handle: base.InnerHandle, options: ref disposable, outViolationType: out outViolationType);
if (num == Result.Success)
{
outMessage = new Utf8String(PollStatusStaticBuffer);
@ -182,6 +196,7 @@ public sealed class AntiCheatClientInterface : Handle
public unsafe Result ProtectMessage(ref ProtectMessageOptions options, ArraySegment<byte> outBuffer, out uint outBytesWritten)
{
outBytesWritten = 0u;
Result result;
fixed (byte* array = options.Data.Array)
{
@ -193,11 +208,10 @@ public sealed class AntiCheatClientInterface : Handle
m_DataLengthBytes = (uint)options.Data.Count,
m_OutBufferSizeBytes = options.OutBufferSizeBytes
};
outBytesWritten = 0u;
fixed (byte* array2 = outBuffer.Array)
{
IntPtr outBuffer2 = IntPtr.Add((IntPtr)array2, outBuffer.Offset);
result = Bindings.EOS_AntiCheatClient_ProtectMessage(base.InnerHandle, ref options2, outBuffer2, ref outBytesWritten);
result = Bindings.EOS_AntiCheatClient_ProtectMessage(base.InnerHandle, ref options2, outBuffer2, out outBytesWritten);
}
}
return result;
@ -260,8 +274,18 @@ public sealed class AntiCheatClientInterface : Handle
Helper.RemoveCallbackByNotificationId(notificationId);
}
public Result Reserved01(ref Reserved01Options options, out int outValue)
{
Reserved01OptionsInternal options2 = default(Reserved01OptionsInternal);
options2.Set(ref options);
Result result = Bindings.EOS_AntiCheatClient_Reserved01(base.InnerHandle, ref options2, out outValue);
Helper.Dispose(ref options2);
return result;
}
public unsafe Result UnprotectMessage(ref UnprotectMessageOptions options, ArraySegment<byte> outBuffer, out uint outBytesWritten)
{
outBytesWritten = 0u;
Result result;
fixed (byte* array = options.Data.Array)
{
@ -273,11 +297,10 @@ public sealed class AntiCheatClientInterface : Handle
m_DataLengthBytes = (uint)options.Data.Count,
m_OutBufferSizeBytes = options.OutBufferSizeBytes
};
outBytesWritten = 0u;
fixed (byte* array2 = outBuffer.Array)
{
IntPtr outBuffer2 = IntPtr.Add((IntPtr)array2, outBuffer.Offset);
result = Bindings.EOS_AntiCheatClient_UnprotectMessage(base.InnerHandle, ref options2, outBuffer2, ref outBytesWritten);
result = Bindings.EOS_AntiCheatClient_UnprotectMessage(base.InnerHandle, ref options2, outBuffer2, out outBytesWritten);
}
}
return result;
@ -291,49 +314,4 @@ public sealed class AntiCheatClientInterface : Handle
Helper.Dispose(ref options2);
return result;
}
[MonoPInvokeCallback(typeof(OnClientIntegrityViolatedCallbackInternal))]
internal static void OnClientIntegrityViolatedCallbackInternalImplementation(ref OnClientIntegrityViolatedCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnClientIntegrityViolatedCallbackInfoInternal, OnClientIntegrityViolatedCallback, OnClientIntegrityViolatedCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
[MonoPInvokeCallback(typeof(OnMessageToPeerCallbackInternal))]
internal static void OnMessageToPeerCallbackInternalImplementation(ref OnMessageToClientCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnMessageToClientCallbackInfoInternal, OnMessageToPeerCallback, OnMessageToClientCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
[MonoPInvokeCallback(typeof(OnMessageToServerCallbackInternal))]
internal static void OnMessageToServerCallbackInternalImplementation(ref OnMessageToServerCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnMessageToServerCallbackInfoInternal, OnMessageToServerCallback, OnMessageToServerCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
[MonoPInvokeCallback(typeof(OnPeerActionRequiredCallbackInternal))]
internal static void OnPeerActionRequiredCallbackInternalImplementation(ref OnClientActionRequiredCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnClientActionRequiredCallbackInfoInternal, OnPeerActionRequiredCallback, OnClientActionRequiredCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
[MonoPInvokeCallback(typeof(OnPeerAuthStatusChangedCallbackInternal))]
internal static void OnPeerAuthStatusChangedCallbackInternalImplementation(ref OnClientAuthStatusChangedCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnClientAuthStatusChangedCallbackInfoInternal, OnPeerAuthStatusChangedCallback, OnClientAuthStatusChangedCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct BeginSessionOptionsInternal : ISettable<BeginSessionOptions>, IDisposable
{
private int m_ApiVersion;
@ -12,37 +10,12 @@ internal struct BeginSessionOptionsInternal : ISettable<BeginSessionOptions>, ID
private AntiCheatClientMode m_Mode;
public ProductUserId LocalUserId
{
set
{
Helper.Set(value, ref m_LocalUserId);
}
}
public AntiCheatClientMode Mode
{
set
{
m_Mode = value;
}
}
public void Set(ref BeginSessionOptions other)
{
Dispose();
m_ApiVersion = 3;
LocalUserId = other.LocalUserId;
Mode = other.Mode;
}
public void Set(ref BeginSessionOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 3;
LocalUserId = other.Value.LocalUserId;
Mode = other.Value.Mode;
}
Helper.Set((Handle)other.LocalUserId, ref m_LocalUserId);
m_Mode = other.Mode;
}
public void Dispose()

View file

@ -1,26 +1,17 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct EndSessionOptionsInternal : ISettable<EndSessionOptions>, IDisposable
{
private int m_ApiVersion;
public void Set(ref EndSessionOptions other)
{
Dispose();
m_ApiVersion = 1;
}
public void Set(ref EndSessionOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
}
}
public void Dispose()
{
}

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct GetProtectMessageOutputLengthOptionsInternal : ISettable<GetProtectMessageOutputLengthOptions>, IDisposable
{
private int m_ApiVersion;
private uint m_DataLengthBytes;
public uint DataLengthBytes
{
set
{
m_DataLengthBytes = value;
}
}
public void Set(ref GetProtectMessageOutputLengthOptions other)
{
Dispose();
m_ApiVersion = 1;
DataLengthBytes = other.DataLengthBytes;
}
public void Set(ref GetProtectMessageOutputLengthOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
DataLengthBytes = other.Value.DataLengthBytes;
}
m_DataLengthBytes = other.DataLengthBytes;
}
public void Dispose()

View file

@ -8,15 +8,13 @@ public struct OnClientIntegrityViolatedCallbackInfo : ICallbackInfo
public Utf8String ViolationMessage { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return null;
}
internal void Set(ref OnClientIntegrityViolatedCallbackInfoInternal other)
{
ClientData = other.ClientData;
ViolationType = other.ViolationType;
ViolationMessage = other.ViolationMessage;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnClientIntegrityViolatedCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnClientIntegrityViolatedCallbackInfo>, ISettable<OnClientIntegrityViolatedCallbackInfo>, IDisposable
internal struct OnClientIntegrityViolatedCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnClientIntegrityViolatedCallbackInfo>
{
private IntPtr m_ClientData;
@ -12,72 +10,15 @@ internal struct OnClientIntegrityViolatedCallbackInfoInternal : ICallbackInfoInt
private IntPtr m_ViolationMessage;
public object ClientData
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataPointer => m_ClientData;
public IntPtr ClientDataAddress => m_ClientData;
public AntiCheatClientViolationType ViolationType
public void Get(out OnClientIntegrityViolatedCallbackInfo other)
{
get
{
return m_ViolationType;
}
set
{
m_ViolationType = value;
}
}
public Utf8String ViolationMessage
{
get
{
Helper.Get(m_ViolationMessage, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_ViolationMessage);
}
}
public void Set(ref OnClientIntegrityViolatedCallbackInfo other)
{
ClientData = other.ClientData;
ViolationType = other.ViolationType;
ViolationMessage = other.ViolationMessage;
}
public void Set(ref OnClientIntegrityViolatedCallbackInfo? other)
{
if (other.HasValue)
{
ClientData = other.Value.ClientData;
ViolationType = other.Value.ViolationType;
ViolationMessage = other.Value.ViolationMessage;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_ViolationMessage);
}
public void Get(out OnClientIntegrityViolatedCallbackInfo output)
{
output = default(OnClientIntegrityViolatedCallbackInfo);
output.Set(ref this);
other = default(OnClientIntegrityViolatedCallbackInfo);
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
other.ViolationType = m_ViolationType;
Helper.Get(m_ViolationMessage, out Utf8String to2);
other.ViolationMessage = to2;
}
}

View file

@ -0,0 +1,27 @@
namespace Epic.OnlineServices.AntiCheatClient;
internal static class OnClientIntegrityViolatedCallbackInternalImplementation
{
private static OnClientIntegrityViolatedCallbackInternal s_Delegate;
public static OnClientIntegrityViolatedCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnClientIntegrityViolatedCallbackInternal))]
public static void EntryPoint(ref OnClientIntegrityViolatedCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnClientIntegrityViolatedCallbackInfoInternal, OnClientIntegrityViolatedCallback, OnClientIntegrityViolatedCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -0,0 +1,29 @@
using Epic.OnlineServices.AntiCheatCommon;
namespace Epic.OnlineServices.AntiCheatClient;
internal static class OnMessageToPeerCallbackInternalImplementation
{
private static OnMessageToPeerCallbackInternal s_Delegate;
public static OnMessageToPeerCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnMessageToPeerCallbackInternal))]
public static void EntryPoint(ref OnMessageToClientCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnMessageToClientCallbackInfoInternal, OnMessageToPeerCallback, OnMessageToClientCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -8,14 +8,13 @@ public struct OnMessageToServerCallbackInfo : ICallbackInfo
public ArraySegment<byte> MessageData { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return null;
}
internal void Set(ref OnMessageToServerCallbackInfoInternal other)
{
ClientData = other.ClientData;
MessageData = other.MessageData;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnMessageToServerCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnMessageToServerCallbackInfo>, ISettable<OnMessageToServerCallbackInfo>, IDisposable
internal struct OnMessageToServerCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnMessageToServerCallbackInfo>
{
private IntPtr m_ClientData;
@ -12,58 +10,14 @@ internal struct OnMessageToServerCallbackInfoInternal : ICallbackInfoInternal, I
private uint m_MessageDataSizeBytes;
public object ClientData
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataPointer => m_ClientData;
public IntPtr ClientDataAddress => m_ClientData;
public ArraySegment<byte> MessageData
public void Get(out OnMessageToServerCallbackInfo other)
{
get
{
Helper.Get(m_MessageData, out var to, m_MessageDataSizeBytes);
return to;
}
set
{
Helper.Set(value, ref m_MessageData, out m_MessageDataSizeBytes);
}
}
public void Set(ref OnMessageToServerCallbackInfo other)
{
ClientData = other.ClientData;
MessageData = other.MessageData;
}
public void Set(ref OnMessageToServerCallbackInfo? other)
{
if (other.HasValue)
{
ClientData = other.Value.ClientData;
MessageData = other.Value.MessageData;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_MessageData);
}
public void Get(out OnMessageToServerCallbackInfo output)
{
output = default(OnMessageToServerCallbackInfo);
output.Set(ref this);
other = default(OnMessageToServerCallbackInfo);
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
Helper.Get(m_MessageData, out ArraySegment<byte> to2, m_MessageDataSizeBytes);
other.MessageData = to2;
}
}

View file

@ -0,0 +1,27 @@
namespace Epic.OnlineServices.AntiCheatClient;
internal static class OnMessageToServerCallbackInternalImplementation
{
private static OnMessageToServerCallbackInternal s_Delegate;
public static OnMessageToServerCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnMessageToServerCallbackInternal))]
public static void EntryPoint(ref OnMessageToServerCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnMessageToServerCallbackInfoInternal, OnMessageToServerCallback, OnMessageToServerCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -0,0 +1,29 @@
using Epic.OnlineServices.AntiCheatCommon;
namespace Epic.OnlineServices.AntiCheatClient;
internal static class OnPeerActionRequiredCallbackInternalImplementation
{
private static OnPeerActionRequiredCallbackInternal s_Delegate;
public static OnPeerActionRequiredCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnPeerActionRequiredCallbackInternal))]
public static void EntryPoint(ref OnClientActionRequiredCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnClientActionRequiredCallbackInfoInternal, OnPeerActionRequiredCallback, OnClientActionRequiredCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -0,0 +1,29 @@
using Epic.OnlineServices.AntiCheatCommon;
namespace Epic.OnlineServices.AntiCheatClient;
internal static class OnPeerAuthStatusChangedCallbackInternalImplementation
{
private static OnPeerAuthStatusChangedCallbackInternal s_Delegate;
public static OnPeerAuthStatusChangedCallbackInternal Delegate
{
get
{
if (s_Delegate == null)
{
s_Delegate = EntryPoint;
}
return s_Delegate;
}
}
[MonoPInvokeCallback(typeof(OnPeerAuthStatusChangedCallbackInternal))]
public static void EntryPoint(ref OnClientAuthStatusChangedCallbackInfoInternal data)
{
if (Helper.TryGetCallback<OnClientAuthStatusChangedCallbackInfoInternal, OnPeerAuthStatusChangedCallback, OnClientAuthStatusChangedCallbackInfo>(ref data, out var callback, out var callbackInfo))
{
callback(ref callbackInfo);
}
}
}

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct PollStatusOptionsInternal : ISettable<PollStatusOptions>, IDisposable
{
private int m_ApiVersion;
private uint m_OutMessageLength;
public uint OutMessageLength
{
set
{
m_OutMessageLength = value;
}
}
public void Set(ref PollStatusOptions other)
{
Dispose();
m_ApiVersion = 1;
OutMessageLength = other.OutMessageLength;
}
public void Set(ref PollStatusOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
OutMessageLength = other.Value.OutMessageLength;
}
m_OutMessageLength = other.OutMessageLength;
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct ProtectMessageOptionsInternal
{
public int m_ApiVersion;

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct ReceiveMessageFromPeerOptionsInternal : ISettable<ReceiveMessageFromPeerOptions>, IDisposable
{
private int m_ApiVersion;
@ -14,37 +12,12 @@ internal struct ReceiveMessageFromPeerOptionsInternal : ISettable<ReceiveMessage
private IntPtr m_Data;
public IntPtr PeerHandle
{
set
{
m_PeerHandle = value;
}
}
public ArraySegment<byte> Data
{
set
{
Helper.Set(value, ref m_Data, out m_DataLengthBytes);
}
}
public void Set(ref ReceiveMessageFromPeerOptions other)
{
Dispose();
m_ApiVersion = 1;
PeerHandle = other.PeerHandle;
Data = other.Data;
}
public void Set(ref ReceiveMessageFromPeerOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
PeerHandle = other.Value.PeerHandle;
Data = other.Value.Data;
}
m_PeerHandle = other.PeerHandle;
Helper.Set(other.Data, ref m_Data, out m_DataLengthBytes);
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct ReceiveMessageFromServerOptionsInternal : ISettable<ReceiveMessageFromServerOptions>, IDisposable
{
private int m_ApiVersion;
@ -12,27 +10,11 @@ internal struct ReceiveMessageFromServerOptionsInternal : ISettable<ReceiveMessa
private IntPtr m_Data;
public ArraySegment<byte> Data
{
set
{
Helper.Set(value, ref m_Data, out m_DataLengthBytes);
}
}
public void Set(ref ReceiveMessageFromServerOptions other)
{
Dispose();
m_ApiVersion = 1;
Data = other.Data;
}
public void Set(ref ReceiveMessageFromServerOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
Data = other.Value.Data;
}
Helper.Set(other.Data, ref m_Data, out m_DataLengthBytes);
}
public void Dispose()

View file

@ -13,7 +13,7 @@ public struct RegisterPeerOptions
public uint AuthenticationTimeout { get; set; }
internal Utf8String AccountId_DEPRECATED { get; set; }
public Utf8String AccountId_DEPRECATED { get; set; }
public Utf8String IpAddress { get; set; }

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
using Epic.OnlineServices.AntiCheatCommon;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct RegisterPeerOptionsInternal : ISettable<RegisterPeerOptions>, IDisposable
{
private int m_ApiVersion;
@ -23,87 +21,17 @@ internal struct RegisterPeerOptionsInternal : ISettable<RegisterPeerOptions>, ID
private IntPtr m_PeerProductUserId;
public IntPtr PeerHandle
{
set
{
m_PeerHandle = value;
}
}
public AntiCheatCommonClientType ClientType
{
set
{
m_ClientType = value;
}
}
public AntiCheatCommonClientPlatform ClientPlatform
{
set
{
m_ClientPlatform = value;
}
}
public uint AuthenticationTimeout
{
set
{
m_AuthenticationTimeout = value;
}
}
public Utf8String AccountId_DEPRECATED
{
set
{
Helper.Set(value, ref m_AccountId_DEPRECATED);
}
}
public Utf8String IpAddress
{
set
{
Helper.Set(value, ref m_IpAddress);
}
}
public ProductUserId PeerProductUserId
{
set
{
Helper.Set(value, ref m_PeerProductUserId);
}
}
public void Set(ref RegisterPeerOptions other)
{
Dispose();
m_ApiVersion = 3;
PeerHandle = other.PeerHandle;
ClientType = other.ClientType;
ClientPlatform = other.ClientPlatform;
AuthenticationTimeout = other.AuthenticationTimeout;
AccountId_DEPRECATED = other.AccountId_DEPRECATED;
IpAddress = other.IpAddress;
PeerProductUserId = other.PeerProductUserId;
}
public void Set(ref RegisterPeerOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 3;
PeerHandle = other.Value.PeerHandle;
ClientType = other.Value.ClientType;
ClientPlatform = other.Value.ClientPlatform;
AuthenticationTimeout = other.Value.AuthenticationTimeout;
AccountId_DEPRECATED = other.Value.AccountId_DEPRECATED;
IpAddress = other.Value.IpAddress;
PeerProductUserId = other.Value.PeerProductUserId;
}
m_PeerHandle = other.PeerHandle;
m_ClientType = other.ClientType;
m_ClientPlatform = other.ClientPlatform;
m_AuthenticationTimeout = other.AuthenticationTimeout;
Helper.Set(other.AccountId_DEPRECATED, ref m_AccountId_DEPRECATED);
Helper.Set(other.IpAddress, ref m_IpAddress);
Helper.Set((Handle)other.PeerProductUserId, ref m_PeerProductUserId);
}
public void Dispose()

View file

@ -0,0 +1,8 @@
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Size = 1)]
public struct Reserved01Options
{
}

View file

@ -0,0 +1,18 @@
using System;
namespace Epic.OnlineServices.AntiCheatClient;
internal struct Reserved01OptionsInternal : ISettable<Reserved01Options>, IDisposable
{
private int m_ApiVersion;
public void Set(ref Reserved01Options other)
{
Dispose();
m_ApiVersion = 1;
}
public void Dispose()
{
}
}

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct UnprotectMessageOptionsInternal
{
public int m_ApiVersion;

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatClient;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct UnregisterPeerOptionsInternal : ISettable<UnregisterPeerOptions>, IDisposable
{
private int m_ApiVersion;
private IntPtr m_PeerHandle;
public IntPtr PeerHandle
{
set
{
m_PeerHandle = value;
}
}
public void Set(ref UnregisterPeerOptions other)
{
Dispose();
m_ApiVersion = 1;
PeerHandle = other.PeerHandle;
}
public void Set(ref UnregisterPeerOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
PeerHandle = other.Value.PeerHandle;
}
m_PeerHandle = other.PeerHandle;
}
public void Dispose()

View file

@ -2,37 +2,37 @@ namespace Epic.OnlineServices.AntiCheatCommon;
public sealed class AntiCheatCommonInterface
{
public const int LogeventApiLatest = 1;
public const int LOGEVENT_API_LATEST = 1;
public const int LogeventStringMaxLength = 39;
public const int LOGEVENT_STRING_MAX_LENGTH = 39;
public const int LoggameroundendApiLatest = 1;
public const int LOGGAMEROUNDEND_API_LATEST = 1;
public const int LoggameroundstartApiLatest = 2;
public const int LOGGAMEROUNDSTART_API_LATEST = 2;
public const int LogplayerdespawnApiLatest = 1;
public const int LOGPLAYERDESPAWN_API_LATEST = 1;
public const int LogplayerreviveApiLatest = 1;
public const int LOGPLAYERREVIVE_API_LATEST = 1;
public const int LogplayerspawnApiLatest = 1;
public const int LOGPLAYERSPAWN_API_LATEST = 1;
public const int LogplayertakedamageApiLatest = 4;
public const int LOGPLAYERTAKEDAMAGE_API_LATEST = 4;
public const int LogplayertickApiLatest = 3;
public const int LOGPLAYERTICK_API_LATEST = 3;
public const int LogplayeruseabilityApiLatest = 1;
public const int LOGPLAYERUSEABILITY_API_LATEST = 1;
public const int LogplayeruseweaponApiLatest = 2;
public const int LOGPLAYERUSEWEAPON_API_LATEST = 2;
public const int LogplayeruseweaponWeaponnameMaxLength = 16;
public const int LOGPLAYERUSEWEAPON_WEAPONNAME_MAX_LENGTH = 32;
public const int RegistereventApiLatest = 1;
public const int REGISTEREVENT_API_LATEST = 1;
public const int RegistereventCustomeventbase = 268435456;
public const int REGISTEREVENT_CUSTOMEVENTBASE = 268435456;
public const int RegistereventMaxParamdefscount = 12;
public const int REGISTEREVENT_MAX_PARAMDEFSCOUNT = 12;
public const int SetclientdetailsApiLatest = 1;
public const int SETCLIENTDETAILS_API_LATEST = 1;
public const int SetgamesessionidApiLatest = 1;
public const int SETGAMESESSIONID_API_LATEST = 1;
}

View file

@ -3,8 +3,8 @@ namespace Epic.OnlineServices.AntiCheatCommon;
public enum AntiCheatCommonPlayerTakeDamageResult
{
None,
DownedDEPRECATED,
EliminatedDEPRECATED,
DownedDeprecated,
EliminatedDeprecated,
NormalToDowned,
NormalToEliminated,
DownedToEliminated

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogEventOptionsInternal : ISettable<LogEventOptions>, IDisposable
{
private int m_ApiVersion;
@ -16,47 +14,13 @@ internal struct LogEventOptionsInternal : ISettable<LogEventOptions>, IDisposabl
private IntPtr m_Params;
public IntPtr ClientHandle
{
set
{
m_ClientHandle = value;
}
}
public uint EventId
{
set
{
m_EventId = value;
}
}
public LogEventParamPair[] Params
{
set
{
Helper.Set<LogEventParamPair, LogEventParamPairInternal>(ref value, ref m_Params, out m_ParamsCount);
}
}
public void Set(ref LogEventOptions other)
{
Dispose();
m_ApiVersion = 1;
ClientHandle = other.ClientHandle;
EventId = other.EventId;
Params = other.Params;
}
public void Set(ref LogEventOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
ClientHandle = other.Value.ClientHandle;
EventId = other.Value.EventId;
Params = other.Value.Params;
}
m_ClientHandle = other.ClientHandle;
m_EventId = other.EventId;
Helper.Set<LogEventParamPair, LogEventParamPairInternal>(other.Params, ref m_Params, out m_ParamsCount, isArrayItemAllocated: false);
}
public void Dispose()

View file

@ -3,9 +3,4 @@ namespace Epic.OnlineServices.AntiCheatCommon;
public struct LogEventParamPair
{
public LogEventParamPairParamValue ParamValue { get; set; }
internal void Set(ref LogEventParamPairInternal other)
{
ParamValue = other.ParamValue;
}
}

View file

@ -1,47 +1,22 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogEventParamPairInternal : IGettable<LogEventParamPair>, ISettable<LogEventParamPair>, IDisposable
internal struct LogEventParamPairInternal : ISettable<LogEventParamPair>, IDisposable
{
private LogEventParamPairParamValueInternal m_ParamValue;
private AntiCheatCommonEventParamType m_ParamValueType;
public LogEventParamPairParamValue ParamValue
{
get
{
Helper.Get<LogEventParamPairParamValueInternal, LogEventParamPairParamValue>(ref m_ParamValue, out var to);
return to;
}
set
{
Helper.Set(ref value, ref m_ParamValue);
}
}
private LogEventParamPairParamValueInternal m_ParamValue;
public void Set(ref LogEventParamPair other)
{
ParamValue = other.ParamValue;
}
public void Set(ref LogEventParamPair? other)
{
if (other.HasValue)
{
ParamValue = other.Value.ParamValue;
}
Dispose();
Helper.Set<LogEventParamPairParamValue, LogEventParamPairParamValueInternal>(other.ParamValue, ref m_ParamValue);
m_ParamValueType = other.ParamValue.ParamValueType;
}
public void Dispose()
{
Helper.Dispose(ref m_ParamValue);
}
public void Get(out LogEventParamPair output)
{
output = default(LogEventParamPair);
output.Set(ref this);
}
}

View file

@ -4,8 +4,6 @@ namespace Epic.OnlineServices.AntiCheatCommon;
public struct LogEventParamPairParamValue
{
private AntiCheatCommonEventParamType m_ParamValueType;
private IntPtr? m_ClientHandle;
private Utf8String m_String;
@ -18,34 +16,28 @@ public struct LogEventParamPairParamValue
private long? m_Int64;
private Vec3f m_Vec3f;
private Vec3f? m_Vec3f;
private Quat m_Quat;
private Quat? m_Quat;
private float? m_Float;
public AntiCheatCommonEventParamType ParamValueType
{
get
{
return m_ParamValueType;
}
private set
{
m_ParamValueType = value;
}
}
private AntiCheatCommonEventParamType m_ParamValueType;
public IntPtr? ClientHandle
{
get
{
Helper.Get(m_ClientHandle, out var to, m_ParamValueType, AntiCheatCommonEventParamType.ClientHandle);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.ClientHandle)
{
return m_ClientHandle;
}
return null;
}
set
{
Helper.Set(value, ref m_ClientHandle, AntiCheatCommonEventParamType.ClientHandle, ref m_ParamValueType);
m_ClientHandle = value;
m_ParamValueType = AntiCheatCommonEventParamType.ClientHandle;
}
}
@ -53,12 +45,16 @@ public struct LogEventParamPairParamValue
{
get
{
Helper.Get(m_String, out var to, m_ParamValueType, AntiCheatCommonEventParamType.String);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.String)
{
return m_String;
}
return null;
}
set
{
Helper.Set(value, ref m_String, AntiCheatCommonEventParamType.String, ref m_ParamValueType);
m_String = value;
m_ParamValueType = AntiCheatCommonEventParamType.String;
}
}
@ -66,12 +62,16 @@ public struct LogEventParamPairParamValue
{
get
{
Helper.Get(m_UInt32, out var to, m_ParamValueType, AntiCheatCommonEventParamType.UInt32);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.UInt32)
{
return m_UInt32;
}
return null;
}
set
{
Helper.Set(value, ref m_UInt32, AntiCheatCommonEventParamType.UInt32, ref m_ParamValueType);
m_UInt32 = value;
m_ParamValueType = AntiCheatCommonEventParamType.UInt32;
}
}
@ -79,12 +79,16 @@ public struct LogEventParamPairParamValue
{
get
{
Helper.Get(m_Int32, out var to, m_ParamValueType, AntiCheatCommonEventParamType.Int32);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.Int32)
{
return m_Int32;
}
return null;
}
set
{
Helper.Set(value, ref m_Int32, AntiCheatCommonEventParamType.Int32, ref m_ParamValueType);
m_Int32 = value;
m_ParamValueType = AntiCheatCommonEventParamType.Int32;
}
}
@ -92,12 +96,16 @@ public struct LogEventParamPairParamValue
{
get
{
Helper.Get(m_UInt64, out var to, m_ParamValueType, AntiCheatCommonEventParamType.UInt64);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.UInt64)
{
return m_UInt64;
}
return null;
}
set
{
Helper.Set(value, ref m_UInt64, AntiCheatCommonEventParamType.UInt64, ref m_ParamValueType);
m_UInt64 = value;
m_ParamValueType = AntiCheatCommonEventParamType.UInt64;
}
}
@ -105,38 +113,50 @@ public struct LogEventParamPairParamValue
{
get
{
Helper.Get(m_Int64, out var to, m_ParamValueType, AntiCheatCommonEventParamType.Int64);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.Int64)
{
return m_Int64;
}
return null;
}
set
{
Helper.Set(value, ref m_Int64, AntiCheatCommonEventParamType.Int64, ref m_ParamValueType);
m_Int64 = value;
m_ParamValueType = AntiCheatCommonEventParamType.Int64;
}
}
public Vec3f Vec3f
public Vec3f? Vec3f
{
get
{
Helper.Get(m_Vec3f, out Vec3f to, m_ParamValueType, AntiCheatCommonEventParamType.Vector3f);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.Vector3f)
{
return m_Vec3f;
}
return null;
}
set
{
Helper.Set(value, ref m_Vec3f, AntiCheatCommonEventParamType.Vector3f, ref m_ParamValueType);
m_Vec3f = value;
m_ParamValueType = AntiCheatCommonEventParamType.Vector3f;
}
}
public Quat Quat
public Quat? Quat
{
get
{
Helper.Get(m_Quat, out Quat to, m_ParamValueType, AntiCheatCommonEventParamType.Quat);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.Quat)
{
return m_Quat;
}
return null;
}
set
{
Helper.Set(value, ref m_Quat, AntiCheatCommonEventParamType.Quat, ref m_ParamValueType);
m_Quat = value;
m_ParamValueType = AntiCheatCommonEventParamType.Quat;
}
}
@ -144,16 +164,22 @@ public struct LogEventParamPairParamValue
{
get
{
Helper.Get(m_Float, out var to, m_ParamValueType, AntiCheatCommonEventParamType.Float);
return to;
if (m_ParamValueType == AntiCheatCommonEventParamType.Float)
{
return m_Float;
}
return null;
}
set
{
Helper.Set(value, ref m_Float, AntiCheatCommonEventParamType.Float, ref m_ParamValueType);
m_Float = value;
m_ParamValueType = AntiCheatCommonEventParamType.Float;
}
}
public static implicit operator LogEventParamPairParamValue(IntPtr value)
public AntiCheatCommonEventParamType ParamValueType => m_ParamValueType;
public static implicit operator LogEventParamPairParamValue(IntPtr? value)
{
return new LogEventParamPairParamValue
{
@ -177,7 +203,7 @@ public struct LogEventParamPairParamValue
};
}
public static implicit operator LogEventParamPairParamValue(uint value)
public static implicit operator LogEventParamPairParamValue(uint? value)
{
return new LogEventParamPairParamValue
{
@ -185,7 +211,7 @@ public struct LogEventParamPairParamValue
};
}
public static implicit operator LogEventParamPairParamValue(int value)
public static implicit operator LogEventParamPairParamValue(int? value)
{
return new LogEventParamPairParamValue
{
@ -193,7 +219,7 @@ public struct LogEventParamPairParamValue
};
}
public static implicit operator LogEventParamPairParamValue(ulong value)
public static implicit operator LogEventParamPairParamValue(ulong? value)
{
return new LogEventParamPairParamValue
{
@ -201,7 +227,7 @@ public struct LogEventParamPairParamValue
};
}
public static implicit operator LogEventParamPairParamValue(long value)
public static implicit operator LogEventParamPairParamValue(long? value)
{
return new LogEventParamPairParamValue
{
@ -209,7 +235,7 @@ public struct LogEventParamPairParamValue
};
}
public static implicit operator LogEventParamPairParamValue(Vec3f value)
public static implicit operator LogEventParamPairParamValue(Vec3f? value)
{
return new LogEventParamPairParamValue
{
@ -217,7 +243,7 @@ public struct LogEventParamPairParamValue
};
}
public static implicit operator LogEventParamPairParamValue(Quat value)
public static implicit operator LogEventParamPairParamValue(Quat? value)
{
return new LogEventParamPairParamValue
{
@ -225,24 +251,11 @@ public struct LogEventParamPairParamValue
};
}
public static implicit operator LogEventParamPairParamValue(float value)
public static implicit operator LogEventParamPairParamValue(float? value)
{
return new LogEventParamPairParamValue
{
Float = value
};
}
internal void Set(ref LogEventParamPairParamValueInternal other)
{
ClientHandle = other.ClientHandle;
String = other.String;
UInt32 = other.UInt32;
Int32 = other.Int32;
UInt64 = other.UInt64;
Int64 = other.Int64;
Vec3f = other.Vec3f;
Quat = other.Quat;
Float = other.Float;
}
}

View file

@ -3,196 +3,82 @@ using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Explicit, Pack = 8)]
internal struct LogEventParamPairParamValueInternal : IGettable<LogEventParamPairParamValue>, ISettable<LogEventParamPairParamValue>, IDisposable
[StructLayout(LayoutKind.Explicit)]
internal struct LogEventParamPairParamValueInternal : ISettable<LogEventParamPairParamValue>, IDisposable
{
[FieldOffset(0)]
private AntiCheatCommonEventParamType m_ParamValueType;
[FieldOffset(8)]
private IntPtr m_ClientHandle;
[FieldOffset(8)]
[FieldOffset(0)]
private IntPtr m_String;
[FieldOffset(8)]
[FieldOffset(0)]
private uint m_UInt32;
[FieldOffset(8)]
[FieldOffset(0)]
private int m_Int32;
[FieldOffset(8)]
[FieldOffset(0)]
private ulong m_UInt64;
[FieldOffset(8)]
[FieldOffset(0)]
private long m_Int64;
[FieldOffset(8)]
[FieldOffset(0)]
private Vec3fInternal m_Vec3f;
[FieldOffset(8)]
[FieldOffset(0)]
private QuatInternal m_Quat;
[FieldOffset(8)]
[FieldOffset(0)]
private float m_Float;
public IntPtr? ClientHandle
{
get
{
Helper.Get(m_ClientHandle, out IntPtr? to, m_ParamValueType, AntiCheatCommonEventParamType.ClientHandle);
return to;
}
set
{
Helper.Set(value, ref m_ClientHandle, AntiCheatCommonEventParamType.ClientHandle, ref m_ParamValueType, this);
}
}
public Utf8String String
{
get
{
Helper.Get(m_String, out Utf8String to, m_ParamValueType, AntiCheatCommonEventParamType.String);
return to;
}
set
{
Helper.Set(value, ref m_String, AntiCheatCommonEventParamType.String, ref m_ParamValueType, this);
}
}
public uint? UInt32
{
get
{
Helper.Get(m_UInt32, out uint? to, m_ParamValueType, AntiCheatCommonEventParamType.UInt32);
return to;
}
set
{
Helper.Set(value, ref m_UInt32, AntiCheatCommonEventParamType.UInt32, ref m_ParamValueType, this);
}
}
public int? Int32
{
get
{
Helper.Get(m_Int32, out int? to, m_ParamValueType, AntiCheatCommonEventParamType.Int32);
return to;
}
set
{
Helper.Set(value, ref m_Int32, AntiCheatCommonEventParamType.Int32, ref m_ParamValueType, this);
}
}
public ulong? UInt64
{
get
{
Helper.Get(m_UInt64, out ulong? to, m_ParamValueType, AntiCheatCommonEventParamType.UInt64);
return to;
}
set
{
Helper.Set(value, ref m_UInt64, AntiCheatCommonEventParamType.UInt64, ref m_ParamValueType, this);
}
}
public long? Int64
{
get
{
Helper.Get(m_Int64, out long? to, m_ParamValueType, AntiCheatCommonEventParamType.Int64);
return to;
}
set
{
Helper.Set(value, ref m_Int64, AntiCheatCommonEventParamType.Int64, ref m_ParamValueType, this);
}
}
public Vec3f Vec3f
{
get
{
Helper.Get(ref m_Vec3f, out Vec3f to, m_ParamValueType, AntiCheatCommonEventParamType.Vector3f);
return to;
}
set
{
Helper.Set(ref value, ref m_Vec3f, AntiCheatCommonEventParamType.Vector3f, ref m_ParamValueType, this);
}
}
public Quat Quat
{
get
{
Helper.Get(ref m_Quat, out Quat to, m_ParamValueType, AntiCheatCommonEventParamType.Quat);
return to;
}
set
{
Helper.Set(ref value, ref m_Quat, AntiCheatCommonEventParamType.Quat, ref m_ParamValueType, this);
}
}
public float? Float
{
get
{
Helper.Get(m_Float, out float? to, m_ParamValueType, AntiCheatCommonEventParamType.Float);
return to;
}
set
{
Helper.Set(value, ref m_Float, AntiCheatCommonEventParamType.Float, ref m_ParamValueType, this);
}
}
public void Set(ref LogEventParamPairParamValue other)
{
ClientHandle = other.ClientHandle;
String = other.String;
UInt32 = other.UInt32;
Int32 = other.Int32;
UInt64 = other.UInt64;
Int64 = other.Int64;
Vec3f = other.Vec3f;
Quat = other.Quat;
Float = other.Float;
}
public void Set(ref LogEventParamPairParamValue? other)
{
if (other.HasValue)
Dispose();
if (other.ParamValueType == AntiCheatCommonEventParamType.ClientHandle)
{
ClientHandle = other.Value.ClientHandle;
String = other.Value.String;
UInt32 = other.Value.UInt32;
Int32 = other.Value.Int32;
UInt64 = other.Value.UInt64;
Int64 = other.Value.Int64;
Vec3f = other.Value.Vec3f;
Quat = other.Value.Quat;
Float = other.Value.Float;
Helper.Set(other.ClientHandle, ref m_ClientHandle);
}
if (other.ParamValueType == AntiCheatCommonEventParamType.String)
{
Helper.Set(other.String, ref m_String);
}
if (other.ParamValueType == AntiCheatCommonEventParamType.UInt32)
{
Helper.Set<uint>(other.UInt32, ref m_UInt32);
}
if (other.ParamValueType == AntiCheatCommonEventParamType.Int32)
{
Helper.Set<int>(other.Int32, ref m_Int32);
}
if (other.ParamValueType == AntiCheatCommonEventParamType.UInt64)
{
Helper.Set<ulong>(other.UInt64, ref m_UInt64);
}
if (other.ParamValueType == AntiCheatCommonEventParamType.Int64)
{
Helper.Set<long>(other.Int64, ref m_Int64);
}
if (other.ParamValueType == AntiCheatCommonEventParamType.Vector3f)
{
Helper.Set(other.Vec3f, ref m_Vec3f);
}
if (other.ParamValueType == AntiCheatCommonEventParamType.Quat)
{
Helper.Set(other.Quat, ref m_Quat);
}
if (other.ParamValueType == AntiCheatCommonEventParamType.Float)
{
Helper.Set<float>(other.Float, ref m_Float);
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientHandle, m_ParamValueType, AntiCheatCommonEventParamType.ClientHandle);
Helper.Dispose(ref m_String, m_ParamValueType, AntiCheatCommonEventParamType.String);
Helper.Dispose(ref m_ClientHandle);
Helper.Dispose(ref m_String);
Helper.Dispose(ref m_Vec3f);
Helper.Dispose(ref m_Quat);
}
public void Get(out LogEventParamPairParamValue output)
{
output = default(LogEventParamPairParamValue);
output.Set(ref this);
}
}

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogGameRoundEndOptionsInternal : ISettable<LogGameRoundEndOptions>, IDisposable
{
private int m_ApiVersion;
private uint m_WinningTeamId;
public uint WinningTeamId
{
set
{
m_WinningTeamId = value;
}
}
public void Set(ref LogGameRoundEndOptions other)
{
Dispose();
m_ApiVersion = 1;
WinningTeamId = other.WinningTeamId;
}
public void Set(ref LogGameRoundEndOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
WinningTeamId = other.Value.WinningTeamId;
}
m_WinningTeamId = other.WinningTeamId;
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogGameRoundStartOptionsInternal : ISettable<LogGameRoundStartOptions>, IDisposable
{
private int m_ApiVersion;
@ -18,67 +16,15 @@ internal struct LogGameRoundStartOptionsInternal : ISettable<LogGameRoundStartOp
private AntiCheatCommonGameRoundCompetitionType m_CompetitionType;
public Utf8String SessionIdentifier
{
set
{
Helper.Set(value, ref m_SessionIdentifier);
}
}
public Utf8String LevelName
{
set
{
Helper.Set(value, ref m_LevelName);
}
}
public Utf8String ModeName
{
set
{
Helper.Set(value, ref m_ModeName);
}
}
public uint RoundTimeSeconds
{
set
{
m_RoundTimeSeconds = value;
}
}
public AntiCheatCommonGameRoundCompetitionType CompetitionType
{
set
{
m_CompetitionType = value;
}
}
public void Set(ref LogGameRoundStartOptions other)
{
Dispose();
m_ApiVersion = 2;
SessionIdentifier = other.SessionIdentifier;
LevelName = other.LevelName;
ModeName = other.ModeName;
RoundTimeSeconds = other.RoundTimeSeconds;
CompetitionType = other.CompetitionType;
}
public void Set(ref LogGameRoundStartOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
SessionIdentifier = other.Value.SessionIdentifier;
LevelName = other.Value.LevelName;
ModeName = other.Value.ModeName;
RoundTimeSeconds = other.Value.RoundTimeSeconds;
CompetitionType = other.Value.CompetitionType;
}
Helper.Set(other.SessionIdentifier, ref m_SessionIdentifier);
Helper.Set(other.LevelName, ref m_LevelName);
Helper.Set(other.ModeName, ref m_ModeName);
m_RoundTimeSeconds = other.RoundTimeSeconds;
m_CompetitionType = other.CompetitionType;
}
public void Dispose()

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogPlayerDespawnOptionsInternal : ISettable<LogPlayerDespawnOptions>, IDisposable
{
private int m_ApiVersion;
private IntPtr m_DespawnedPlayerHandle;
public IntPtr DespawnedPlayerHandle
{
set
{
m_DespawnedPlayerHandle = value;
}
}
public void Set(ref LogPlayerDespawnOptions other)
{
Dispose();
m_ApiVersion = 1;
DespawnedPlayerHandle = other.DespawnedPlayerHandle;
}
public void Set(ref LogPlayerDespawnOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
DespawnedPlayerHandle = other.Value.DespawnedPlayerHandle;
}
m_DespawnedPlayerHandle = other.DespawnedPlayerHandle;
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogPlayerReviveOptionsInternal : ISettable<LogPlayerReviveOptions>, IDisposable
{
private int m_ApiVersion;
@ -12,37 +10,12 @@ internal struct LogPlayerReviveOptionsInternal : ISettable<LogPlayerReviveOption
private IntPtr m_ReviverPlayerHandle;
public IntPtr RevivedPlayerHandle
{
set
{
m_RevivedPlayerHandle = value;
}
}
public IntPtr ReviverPlayerHandle
{
set
{
m_ReviverPlayerHandle = value;
}
}
public void Set(ref LogPlayerReviveOptions other)
{
Dispose();
m_ApiVersion = 1;
RevivedPlayerHandle = other.RevivedPlayerHandle;
ReviverPlayerHandle = other.ReviverPlayerHandle;
}
public void Set(ref LogPlayerReviveOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
RevivedPlayerHandle = other.Value.RevivedPlayerHandle;
ReviverPlayerHandle = other.Value.ReviverPlayerHandle;
}
m_RevivedPlayerHandle = other.RevivedPlayerHandle;
m_ReviverPlayerHandle = other.ReviverPlayerHandle;
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogPlayerSpawnOptionsInternal : ISettable<LogPlayerSpawnOptions>, IDisposable
{
private int m_ApiVersion;
@ -14,47 +12,13 @@ internal struct LogPlayerSpawnOptionsInternal : ISettable<LogPlayerSpawnOptions>
private uint m_CharacterId;
public IntPtr SpawnedPlayerHandle
{
set
{
m_SpawnedPlayerHandle = value;
}
}
public uint TeamId
{
set
{
m_TeamId = value;
}
}
public uint CharacterId
{
set
{
m_CharacterId = value;
}
}
public void Set(ref LogPlayerSpawnOptions other)
{
Dispose();
m_ApiVersion = 1;
SpawnedPlayerHandle = other.SpawnedPlayerHandle;
TeamId = other.TeamId;
CharacterId = other.CharacterId;
}
public void Set(ref LogPlayerSpawnOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
SpawnedPlayerHandle = other.Value.SpawnedPlayerHandle;
TeamId = other.Value.TeamId;
CharacterId = other.Value.CharacterId;
}
m_SpawnedPlayerHandle = other.SpawnedPlayerHandle;
m_TeamId = other.TeamId;
m_CharacterId = other.CharacterId;
}
public void Dispose()

View file

@ -22,7 +22,7 @@ public struct LogPlayerTakeDamageOptions
public bool IsCriticalHit { get; set; }
internal uint HitBoneId_DEPRECATED { get; set; }
public uint HitBoneId_DEPRECATED { get; set; }
public float DamageTaken { get; set; }

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogPlayerTakeDamageOptionsInternal : ISettable<LogPlayerTakeDamageOptions>, IDisposable
{
private int m_ApiVersion;
@ -46,207 +44,29 @@ internal struct LogPlayerTakeDamageOptionsInternal : ISettable<LogPlayerTakeDama
private IntPtr m_AttackerPlayerViewPosition;
public IntPtr VictimPlayerHandle
{
set
{
m_VictimPlayerHandle = value;
}
}
public Vec3f? VictimPlayerPosition
{
set
{
Helper.Set<Vec3f, Vec3fInternal>(ref value, ref m_VictimPlayerPosition);
}
}
public Quat? VictimPlayerViewRotation
{
set
{
Helper.Set<Quat, QuatInternal>(ref value, ref m_VictimPlayerViewRotation);
}
}
public IntPtr AttackerPlayerHandle
{
set
{
m_AttackerPlayerHandle = value;
}
}
public Vec3f? AttackerPlayerPosition
{
set
{
Helper.Set<Vec3f, Vec3fInternal>(ref value, ref m_AttackerPlayerPosition);
}
}
public Quat? AttackerPlayerViewRotation
{
set
{
Helper.Set<Quat, QuatInternal>(ref value, ref m_AttackerPlayerViewRotation);
}
}
public bool IsHitscanAttack
{
set
{
Helper.Set(value, ref m_IsHitscanAttack);
}
}
public bool HasLineOfSight
{
set
{
Helper.Set(value, ref m_HasLineOfSight);
}
}
public bool IsCriticalHit
{
set
{
Helper.Set(value, ref m_IsCriticalHit);
}
}
public uint HitBoneId_DEPRECATED
{
set
{
m_HitBoneId_DEPRECATED = value;
}
}
public float DamageTaken
{
set
{
m_DamageTaken = value;
}
}
public float HealthRemaining
{
set
{
m_HealthRemaining = value;
}
}
public AntiCheatCommonPlayerTakeDamageSource DamageSource
{
set
{
m_DamageSource = value;
}
}
public AntiCheatCommonPlayerTakeDamageType DamageType
{
set
{
m_DamageType = value;
}
}
public AntiCheatCommonPlayerTakeDamageResult DamageResult
{
set
{
m_DamageResult = value;
}
}
public LogPlayerUseWeaponData? PlayerUseWeaponData
{
set
{
Helper.Set<LogPlayerUseWeaponData, LogPlayerUseWeaponDataInternal>(ref value, ref m_PlayerUseWeaponData);
}
}
public uint TimeSincePlayerUseWeaponMs
{
set
{
m_TimeSincePlayerUseWeaponMs = value;
}
}
public Vec3f? DamagePosition
{
set
{
Helper.Set<Vec3f, Vec3fInternal>(ref value, ref m_DamagePosition);
}
}
public Vec3f? AttackerPlayerViewPosition
{
set
{
Helper.Set<Vec3f, Vec3fInternal>(ref value, ref m_AttackerPlayerViewPosition);
}
}
public void Set(ref LogPlayerTakeDamageOptions other)
{
Dispose();
m_ApiVersion = 4;
VictimPlayerHandle = other.VictimPlayerHandle;
VictimPlayerPosition = other.VictimPlayerPosition;
VictimPlayerViewRotation = other.VictimPlayerViewRotation;
AttackerPlayerHandle = other.AttackerPlayerHandle;
AttackerPlayerPosition = other.AttackerPlayerPosition;
AttackerPlayerViewRotation = other.AttackerPlayerViewRotation;
IsHitscanAttack = other.IsHitscanAttack;
HasLineOfSight = other.HasLineOfSight;
IsCriticalHit = other.IsCriticalHit;
HitBoneId_DEPRECATED = other.HitBoneId_DEPRECATED;
DamageTaken = other.DamageTaken;
HealthRemaining = other.HealthRemaining;
DamageSource = other.DamageSource;
DamageType = other.DamageType;
DamageResult = other.DamageResult;
PlayerUseWeaponData = other.PlayerUseWeaponData;
TimeSincePlayerUseWeaponMs = other.TimeSincePlayerUseWeaponMs;
DamagePosition = other.DamagePosition;
AttackerPlayerViewPosition = other.AttackerPlayerViewPosition;
}
public void Set(ref LogPlayerTakeDamageOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 4;
VictimPlayerHandle = other.Value.VictimPlayerHandle;
VictimPlayerPosition = other.Value.VictimPlayerPosition;
VictimPlayerViewRotation = other.Value.VictimPlayerViewRotation;
AttackerPlayerHandle = other.Value.AttackerPlayerHandle;
AttackerPlayerPosition = other.Value.AttackerPlayerPosition;
AttackerPlayerViewRotation = other.Value.AttackerPlayerViewRotation;
IsHitscanAttack = other.Value.IsHitscanAttack;
HasLineOfSight = other.Value.HasLineOfSight;
IsCriticalHit = other.Value.IsCriticalHit;
HitBoneId_DEPRECATED = other.Value.HitBoneId_DEPRECATED;
DamageTaken = other.Value.DamageTaken;
HealthRemaining = other.Value.HealthRemaining;
DamageSource = other.Value.DamageSource;
DamageType = other.Value.DamageType;
DamageResult = other.Value.DamageResult;
PlayerUseWeaponData = other.Value.PlayerUseWeaponData;
TimeSincePlayerUseWeaponMs = other.Value.TimeSincePlayerUseWeaponMs;
DamagePosition = other.Value.DamagePosition;
AttackerPlayerViewPosition = other.Value.AttackerPlayerViewPosition;
}
m_VictimPlayerHandle = other.VictimPlayerHandle;
Helper.Set<Vec3f, Vec3fInternal>(other.VictimPlayerPosition, ref m_VictimPlayerPosition);
Helper.Set<Quat, QuatInternal>(other.VictimPlayerViewRotation, ref m_VictimPlayerViewRotation);
m_AttackerPlayerHandle = other.AttackerPlayerHandle;
Helper.Set<Vec3f, Vec3fInternal>(other.AttackerPlayerPosition, ref m_AttackerPlayerPosition);
Helper.Set<Quat, QuatInternal>(other.AttackerPlayerViewRotation, ref m_AttackerPlayerViewRotation);
Helper.Set(other.IsHitscanAttack, ref m_IsHitscanAttack);
Helper.Set(other.HasLineOfSight, ref m_HasLineOfSight);
Helper.Set(other.IsCriticalHit, ref m_IsCriticalHit);
m_HitBoneId_DEPRECATED = other.HitBoneId_DEPRECATED;
m_DamageTaken = other.DamageTaken;
m_HealthRemaining = other.HealthRemaining;
m_DamageSource = other.DamageSource;
m_DamageType = other.DamageType;
m_DamageResult = other.DamageResult;
Helper.Set<LogPlayerUseWeaponData, LogPlayerUseWeaponDataInternal>(other.PlayerUseWeaponData, ref m_PlayerUseWeaponData);
m_TimeSincePlayerUseWeaponMs = other.TimeSincePlayerUseWeaponMs;
Helper.Set<Vec3f, Vec3fInternal>(other.DamagePosition, ref m_DamagePosition);
Helper.Set<Vec3f, Vec3fInternal>(other.AttackerPlayerViewPosition, ref m_AttackerPlayerViewPosition);
}
public void Dispose()

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogPlayerTickOptionsInternal
{
public int m_ApiVersion;
@ -20,5 +18,5 @@ internal struct LogPlayerTickOptionsInternal
public AntiCheatCommonPlayerMovementState m_PlayerMovementState;
public IntPtr m_PlayerViewPosition;
public IntPtr m_playerViewPosition;
}

View file

@ -1,9 +1,7 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogPlayerUseAbilityOptionsInternal : ISettable<LogPlayerUseAbilityOptions>, IDisposable
{
private int m_ApiVersion;
@ -16,57 +14,14 @@ internal struct LogPlayerUseAbilityOptionsInternal : ISettable<LogPlayerUseAbili
private uint m_AbilityCooldownMs;
public IntPtr PlayerHandle
{
set
{
m_PlayerHandle = value;
}
}
public uint AbilityId
{
set
{
m_AbilityId = value;
}
}
public uint AbilityDurationMs
{
set
{
m_AbilityDurationMs = value;
}
}
public uint AbilityCooldownMs
{
set
{
m_AbilityCooldownMs = value;
}
}
public void Set(ref LogPlayerUseAbilityOptions other)
{
Dispose();
m_ApiVersion = 1;
PlayerHandle = other.PlayerHandle;
AbilityId = other.AbilityId;
AbilityDurationMs = other.AbilityDurationMs;
AbilityCooldownMs = other.AbilityCooldownMs;
}
public void Set(ref LogPlayerUseAbilityOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 1;
PlayerHandle = other.Value.PlayerHandle;
AbilityId = other.Value.AbilityId;
AbilityDurationMs = other.Value.AbilityDurationMs;
AbilityCooldownMs = other.Value.AbilityCooldownMs;
}
m_PlayerHandle = other.PlayerHandle;
m_AbilityId = other.AbilityId;
m_AbilityDurationMs = other.AbilityDurationMs;
m_AbilityCooldownMs = other.AbilityCooldownMs;
}
public void Dispose()

View file

@ -15,14 +15,4 @@ public struct LogPlayerUseWeaponData
public bool IsMeleeAttack { get; set; }
public Utf8String WeaponName { get; set; }
internal void Set(ref LogPlayerUseWeaponDataInternal other)
{
PlayerHandle = other.PlayerHandle;
PlayerPosition = other.PlayerPosition;
PlayerViewRotation = other.PlayerViewRotation;
IsPlayerViewZoomed = other.IsPlayerViewZoomed;
IsMeleeAttack = other.IsMeleeAttack;
WeaponName = other.WeaponName;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogPlayerUseWeaponDataInternal : IGettable<LogPlayerUseWeaponData>, ISettable<LogPlayerUseWeaponData>, IDisposable
internal struct LogPlayerUseWeaponDataInternal : ISettable<LogPlayerUseWeaponData>, IDisposable
{
private IntPtr m_PlayerHandle;
@ -18,104 +16,15 @@ internal struct LogPlayerUseWeaponDataInternal : IGettable<LogPlayerUseWeaponDat
private IntPtr m_WeaponName;
public IntPtr PlayerHandle
{
get
{
return m_PlayerHandle;
}
set
{
m_PlayerHandle = value;
}
}
public Vec3f? PlayerPosition
{
get
{
Helper.Get<Vec3fInternal, Vec3f>(m_PlayerPosition, out Vec3f? to);
return to;
}
set
{
Helper.Set<Vec3f, Vec3fInternal>(ref value, ref m_PlayerPosition);
}
}
public Quat? PlayerViewRotation
{
get
{
Helper.Get<QuatInternal, Quat>(m_PlayerViewRotation, out Quat? to);
return to;
}
set
{
Helper.Set<Quat, QuatInternal>(ref value, ref m_PlayerViewRotation);
}
}
public bool IsPlayerViewZoomed
{
get
{
Helper.Get(m_IsPlayerViewZoomed, out var to);
return to;
}
set
{
Helper.Set(value, ref m_IsPlayerViewZoomed);
}
}
public bool IsMeleeAttack
{
get
{
Helper.Get(m_IsMeleeAttack, out var to);
return to;
}
set
{
Helper.Set(value, ref m_IsMeleeAttack);
}
}
public Utf8String WeaponName
{
get
{
Helper.Get(m_WeaponName, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_WeaponName);
}
}
public void Set(ref LogPlayerUseWeaponData other)
{
PlayerHandle = other.PlayerHandle;
PlayerPosition = other.PlayerPosition;
PlayerViewRotation = other.PlayerViewRotation;
IsPlayerViewZoomed = other.IsPlayerViewZoomed;
IsMeleeAttack = other.IsMeleeAttack;
WeaponName = other.WeaponName;
}
public void Set(ref LogPlayerUseWeaponData? other)
{
if (other.HasValue)
{
PlayerHandle = other.Value.PlayerHandle;
PlayerPosition = other.Value.PlayerPosition;
PlayerViewRotation = other.Value.PlayerViewRotation;
IsPlayerViewZoomed = other.Value.IsPlayerViewZoomed;
IsMeleeAttack = other.Value.IsMeleeAttack;
WeaponName = other.Value.WeaponName;
}
Dispose();
m_PlayerHandle = other.PlayerHandle;
Helper.Set<Vec3f, Vec3fInternal>(other.PlayerPosition, ref m_PlayerPosition);
Helper.Set<Quat, QuatInternal>(other.PlayerViewRotation, ref m_PlayerViewRotation);
Helper.Set(other.IsPlayerViewZoomed, ref m_IsPlayerViewZoomed);
Helper.Set(other.IsMeleeAttack, ref m_IsMeleeAttack);
Helper.Set(other.WeaponName, ref m_WeaponName);
}
public void Dispose()
@ -125,10 +34,4 @@ internal struct LogPlayerUseWeaponDataInternal : IGettable<LogPlayerUseWeaponDat
Helper.Dispose(ref m_PlayerViewRotation);
Helper.Dispose(ref m_WeaponName);
}
public void Get(out LogPlayerUseWeaponData output)
{
output = default(LogPlayerUseWeaponData);
output.Set(ref this);
}
}

View file

@ -1,36 +1,18 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct LogPlayerUseWeaponOptionsInternal : ISettable<LogPlayerUseWeaponOptions>, IDisposable
{
private int m_ApiVersion;
private IntPtr m_UseWeaponData;
public LogPlayerUseWeaponData? UseWeaponData
{
set
{
Helper.Set<LogPlayerUseWeaponData, LogPlayerUseWeaponDataInternal>(ref value, ref m_UseWeaponData);
}
}
public void Set(ref LogPlayerUseWeaponOptions other)
{
Dispose();
m_ApiVersion = 2;
UseWeaponData = other.UseWeaponData;
}
public void Set(ref LogPlayerUseWeaponOptions? other)
{
if (other.HasValue)
{
m_ApiVersion = 2;
UseWeaponData = other.Value.UseWeaponData;
}
Helper.Set<LogPlayerUseWeaponData, LogPlayerUseWeaponDataInternal>(other.UseWeaponData, ref m_UseWeaponData);
}
public void Dispose()

View file

@ -14,17 +14,13 @@ public struct OnClientActionRequiredCallbackInfo : ICallbackInfo
public Utf8String ActionReasonDetailsString { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return null;
}
internal void Set(ref OnClientActionRequiredCallbackInfoInternal other)
{
ClientData = other.ClientData;
ClientHandle = other.ClientHandle;
ClientAction = other.ClientAction;
ActionReasonCode = other.ActionReasonCode;
ActionReasonDetailsString = other.ActionReasonDetailsString;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnClientActionRequiredCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnClientActionRequiredCallbackInfo>, ISettable<OnClientActionRequiredCallbackInfo>, IDisposable
internal struct OnClientActionRequiredCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnClientActionRequiredCallbackInfo>
{
private IntPtr m_ClientData;
@ -16,101 +14,17 @@ internal struct OnClientActionRequiredCallbackInfoInternal : ICallbackInfoIntern
private IntPtr m_ActionReasonDetailsString;
public object ClientData
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataPointer => m_ClientData;
public IntPtr ClientDataAddress => m_ClientData;
public IntPtr ClientHandle
public void Get(out OnClientActionRequiredCallbackInfo other)
{
get
{
return m_ClientHandle;
}
set
{
m_ClientHandle = value;
}
}
public AntiCheatCommonClientAction ClientAction
{
get
{
return m_ClientAction;
}
set
{
m_ClientAction = value;
}
}
public AntiCheatCommonClientActionReason ActionReasonCode
{
get
{
return m_ActionReasonCode;
}
set
{
m_ActionReasonCode = value;
}
}
public Utf8String ActionReasonDetailsString
{
get
{
Helper.Get(m_ActionReasonDetailsString, out Utf8String to);
return to;
}
set
{
Helper.Set(value, ref m_ActionReasonDetailsString);
}
}
public void Set(ref OnClientActionRequiredCallbackInfo other)
{
ClientData = other.ClientData;
ClientHandle = other.ClientHandle;
ClientAction = other.ClientAction;
ActionReasonCode = other.ActionReasonCode;
ActionReasonDetailsString = other.ActionReasonDetailsString;
}
public void Set(ref OnClientActionRequiredCallbackInfo? other)
{
if (other.HasValue)
{
ClientData = other.Value.ClientData;
ClientHandle = other.Value.ClientHandle;
ClientAction = other.Value.ClientAction;
ActionReasonCode = other.Value.ActionReasonCode;
ActionReasonDetailsString = other.Value.ActionReasonDetailsString;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_ClientHandle);
Helper.Dispose(ref m_ActionReasonDetailsString);
}
public void Get(out OnClientActionRequiredCallbackInfo output)
{
output = default(OnClientActionRequiredCallbackInfo);
output.Set(ref this);
other = default(OnClientActionRequiredCallbackInfo);
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
other.ClientHandle = m_ClientHandle;
other.ClientAction = m_ClientAction;
other.ActionReasonCode = m_ActionReasonCode;
Helper.Get(m_ActionReasonDetailsString, out Utf8String to2);
other.ActionReasonDetailsString = to2;
}
}

View file

@ -10,15 +10,13 @@ public struct OnClientAuthStatusChangedCallbackInfo : ICallbackInfo
public AntiCheatCommonClientAuthStatus ClientAuthStatus { get; set; }
public object GetClientData()
{
return ClientData;
}
public Result? GetResultCode()
{
return null;
}
internal void Set(ref OnClientAuthStatusChangedCallbackInfoInternal other)
{
ClientData = other.ClientData;
ClientHandle = other.ClientHandle;
ClientAuthStatus = other.ClientAuthStatus;
}
}

View file

@ -1,10 +1,8 @@
using System;
using System.Runtime.InteropServices;
namespace Epic.OnlineServices.AntiCheatCommon;
[StructLayout(LayoutKind.Sequential, Pack = 8)]
internal struct OnClientAuthStatusChangedCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnClientAuthStatusChangedCallbackInfo>, ISettable<OnClientAuthStatusChangedCallbackInfo>, IDisposable
internal struct OnClientAuthStatusChangedCallbackInfoInternal : ICallbackInfoInternal, IGettable<OnClientAuthStatusChangedCallbackInfo>
{
private IntPtr m_ClientData;
@ -12,71 +10,14 @@ internal struct OnClientAuthStatusChangedCallbackInfoInternal : ICallbackInfoInt
private AntiCheatCommonClientAuthStatus m_ClientAuthStatus;
public object ClientData
{
get
{
Helper.Get(m_ClientData, out object to);
return to;
}
set
{
Helper.Set(value, ref m_ClientData);
}
}
public IntPtr ClientDataPointer => m_ClientData;
public IntPtr ClientDataAddress => m_ClientData;
public IntPtr ClientHandle
public void Get(out OnClientAuthStatusChangedCallbackInfo other)
{
get
{
return m_ClientHandle;
}
set
{
m_ClientHandle = value;
}
}
public AntiCheatCommonClientAuthStatus ClientAuthStatus
{
get
{
return m_ClientAuthStatus;
}
set
{
m_ClientAuthStatus = value;
}
}
public void Set(ref OnClientAuthStatusChangedCallbackInfo other)
{
ClientData = other.ClientData;
ClientHandle = other.ClientHandle;
ClientAuthStatus = other.ClientAuthStatus;
}
public void Set(ref OnClientAuthStatusChangedCallbackInfo? other)
{
if (other.HasValue)
{
ClientData = other.Value.ClientData;
ClientHandle = other.Value.ClientHandle;
ClientAuthStatus = other.Value.ClientAuthStatus;
}
}
public void Dispose()
{
Helper.Dispose(ref m_ClientData);
Helper.Dispose(ref m_ClientHandle);
}
public void Get(out OnClientAuthStatusChangedCallbackInfo output)
{
output = default(OnClientAuthStatusChangedCallbackInfo);
output.Set(ref this);
other = default(OnClientAuthStatusChangedCallbackInfo);
Helper.Get(m_ClientData, out object to);
other.ClientData = to;
other.ClientHandle = m_ClientHandle;
other.ClientAuthStatus = m_ClientAuthStatus;
}
}

Some files were not shown because too many files have changed in this diff Show more