Re-organize all projects (#4166)
This commit is contained in:
19
Content.Shared/Ghost/GhostWarpToLocationRequestMessage.cs
Normal file
19
Content.Shared/Ghost/GhostWarpToLocationRequestMessage.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ghost
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public class GhostWarpToLocationRequestMessage : ComponentMessage
|
||||
{
|
||||
public string Name { get; }
|
||||
|
||||
public GhostWarpToLocationRequestMessage(string name)
|
||||
{
|
||||
Name = name;
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
18
Content.Shared/Ghost/GhostWarpToTargetRequestMessage.cs
Normal file
18
Content.Shared/Ghost/GhostWarpToTargetRequestMessage.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ghost
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public class GhostWarpToTargetRequestMessage : ComponentMessage
|
||||
{
|
||||
public EntityUid Target { get; }
|
||||
|
||||
public GhostWarpToTargetRequestMessage(EntityUid target)
|
||||
{
|
||||
Target = target;
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
42
Content.Shared/Ghost/Roles/GhostRolesEuiMessages.cs
Normal file
42
Content.Shared/Ghost/Roles/GhostRolesEuiMessages.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Content.Shared.Eui;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ghost.Roles
|
||||
{
|
||||
[NetSerializable, Serializable]
|
||||
public struct GhostRoleInfo
|
||||
{
|
||||
public uint Identifier { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public class GhostRolesEuiState : EuiStateBase
|
||||
{
|
||||
public GhostRoleInfo[] GhostRoles { get; }
|
||||
|
||||
public GhostRolesEuiState(GhostRoleInfo[] ghostRoles)
|
||||
{
|
||||
GhostRoles = ghostRoles;
|
||||
}
|
||||
}
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public class GhostRoleTakeoverRequestMessage : EuiMessageBase
|
||||
{
|
||||
public uint Identifier { get; }
|
||||
|
||||
public GhostRoleTakeoverRequestMessage(uint identifier)
|
||||
{
|
||||
Identifier = identifier;
|
||||
}
|
||||
}
|
||||
|
||||
[NetSerializable, Serializable]
|
||||
public class GhostRoleWindowCloseMessage : EuiMessageBase
|
||||
{
|
||||
}
|
||||
}
|
||||
19
Content.Shared/Ghost/Roles/MakeGhostRoleEuiState.cs
Normal file
19
Content.Shared/Ghost/Roles/MakeGhostRoleEuiState.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Content.Shared.Eui;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ghost.Roles
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public class MakeGhostRoleEuiState : EuiStateBase
|
||||
{
|
||||
public MakeGhostRoleEuiState(EntityUid entityUid)
|
||||
{
|
||||
EntityUid = entityUid;
|
||||
}
|
||||
|
||||
public EntityUid EntityUid { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Content.Shared.Eui;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ghost.Roles
|
||||
{
|
||||
[Serializable, NetSerializable]
|
||||
public class MakeGhostRoleWindowClosedMessage : EuiMessageBase
|
||||
{
|
||||
}
|
||||
}
|
||||
20
Content.Shared/Ghost/Roles/SharedGhostRoleSystem.cs
Normal file
20
Content.Shared/Ghost/Roles/SharedGhostRoleSystem.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ghost.Roles
|
||||
{
|
||||
public abstract class SharedGhostRoleSystem : EntitySystem
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class GhostRole
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public EntityUid Id;
|
||||
}
|
||||
}
|
||||
87
Content.Shared/Ghost/SharedGhostComponent.cs
Normal file
87
Content.Shared/Ghost/SharedGhostComponent.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Shared.ActionBlocker;
|
||||
using Content.Shared.NetIDs;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Ghost
|
||||
{
|
||||
public class SharedGhostComponent : Component, IActionBlocker
|
||||
{
|
||||
public override string Name => "Ghost";
|
||||
public override uint? NetID => ContentNetIDs.GHOST;
|
||||
|
||||
public bool CanInteract() => false;
|
||||
public bool CanUse() => false;
|
||||
public bool CanThrow() => false;
|
||||
public bool CanDrop() => false;
|
||||
public bool CanPickup() => false;
|
||||
public bool CanEmote() => false;
|
||||
public bool CanAttack() => false;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class GhostComponentState : ComponentState
|
||||
{
|
||||
public bool CanReturnToBody { get; }
|
||||
|
||||
public GhostComponentState(bool canReturnToBody) : base(ContentNetIDs.GHOST)
|
||||
{
|
||||
CanReturnToBody = canReturnToBody;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class ReturnToBodyComponentMessage : ComponentMessage
|
||||
{
|
||||
public ReturnToBodyComponentMessage()
|
||||
{
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class GhostRequestWarpPointData : ComponentMessage
|
||||
{
|
||||
public GhostRequestWarpPointData()
|
||||
{
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class GhostRequestPlayerNameData : ComponentMessage
|
||||
{
|
||||
public GhostRequestPlayerNameData()
|
||||
{
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class GhostReplyWarpPointData : ComponentMessage
|
||||
{
|
||||
public List<string> WarpName;
|
||||
|
||||
public GhostReplyWarpPointData(List<string> warpName)
|
||||
{
|
||||
WarpName = warpName;
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class GhostReplyPlayerNameData : ComponentMessage
|
||||
{
|
||||
public Dictionary<EntityUid,string> PlayerNames;
|
||||
|
||||
public GhostReplyPlayerNameData(Dictionary<EntityUid, string> playerNameDict)
|
||||
{
|
||||
PlayerNames = playerNameDict;
|
||||
Directed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user