Remove explosion networking jank (#12733)
This commit is contained in:
@@ -24,61 +24,3 @@ public sealed class GetExplosionResistanceEvent : EntityEventArgs, IInventoryRel
|
||||
ExplotionPrototype = id;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An explosion event. Used for client side rendering.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ExplosionEvent : EntityEventArgs
|
||||
{
|
||||
public MapCoordinates Epicenter;
|
||||
|
||||
public Dictionary<int, List<Vector2i>>? SpaceTiles;
|
||||
public Dictionary<EntityUid, Dictionary<int, List<Vector2i>>> Tiles;
|
||||
|
||||
public List<float> Intensity;
|
||||
|
||||
public string TypeID;
|
||||
|
||||
public Matrix3 SpaceMatrix;
|
||||
|
||||
public int ExplosionId;
|
||||
|
||||
public ushort SpaceTileSize;
|
||||
|
||||
public ExplosionEvent(
|
||||
int explosionId,
|
||||
MapCoordinates epicenter,
|
||||
string typeID,
|
||||
List<float> intensity,
|
||||
Dictionary<int, List<Vector2i>>? spaceTiles,
|
||||
Dictionary<EntityUid, Dictionary<int, List<Vector2i>>> tiles,
|
||||
Matrix3 spaceMatrix,
|
||||
ushort spaceTileSize)
|
||||
{
|
||||
Epicenter = epicenter;
|
||||
SpaceTiles = spaceTiles;
|
||||
Tiles = tiles;
|
||||
Intensity = intensity;
|
||||
TypeID = typeID;
|
||||
SpaceMatrix = spaceMatrix;
|
||||
ExplosionId = explosionId;
|
||||
SpaceTileSize = spaceTileSize;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Update visual rendering of the explosion to correspond to the servers processing of it.
|
||||
/// </summary>
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class ExplosionOverlayUpdateEvent : EntityEventArgs
|
||||
{
|
||||
public int Index;
|
||||
public int ExplosionId;
|
||||
|
||||
public ExplosionOverlayUpdateEvent(int explosionId, int index)
|
||||
{
|
||||
Index = index;
|
||||
ExplosionId = explosionId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user