remove special case in World for InitOreDensity()

This commit is contained in:
Chris Forbes
2010-02-09 13:23:09 +13:00
parent 758af41dc1
commit 7729d31b6a
2 changed files with 7 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ namespace OpenRa.Traits
public object Create(Actor self) { return new OreGrowth(); }
}
class OreGrowth : ITick
class OreGrowth : ITick, ILoadWorldHook
{
int remainingTicks;
@@ -38,5 +38,10 @@ namespace OpenRa.Traits
remainingTicks = (int)(info.Interval * 60 * 25);
}
}
public void WorldLoaded(World w)
{
Ore.InitOreDensity(w.Map);
}
}
}