Content update for NetEntities (#18935)

This commit is contained in:
metalgearsloth
2023-09-11 09:42:41 +10:00
committed by GitHub
parent 389c8d1a2c
commit 5a0fc68be2
526 changed files with 3058 additions and 2215 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}