Пример #1
0
        private void Messages_MessageReceived(object sender, XPMessageEventArgs e)
        {
            if (e.MessageId != TestData.XPNET_CMDTEST_PLUGIN_STEP)
            {
                return;
            }

            switch (++m_step)
            {
            case 1:
                m_headingUpCommand.Begin();     // BEGIN
                break;

            case 2:
                m_headingUpCommand.End();       // END
                break;

            case 3:
                m_headingUpCommand.InvokeOnce();      // ONCE
                break;

            default:
                // No programmed action.
                break;
            }
        }
Пример #2
0
 private void Messages_MessageReceived(object sender, XPMessageEventArgs e)
 {
     if (e.MessageId == TestData.XPNET_LOGTEST_PLUGIN_IDENT)
     {
         Api.Log.Log("IDENT: LoggingTestPlugin");
     }
 }
Пример #3
0
        private void Messages_PlaneCrashed(object sender, XPMessageEventArgs e)
        {
            var dr = Api.Data.GetInt(TestData.Name($"msg/plane_crashed/count"));

            ++dr.Value;
        }
Пример #4
0
        private void Messages_MessageReceived(object sender, XPMessageEventArgs e)
        {
            var dr = Api.Data.GetInt(TestData.Name($"msg/{e.MessageId}/count"));

            ++dr.Value;
        }