mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Allow spawning in the Dleks map
Now with 100% less crash cascades on spawn attempts and it even includes working map data!
This commit is contained in:
1 parent
b5ea1d8864
commit
d640f90d88
4 files changed
+36
-1
No files matched your search
@@ -14,6 +14,7 @@ public abstract class MapData
|
||||
[MapTypes.Skeld] = new SkeldData(),
|
||||
[MapTypes.MiraHQ] = new MiraData(),
|
||||
[MapTypes.Polus] = new PolusData(),
|
||||
[MapTypes.Dleks] = new AprilData(),
|
||||
[MapTypes.Airship] = new AirshipData(),
|
||||
[MapTypes.Fungle] = new FungleData(),
|
||||
}.AsReadOnly();
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Impostor.Api.Net.Inner.Objects.ShipStatus
|
||||
{
|
||||
public interface IInnerDleksShipStatus : IInnerShipStatus
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net.Custom;
|
||||
using Impostor.Api.Net.Inner.Objects.ShipStatus;
|
||||
using Impostor.Server.Net.Inner.Objects.Systems;
|
||||
using Impostor.Server.Net.Inner.Objects.Systems.ShipStatus;
|
||||
using Impostor.Server.Net.State;
|
||||
|
||||
namespace Impostor.Server.Net.Inner.Objects.ShipStatus
|
||||
{
|
||||
internal class InnerDleksShipStatus : InnerShipStatus, IInnerDleksShipStatus
|
||||
{
|
||||
public InnerDleksShipStatus(ICustomMessageManager<ICustomRpc> customMessageManager, Game game) : base(customMessageManager, game, MapTypes.Dleks)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void AddSystems(Dictionary<SystemTypes, ISystemType> systems)
|
||||
{
|
||||
base.AddSystems(systems);
|
||||
|
||||
systems.Add(SystemTypes.Doors, new AutoDoorsSystemType(Doors));
|
||||
systems.Add(SystemTypes.Comms, new HudOverrideSystemType());
|
||||
systems.Add(SystemTypes.Security, new SecurityCameraSystemType());
|
||||
systems.Add(SystemTypes.Reactor, new ReactorSystemType());
|
||||
systems.Add(SystemTypes.LifeSupp, new LifeSuppSystemType());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -39,7 +39,7 @@ namespace Impostor.Server.Net.State
|
||||
[4] = typeof(InnerPlayerControl),
|
||||
[5] = typeof(InnerMiraShipStatus),
|
||||
[6] = typeof(InnerPolusShipStatus),
|
||||
[7] = typeof(InnerShipStatus),
|
||||
[7] = typeof(InnerDleksShipStatus),
|
||||
[8] = typeof(InnerAirshipStatus),
|
||||
[9] = typeof(InnerHideAndSeekManager),
|
||||
[10] = typeof(InnerNormalGameManager),
|
||||
|
||||
Reference in new issue
Block a user