Fix formatting

This commit is contained in:
js6pak committed 2022-12-20 14:36:31 +01:00
1 parent fac4103d70
commit 1fa684d843
4 files changed
+6 -7

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ namespace Impostor.Api.Games
void BanIp(IPAddress ipAddress);
/// <summary>
/// Syncs the internal <see cref="GameOptionsData" /> to all players.
/// Syncs the internal <see cref="IGameOptions" /> to all players.
/// Necessary to do if you modified it, otherwise it won't be used.
/// </summary>
/// <returns>A <see cref="ValueTask" /> representing the asynchronous operation.</returns>
@@ -2,5 +2,4 @@
public interface IInnerGameManager
{
}
@@ -36,7 +36,7 @@ namespace Impostor.Api.Net.Messages
FlagCache = typeof(MessageFlags)
.GetFields(BindingFlags.Public | BindingFlags.Static)
.Where(fi => fi.IsLiteral && !fi.IsInitOnly)
.ToDictionary(x => (byte) x.GetValue(null)!, y => y.Name);
.ToDictionary(x => (byte)x.GetValue(null)!, y => y.Name);
}
public static string FlagToString(byte flag)
@@ -4,6 +4,10 @@ namespace Impostor.Server.Net.Inner.Objects.GameManager.Logic.HideAndSeek;
internal class LogicGameFlowHnS : LogicGameFlow, ILogicGameFlowHnS
{
public float CurrentFinalHideTime { get; private set; }
public float CurrentHideTime { get; private set; }
public override void Deserialize(IMessageReader reader, bool initialState)
{
var num = reader.ReadSingle();
@@ -11,8 +15,4 @@ internal class LogicGameFlowHnS : LogicGameFlow, ILogicGameFlowHnS
CurrentFinalHideTime = reader.ReadSingle();
CurrentHideTime = num;
}
public float CurrentFinalHideTime { get; private set; }
public float CurrentHideTime { get; private set; }
}