Lots of sh*t

API cleanup
Complete deluxo transformation sync
blahblahblah
This commit is contained in:
Sardelka
2022-05-31 09:14:30 +08:00
parent ad698a656d
commit b96d349e4a
31 changed files with 1186 additions and 1382 deletions

View File

@ -8,7 +8,7 @@ using GTA.Math;
namespace RageCoop.Client
{
public abstract class SyncedEntity
internal abstract class SyncedEntity
{
/// <summary>

View File

@ -14,7 +14,7 @@ namespace RageCoop.Client
/// <summary>
/// ?
/// </summary>
public partial class SyncedPed:SyncedEntity
internal class SyncedPed:SyncedEntity
{
#region CONSTRUCTORS

View File

@ -11,7 +11,7 @@ using RageCoop.Core;
namespace RageCoop.Client
{
public class SyncedVehicle : SyncedEntity
internal class SyncedVehicle : SyncedEntity
{
#region -- CONSTRUCTORS --
@ -89,7 +89,7 @@ namespace RageCoop.Client
/// VehicleSeat,PedID
/// </summary>
public Dictionary<VehicleSeat, SyncedPed> Passengers { get; set; }
public float DeluxoWingRatio { get; set; } = -1;
private long _lastPositionCalibrated { get; set; }
#endregion
@ -148,9 +148,11 @@ namespace RageCoop.Client
MainVehicle.Rotation = Rotation;
MainVehicle.RotationVelocity = RotationVelocity;
}
_vehicleStopTime = Util.GetTickCount64();
if (DeluxoWingRatio!=-1)
{
MainVehicle.SetDeluxoWingRatio(DeluxoWingRatio);
}
#endregion
if (LastStateSynced>LastUpdated)
{
#region -- SYNC STATE --