Files
RAGECOOP-V/Core/CompactVectors.cs
Sardelka9515 4fbdd86566 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
2023-03-26 15:36:15 +08:00

23 lines
591 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using GTA.Math;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace RageCoop.Core
{
internal struct LQuaternion
{
public LQuaternion(float x, float y, float z, float w)
{
X = x; Y = y; Z = z; W = w;
}
public float X, Y, Z, W;
public static implicit operator LQuaternion(Quaternion q) => new(q.X, q.Y, q.Z, q.W);
public static implicit operator Quaternion(LQuaternion q) => new(q.X, q.Y, q.Z, q.W);
}
}