コード例 #1
0
 protected override void SendRequestOrObservation(string destCh, ApianMessage msg)
 {
     if ((msg.MsgType == ApianMessage.CliObservation) &&
         (ApianGroup?.GroupCreatorId != GameNet.LocalP2pId()))
     {
         Logger.Debug($"SendRequestOrObservation() We are not server, so don't send observations.");
         return;
     }
     base.SendRequestOrObservation(destCh, msg); // let this filter it too
 }
コード例 #2
0
ファイル: ApianMessages.cs プロジェクト: jimkberry/Apian
 public static string GetSubType(ApianMessage msg)
 {
     return(subTypeExtractor[msg.MsgType](msg));
 }