/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnPostCreate2(bool)"/>.</summary> protected override void OnPostCreate2(bool loaded) { base.OnPostCreate2(loaded); GameWorld gameWorld = Parent as GameWorld; if (gameWorld != null) { gameWorld.DoActionsAfterMapCreated(); } UpdateWindSpeedSettings(); }
/// <summary>Overridden from <see cref="Engine.EntitySystem.Entity.OnPostCreate2(bool)"/>.</summary> protected override void OnPostCreate2(bool loaded) { base.OnPostCreate2(loaded); GameWorld gameWorld = Parent as GameWorld; if (gameWorld != null) { gameWorld.DoActionsAfterMapCreated(); } UpdateWindSpeedSettings(); // VB: create player and VBFactionManager if (GameMap.Instance.GameType == GameMap.GameTypes.VanBuren && EntitySystemWorld.Instance.IsServer() || EntitySystemWorld.Instance.IsSingle()) { if (VBFactionManager.Instance == null) { VBFactionManager manager = (VBFactionManager)Entities.Instance.Create("VBFactionManager", this); manager.PostCreate(); } } }