示例#1
0
文件: CSBiz.cs 项目: niuniuzhu/KOW
        public void ReportStateToCS(NetSessionBase session)
        {
            Protos.GS2CS_ReportState reportState = ProtoCreator.Q_GS2CS_ReportState();
            GSConfig config = GS.instance.config;

            reportState.GsInfo = new Protos.GSInfo
            {
                Id       = config.gsID,
                Name     = config.name,
                Ip       = config.externalIP,
                Port     = config.externalPort,
                Password = config.password,
                State    = (Protos.GSInfo.Types.State)GS.instance.state
            };
            session.Send(reportState);
        }
示例#2
0
 public ErrorCode OnGs2CsReportState(NetSessionBase session, IMessage message)
 {
     Protos.GS2CS_ReportState request = (Protos.GS2CS_ReportState)message;
     return(this.GStateReportHandler(session, request.GsInfo));
 }