This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from xNexus-ACS/dev
CursedGenerator, More Player API, More Round API and ShowHint at CursedFacility
- Loading branch information
Showing
5 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using MapGeneration.Distributors; | ||
|
||
namespace CursedMod.Features.Wrappers.Facility; | ||
|
||
public static class CursedGenerator | ||
{ | ||
public static Scp079Generator Base { get; private set; } | ||
|
||
public static bool IsEngaged | ||
{ | ||
get => Base.Engaged; | ||
set => Base.Engaged = value; | ||
} | ||
|
||
public static bool IsActivating | ||
{ | ||
get => Base.Activating; | ||
set => Base.Activating = value; | ||
} | ||
|
||
public static int RemainingTime => Base.RemainingTime; | ||
public static float DropdownSpeed => Base.DropdownSpeed; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,52 @@ | ||
namespace CursedMod.Features.Wrappers.Round; | ||
using System; | ||
using GameCore; | ||
using RoundRestarting; | ||
|
||
namespace CursedMod.Features.Wrappers.Round; | ||
|
||
public static class CursedRound | ||
{ | ||
public static void ForceStart() => PluginAPI.Core.Round.Start(); | ||
|
||
public static void ForceEnd() => PluginAPI.Core.Round.End(); | ||
|
||
public static void ForceRestart(bool fastRestart) => PluginAPI.Core.Round.Restart(fastRestart); | ||
|
||
public static void RestartSilently() => PluginAPI.Core.Round.RestartSilently(); | ||
|
||
public static bool IsRoundStarted => RoundStart.RoundStarted; | ||
|
||
public static bool IsRoundLocked | ||
{ | ||
get => PluginAPI.Core.Round.IsLocked; | ||
set => PluginAPI.Core.Round.IsLocked = value; | ||
} | ||
|
||
public static bool IsLobbyLocked | ||
{ | ||
get => RoundStart.LobbyLock; | ||
set => RoundStart.LobbyLock = value; | ||
} | ||
|
||
public static int ClassDEscaped | ||
{ | ||
get => RoundSummary.EscapedClassD; | ||
set => RoundSummary.EscapedClassD = value; | ||
} | ||
|
||
public static int ScientistEscaped | ||
{ | ||
get => RoundSummary.EscapedScientists; | ||
set => RoundSummary.EscapedScientists = value; | ||
} | ||
|
||
public static int ZombiesConverted | ||
{ | ||
get => RoundSummary.ChangedIntoZombies; | ||
set => RoundSummary.ChangedIntoZombies = value; | ||
} | ||
|
||
public static int UpTime => RoundRestart.UptimeRounds; | ||
|
||
public static TimeSpan RoundTime => RoundStart.RoundLength; | ||
} |