Content update for NetEntities (#18935)
This commit is contained in:
@@ -12,11 +12,11 @@ namespace Content.Shared.Tabletop.Events
|
||||
/// <summary>
|
||||
/// The UID of the entity being dragged.
|
||||
/// </summary>
|
||||
public EntityUid DraggedEntityUid;
|
||||
public NetEntity DraggedEntityUid;
|
||||
|
||||
public bool IsDragging;
|
||||
|
||||
public TabletopDraggingPlayerChangedEvent(EntityUid draggedEntityUid, bool isDragging)
|
||||
public TabletopDraggingPlayerChangedEvent(NetEntity draggedEntityUid, bool isDragging)
|
||||
{
|
||||
DraggedEntityUid = draggedEntityUid;
|
||||
IsDragging = isDragging;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Content.Shared.Tabletop.Events
|
||||
/// <summary>
|
||||
/// The UID of the entity being moved.
|
||||
/// </summary>
|
||||
public EntityUid MovedEntityUid { get; }
|
||||
public NetEntity MovedEntityUid { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The new coordinates of the entity being moved.
|
||||
@@ -24,9 +24,9 @@ namespace Content.Shared.Tabletop.Events
|
||||
/// <summary>
|
||||
/// The UID of the table the entity is being moved on.
|
||||
/// </summary>
|
||||
public EntityUid TableUid { get; }
|
||||
public NetEntity TableUid { get; }
|
||||
|
||||
public TabletopMoveEvent(EntityUid movedEntityUid, MapCoordinates coordinates, EntityUid tableUid)
|
||||
public TabletopMoveEvent(NetEntity movedEntityUid, MapCoordinates coordinates, NetEntity tableUid)
|
||||
{
|
||||
MovedEntityUid = movedEntityUid;
|
||||
Coordinates = coordinates;
|
||||
|
||||
@@ -8,12 +8,12 @@ namespace Content.Shared.Tabletop.Events
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class TabletopPlayEvent : EntityEventArgs
|
||||
{
|
||||
public EntityUid TableUid;
|
||||
public EntityUid CameraUid;
|
||||
public NetEntity TableUid;
|
||||
public NetEntity CameraUid;
|
||||
public string Title;
|
||||
public Vector2i Size;
|
||||
|
||||
public TabletopPlayEvent(EntityUid tableUid, EntityUid cameraUid, string title, Vector2i size)
|
||||
public TabletopPlayEvent(NetEntity tableUid, NetEntity cameraUid, string title, Vector2i size)
|
||||
{
|
||||
TableUid = tableUid;
|
||||
CameraUid = cameraUid;
|
||||
|
||||
@@ -11,9 +11,9 @@ namespace Content.Shared.Tabletop.Events
|
||||
/// <summary>
|
||||
/// The entity UID of the table associated with this tabletop game.
|
||||
/// </summary>
|
||||
public EntityUid TableUid;
|
||||
public NetEntity TableUid;
|
||||
|
||||
public TabletopStopPlayingEvent(EntityUid tableUid)
|
||||
public TabletopStopPlayingEvent(NetEntity tableUid)
|
||||
{
|
||||
TableUid = tableUid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user