public void UpdateItems(IAtlas atlas, TilesetTable table)
{
if (atlas.NewAutoupdateables != null)
{
CurrentUpdateRequests.AddRange(atlas.NewAutoupdateables);
atlas.NewAutoupdateables.Clear();
}
foreach (IAutoupdateableGameActor actor in CurrentUpdateRequests)
{
actor.Update(atlas, table);
if (actor.NextUpdateAfter > 0)
Register(actor, actor.NextUpdateAfter);
}
CurrentUpdateRequests.Clear();
}