Exemple #1
0
 public override void BuildPacket()
 {
     base.BuildPacket();
     var request = new NumberMotionOfCategoryRequest()
                       {
                           type = Type
                       };
     byte[] packetData;
     using (var stream = new MemoryStream())
     {
         Serializer.Serialize(stream, request);
         packetData = stream.ToArray();
     }
     GlobalVariables.CountRequest++;
     Packet = StoreConnection.BuildServerPacket(packetData.Length + 16, (int)MessageType.Type.NUMBER_MOTION_OF_CATEGORY, 2,
                                                packetData, GlobalVariables.CountRequest);
 }
Exemple #2
0
 public GetNumberMotionOfCategoryStoreRequest(NumberMotionOfCategoryRequest.Type type)
 {
     Type = type;
     RequestKey = GetType() + type.ToString();
 }