/// <summary> /// Initialise le contrôleur. /// </summary> void SetupControler() { if (!SpectateMode) { EntityHero hero = new EntityHero(); hero.Position = new Vector2(10, 10); hero.Role = EntityHeroRole.Fighter; hero.UniquePassive = EntityUniquePassives.Unshakable; hero.Type = EntityType.Player | EntityType.Team1; m_controler = new HumanControler(this, hero); m_server.GetSrvScene().AddHero(GameServer.__INTERNAl_CLIENT_ID, hero, m_controler); } else { m_controler = new HumanControler(this, null); } m_controler.IsInSpectateMode = SpectateMode; }
/// <summary> /// Crée une nouvelle instance de MapEditorControler associé à la map donnée. /// </summary> public MapEditorControler(HumanControler baseControler) { m_baseControler = baseControler; m_minimap = new Minimap(baseControler.MapRdr); m_console = new DeveloperConsole(baseControler.EnhancedGuiManager); }