Make latejoining not hardcoded to presets (#2028)

* Make latejoining not hardcoded to presets

* Applied feedback

* Build error fix

* Applied more feedback

Co-authored-by: David Tan <>
This commit is contained in:
DTanxxx
2020-09-07 22:33:18 +12:00
committed by GitHub
parent f96f286ca4
commit 47554f99f0
5 changed files with 31 additions and 1 deletions

View File

@@ -411,6 +411,12 @@ namespace Content.Server.GameTicking
_netManager.ServerSendToAll(GetStatusSingle(player, status));
}
public void ToggleDisallowLateJoin(bool disallowLateJoin)
{
DisallowLateJoin = disallowLateJoin;
UpdateLateJoinStatus();
}
public T AddGameRule<T>() where T : GameRule, new()
{
var instance = _dynamicTypeFactory.CreateInstance<T>();