mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Co-authored-by: ike709 <ike709@github.com> Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Map;
|
|
using Robust.Shared.Network;
|
|
|
|
namespace Robust.Shared.Placement;
|
|
|
|
public readonly struct PlacementEntityEvent
|
|
{
|
|
public readonly EntityUid EditedEntity;
|
|
|
|
public readonly EntityCoordinates Coordinates;
|
|
|
|
public readonly PlacementEventAction PlacementEventAction;
|
|
|
|
public readonly NetUserId? PlacerNetUserId;
|
|
|
|
public PlacementEntityEvent(EntityUid editedEntity, EntityCoordinates coordinates, PlacementEventAction placementEventAction, NetUserId? placerNetUserId)
|
|
{
|
|
EditedEntity = editedEntity;
|
|
Coordinates = coordinates;
|
|
PlacementEventAction = placementEventAction;
|
|
PlacerNetUserId = placerNetUserId;
|
|
}
|
|
}
|
|
|
|
public readonly struct PlacementTileEvent
|
|
{
|
|
public readonly int TileType;
|
|
|
|
public readonly EntityCoordinates Coordinates;
|
|
|
|
public readonly NetUserId? PlacerNetUserId;
|
|
|
|
public PlacementTileEvent(int tileType, EntityCoordinates coordinates, NetUserId? placerNetUserId)
|
|
{
|
|
TileType = tileType;
|
|
Coordinates = coordinates;
|
|
PlacerNetUserId = placerNetUserId;
|
|
}
|
|
}
|
|
|
|
public enum PlacementEventAction
|
|
{
|
|
Erase,
|
|
Create,
|
|
}
|