PlayNotification() public méthode

public PlayNotification ( OpenRA.Ruleset rules, Player player, string type, string notification, string variant ) : bool
rules OpenRA.Ruleset
player Player
type string
notification string
variant string
Résultat bool
Exemple #1
0
        internal static void StartGame(string mapUID, bool isShellmap)
        {
            BeforeGameStart();

            var map = modData.PrepareMap(mapUID);

            viewport           = new Viewport(new int2(Renderer.Resolution), map.Bounds, Renderer);
            orderManager.world = new World(modData.Manifest, map, orderManager, isShellmap);
            worldRenderer      = new WorldRenderer(orderManager.world);

            if (orderManager.GameStarted)
            {
                return;
            }
            Ui.SelectedWidget = null;

            orderManager.LocalFrameNumber = 0;
            orderManager.LastTickTime     = Environment.TickCount;
            orderManager.StartGame();
            worldRenderer.RefreshPalette();

            if (!isShellmap)
            {
                Sound.PlayNotification(null, "Speech", "StartGame", null);
            }
        }
Exemple #2
0
        internal static void StartGame(string mapUID, bool isShellmap)
        {
            BeforeGameStart();

            var map = modData.PrepareMap(mapUID);

            orderManager.world = new World(modData.Manifest, map, orderManager, isShellmap);
            worldRenderer      = new WorldRenderer(orderManager.world);
            orderManager.world.LoadComplete(worldRenderer);

            if (orderManager.GameStarted)
            {
                return;
            }

            Ui.MouseFocusWidget    = null;
            Ui.KeyboardFocusWidget = null;

            orderManager.LocalFrameNumber = 0;
            orderManager.LastTickTime     = Environment.TickCount;
            orderManager.StartGame();
            worldRenderer.RefreshPalette();

            if (!isShellmap)
            {
                Sound.PlayNotification(null, "Speech", "StartGame", null);
            }
        }