Content update for NetEntities (#18935)
This commit is contained in:
@@ -10,9 +10,9 @@ namespace Content.Shared.Weapons.Melee.Events
|
||||
/// <summary>
|
||||
/// Coordinates being attacked.
|
||||
/// </summary>
|
||||
public readonly EntityCoordinates Coordinates;
|
||||
public readonly NetCoordinates Coordinates;
|
||||
|
||||
protected AttackEvent(EntityCoordinates coordinates)
|
||||
protected AttackEvent(NetCoordinates coordinates)
|
||||
{
|
||||
Coordinates = coordinates;
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace Content.Shared.Weapons.Melee.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class DisarmAttackEvent : AttackEvent
|
||||
{
|
||||
public EntityUid? Target;
|
||||
public NetEntity? Target;
|
||||
|
||||
public DisarmAttackEvent(EntityUid? target, EntityCoordinates coordinates) : base(coordinates)
|
||||
public DisarmAttackEvent(NetEntity? target, NetCoordinates coordinates) : base(coordinates)
|
||||
{
|
||||
Target = target;
|
||||
}
|
||||
|
||||
@@ -9,14 +9,14 @@ namespace Content.Shared.Weapons.Melee.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class HeavyAttackEvent : AttackEvent
|
||||
{
|
||||
public readonly EntityUid Weapon;
|
||||
public readonly NetEntity Weapon;
|
||||
|
||||
/// <summary>
|
||||
/// As what the client swung at will not match server we'll have them tell us what they hit so we can verify.
|
||||
/// </summary>
|
||||
public List<EntityUid> Entities;
|
||||
public List<NetEntity> Entities;
|
||||
|
||||
public HeavyAttackEvent(EntityUid weapon, List<EntityUid> entities, EntityCoordinates coordinates) : base(coordinates)
|
||||
public HeavyAttackEvent(NetEntity weapon, List<NetEntity> entities, NetCoordinates coordinates) : base(coordinates)
|
||||
{
|
||||
Weapon = weapon;
|
||||
Entities = entities;
|
||||
|
||||
@@ -9,10 +9,10 @@ namespace Content.Shared.Weapons.Melee.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class LightAttackEvent : AttackEvent
|
||||
{
|
||||
public readonly EntityUid? Target;
|
||||
public readonly EntityUid Weapon;
|
||||
public readonly NetEntity? Target;
|
||||
public readonly NetEntity Weapon;
|
||||
|
||||
public LightAttackEvent(EntityUid? target, EntityUid weapon, EntityCoordinates coordinates) : base(coordinates)
|
||||
public LightAttackEvent(NetEntity? target, NetEntity weapon, NetCoordinates coordinates) : base(coordinates)
|
||||
{
|
||||
Target = target;
|
||||
Weapon = weapon;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Content.Shared.Weapons.Melee.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class MeleeLungeEvent : EntityEventArgs
|
||||
{
|
||||
public EntityUid Entity;
|
||||
public NetEntity Entity;
|
||||
|
||||
/// <summary>
|
||||
/// Width of the attack angle.
|
||||
@@ -26,9 +26,9 @@ public sealed class MeleeLungeEvent : EntityEventArgs
|
||||
/// </summary>
|
||||
public string? Animation;
|
||||
|
||||
public MeleeLungeEvent(EntityUid uid, Angle angle, Vector2 localPos, string? animation)
|
||||
public MeleeLungeEvent(NetEntity entity, Angle angle, Vector2 localPos, string? animation)
|
||||
{
|
||||
Entity = uid;
|
||||
Entity = entity;
|
||||
Angle = angle;
|
||||
LocalPos = localPos;
|
||||
Animation = animation;
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace Content.Shared.Weapons.Melee.Events;
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class StopAttackEvent : EntityEventArgs
|
||||
{
|
||||
public readonly EntityUid Weapon;
|
||||
public readonly NetEntity Weapon;
|
||||
|
||||
public StopAttackEvent(EntityUid weapon)
|
||||
public StopAttackEvent(NetEntity weapon)
|
||||
{
|
||||
Weapon = weapon;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user