Switches to Kestrel (#102)

This commit is contained in:
Kamron Batman 2020-04-12 20:57:48 -07:00 • committed by GitHub
parent 70fddfebde
commit 2c0d97cd36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
141 changed files with 1040 additions and 1679 deletions

View file

@ -20,9 +20,9 @@ namespace Server
{
m_LevelOverride = value;
for (int i = 0; i < NetState.Instances.Count; ++i)
for (int i = 0; i < TcpServer.Instances.Count; ++i)
{
NetState ns = NetState.Instances[i];
NetState ns = TcpServer.Instances[i];
Mobile m = ns.Mobile;
m?.CheckLightLevels(false);
@ -69,12 +69,12 @@ namespace Server
Clock.GetTime(from.Map, from.X, from.Y, out int hours, out int minutes);
/* OSI times:
*
*
* Midnight -> 3:59 AM : Night
* 4:00 AM -> 11:59 PM : Day
*
*
* RunUO times:
*
*
* 10:00 PM -> 11:59 PM : Scale to night
* Midnight -> 3:59 AM : Night
* 4:00 AM -> 5:59 AM : Scale to day
@ -102,9 +102,9 @@ namespace Server
protected override void OnTick()
{
for (int i = 0; i < NetState.Instances.Count; ++i)
for (int i = 0; i < TcpServer.Instances.Count; ++i)
{
NetState ns = NetState.Instances[i];
NetState ns = TcpServer.Instances[i];
Mobile m = ns.Mobile;
m?.CheckLightLevels(false);
@ -130,4 +130,4 @@ namespace Server
}
}
}
}
}