OnMessage() public method

public OnMessage ( PipeMessage p_Message ) : void
p_Message Statman.Network.PipeMessage
return void
示例#1
0
        static MainApp()
        {
            // Check for updates on start.
            CheckForUpdates = true;

            // Initialize our main loop at 30Hz.
            Loop = new MainLoop(30);

            // Initialize the engine manager.
            EngineManager = new EngineManager();
            RegisterEngines();

            // Initialize the named pipe server.
            Pipeman = new PipemanServer("Statman_IPC");
            Pipeman.ClientMessage += (p_Connection, p_Message) => EngineManager.OnMessage(p_Message);
            Pipeman.Start();
        }
示例#2
0
        static MainApp()
        {
            // Check for updates on start.
            CheckForUpdates = true;

            // Initialize our main loop at 30Hz.
            Loop = new MainLoop(30);

            // Initialize the engine manager.
            EngineManager = new EngineManager();
            RegisterEngines();

            // Initialize the named pipe server.
            Pipeman = new PipemanServer("Statman_IPC");
            Pipeman.ClientMessage += (p_Connection, p_Message) => EngineManager.OnMessage(p_Message);
            Pipeman.Start();
        }