This commit is contained in:
2026-08-21 17:59:13 +03:00
parent b98901c366
commit f6a7547e84
951 changed files with 909007 additions and 70938 deletions
@@ -51,19 +51,22 @@ public struct MapShotResultState : INetworkSerializable,
public int TargetId;
public Vector2 Coordinates;
public float Distance;
public MissileType MissileType;
public MapShotResultState(
uint sequence,
bool hit,
int targetId,
Vector2 coordinates,
float distance)
float distance,
MissileType missileType)
{
Sequence = sequence;
Hit = hit;
TargetId = targetId;
Coordinates = coordinates;
Distance = distance;
MissileType = missileType;
}
public void NetworkSerialize<T>(BufferSerializer<T> serializer)
@@ -74,10 +77,11 @@ public struct MapShotResultState : INetworkSerializable,
serializer.SerializeValue(ref TargetId);
serializer.SerializeValue(ref Coordinates);
serializer.SerializeValue(ref Distance);
serializer.SerializeValue(ref MissileType);
}
public bool Equals(MapShotResultState other) =>
Sequence == other.Sequence && Hit == other.Hit &&
TargetId == other.TargetId && Coordinates == other.Coordinates &&
Distance.Equals(other.Distance);
Distance.Equals(other.Distance) && MissileType == other.MissileType;
}