コード例 #1
0
 public static void WriteMethodCall(this RailBitBuffer buffer, MethodCall pack)
 {
     buffer.WriteInt(pack.Id.InternalValue);
     buffer.EncodeEventArg(pack.Instance);
     buffer.WriteInt(pack.Arguments.Count);
     foreach (Argument arg in pack.Arguments)
     {
         buffer.EncodeEventArg(arg);
     }
 }