public void TestAreaAction() { TMAction action = new TMAction(2, 3, 4); uint actionID = action.ToCalculatedActionID(); TMAction parsedAction = TMAction.Parse(actionID); Assert.AreEqual(action.AreaActionID, parsedAction.AreaActionID); Assert.AreEqual(action.AreaID, parsedAction.AreaID); Assert.AreEqual(action.PluginID, parsedAction.PluginID); Assert.AreEqual(action.RowActionID, parsedAction.RowActionID); Assert.AreEqual(action.RowIndex, parsedAction.RowIndex); }
private void Callbacks_PlayerManialinkPageAnswer(object sender, Communication.EventArguments.Callbacks.PlayerManialinkPageAnswerEventArgs e) { if (e.Answer < 0) { return; } TMAction action = TMAction.Parse(Convert.ToUInt32(e.Answer)); if (action == null) { return; } if (action.PluginID == ID) { OnManiaLinkPageAnswer(e.Login, e.PlayerID, action); } }