You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
838 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Sog;
using Google.Protobuf.WellKnownTypes;
namespace SMConsole
{
public class MsgHandler
{
public void HandlerMsg(RequestPacket packet)
{
switch (packet.MsgID)
{
case (int)SMMsgID.ConsoleCommandRes:
OnConsoleCommandRes(packet);
break;
default:
TraceLog.Error("MsgHandler.HandlerMsg unknow msgId {0}", packet.MsgID);
break;
}
}
private void OnConsoleCommandRes(RequestPacket packet)
{
SMConsoleCommandRes res = (SMConsoleCommandRes)packet.Message;
SMConsoleInput.Instance.AckCommand(res);
}
}
}