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; } }
private void Messages_MessageReceived(object sender, XPMessageEventArgs e) { if (e.MessageId == TestData.XPNET_LOGTEST_PLUGIN_IDENT) { Api.Log.Log("IDENT: LoggingTestPlugin"); } }
private void Messages_PlaneCrashed(object sender, XPMessageEventArgs e) { var dr = Api.Data.GetInt(TestData.Name($"msg/plane_crashed/count")); ++dr.Value; }
private void Messages_MessageReceived(object sender, XPMessageEventArgs e) { var dr = Api.Data.GetInt(TestData.Name($"msg/{e.MessageId}/count")); ++dr.Value; }