12345678910111213141516171819202122232425262728293031323334353637 |
- using StageController.M3H;
- using System;
- namespace StageController
- {
- /// <summary>
- /// 4.4 电脑控制全局指令
- /// </summary>
- public class CommandGlobal : CommandBase
- {
- private ControlType m_type;
- public CommandGlobal(ControlType type)
- {
- m_type = type;
- }
- public override string Make()
- {
- return "@C" + Enum.GetName(typeof(ControlType), m_type) + "!";
- }
- public override bool Parse(string response)
- {
- bool retVal = false;
- string tmpRes = "@C" + m_type + "!";
- if (tmpRes.CompareTo(response) == 0)
- {
- retVal = true;
- }
- return retVal;
- }
- }
- }
|