Unnamed
public text v1 · immutable var ms = 1000;
AddTimer(delegate {
worldState.Add(current, Players);
try
{
foreach (Player p in worldState[current])
{
if (p.last != 0 && p.realName != "")
{
Console.WriteLine(current + "NOW: [ " + p.realName + " is at X: " + p.X + " Y: " + p.Y + " ] ");
}
}
foreach (Player p in worldState[current-1000])
{
if (p.last != 0 && p.realName != "")
{
Console.WriteLine(current - 1000 + "PAST: [ " + p.realName + " is at X: " + p.X + " Y: " + p.Y + " ] ");
}
}
}
catch (Exception ex)
{
//
// An exception will be thrown.
//
Console.WriteLine(ex);
}
current = current + ms;
}, ms);