Use struct to serialize vehicle data

This gonna reduce the tedious work needed to add a new sync, also beings a performance boost
Ped, projectile sync will be updated later
This commit is contained in:
Sardelka9515
2023-03-26 15:36:15 +08:00
parent 826e80c5d8
commit 4fbdd86566
24 changed files with 445 additions and 550 deletions

View File

@ -20,15 +20,15 @@ namespace RageCoop.Core
public int Health { get; set; }
public Vector3 Position { get; set; }
public LVector3 Position { get; set; }
public Vector3 Rotation { get; set; }
public LVector3 Rotation { get; set; }
public Vector3 Velocity { get; set; }
public LVector3 Velocity { get; set; }
public byte Speed { get; set; }
public Vector3 AimCoords { get; set; }
public LVector3 AimCoords { get; set; }
public float Heading { get; set; }
@ -178,9 +178,9 @@ namespace RageCoop.Core
#region RAGDOLL
public Vector3 HeadPosition { get; set; }
public Vector3 RightFootPosition { get; set; }
public Vector3 LeftFootPosition { get; set; }
public LVector3 HeadPosition { get; set; }
public LVector3 RightFootPosition { get; set; }
public LVector3 LeftFootPosition { get; set; }
#endregion