Re-organize all projects (#4166)
This commit is contained in:
38
Content.Shared/Portal/Components/SharedPortalComponent.cs
Normal file
38
Content.Shared/Portal/Components/SharedPortalComponent.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Physics;
|
||||
using Robust.Shared.Serialization;
|
||||
|
||||
namespace Content.Shared.Portal.Components
|
||||
{
|
||||
public abstract class SharedPortalComponent : Component
|
||||
{
|
||||
public override string Name => "Portal";
|
||||
|
||||
public override void OnAdd()
|
||||
{
|
||||
base.OnAdd();
|
||||
|
||||
if (Owner.TryGetComponent<IPhysBody>(out var physics))
|
||||
{
|
||||
physics.Hard = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum PortalVisuals
|
||||
{
|
||||
State
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public enum PortalState
|
||||
{
|
||||
RecentlyTeleported,
|
||||
Pending,
|
||||
UnableToTeleport,
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user