// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.AntiCheatCommon { public struct LogPlayerTickOptions { /// /// Locally unique value used in RegisterClient/RegisterPeer /// public System.IntPtr PlayerHandle { get; set; } /// /// Player's current world position as a 3D vector /// public Vec3f? PlayerPosition { get; set; } /// /// Player's view rotation as a quaternion /// public Quat? PlayerViewRotation { get; set; } /// /// True if the player's view is zoomed (e.g. using a sniper rifle), otherwise false /// public bool IsPlayerViewZoomed { get; set; } /// /// Player's current health value /// public float PlayerHealth { get; set; } /// /// Any movement state applicable /// public AntiCheatCommonPlayerMovementState PlayerMovementState { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct LogPlayerTickOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_PlayerHandle; private System.IntPtr m_PlayerPosition; private System.IntPtr m_PlayerViewRotation; private int m_IsPlayerViewZoomed; private float m_PlayerHealth; private AntiCheatCommonPlayerMovementState m_PlayerMovementState; public System.IntPtr PlayerHandle { set { m_PlayerHandle = value; } } public Vec3f? PlayerPosition { set { Helper.Set(ref value, ref m_PlayerPosition); } } public Quat? PlayerViewRotation { set { Helper.Set(ref value, ref m_PlayerViewRotation); } } public bool IsPlayerViewZoomed { set { Helper.Set(value, ref m_IsPlayerViewZoomed); } } public float PlayerHealth { set { m_PlayerHealth = value; } } public AntiCheatCommonPlayerMovementState PlayerMovementState { set { m_PlayerMovementState = value; } } public void Set(ref LogPlayerTickOptions other) { m_ApiVersion = AntiCheatCommonInterface.LogplayertickApiLatest; PlayerHandle = other.PlayerHandle; PlayerPosition = other.PlayerPosition; PlayerViewRotation = other.PlayerViewRotation; IsPlayerViewZoomed = other.IsPlayerViewZoomed; PlayerHealth = other.PlayerHealth; PlayerMovementState = other.PlayerMovementState; } public void Set(ref LogPlayerTickOptions? other) { if (other.HasValue) { m_ApiVersion = AntiCheatCommonInterface.LogplayertickApiLatest; PlayerHandle = other.Value.PlayerHandle; PlayerPosition = other.Value.PlayerPosition; PlayerViewRotation = other.Value.PlayerViewRotation; IsPlayerViewZoomed = other.Value.IsPlayerViewZoomed; PlayerHealth = other.Value.PlayerHealth; PlayerMovementState = other.Value.PlayerMovementState; } } public void Dispose() { Helper.Dispose(ref m_PlayerHandle); Helper.Dispose(ref m_PlayerPosition); Helper.Dispose(ref m_PlayerViewRotation); } } }