public void InternalTick()
{
if (GlobalLink != null) GlobalLink.Tick(this);
if (EODHost != null) EODHost.Tick();
Context.Clock.Tick();
GlobalState[6] = (short)Context.Clock.Seconds;
GlobalState[5] = (short)Context.Clock.Minutes;
GlobalState[0] = (short)Context.Clock.Hours;
GlobalState[4] = (short)Context.Clock.TimeOfDay;
Context.Architecture.Tick();
var entCpy = Entities.ToArray();
foreach (var obj in entCpy)
{
Context.NextRandom(1);
obj.Tick(); //run object specific tick behaviors, like lockout count decrement
}
//Context.SetToNextCache.VerifyPositions(); use only for debug!
}