Пример #1
0
 public void GetData(IRequestIdManager requestManager)
 {
     SetRequestClass("StartupService");
     SetRequestMethod(GetRequestedMethod());
     SetData(new JArray());
     SetId(requestManager.GetNextId);
 }
Пример #2
0
 public void StartProduction(IRequestIdManager requestManager, int buildingId, int productLenght = 1)
 {
     SetRequestClass("CityProductionService");
     SetRequestMethod(GetRequestedMethod());
     SetData(new JArray()
     {
         buildingId, productLenght
     });
     SetId(requestManager.GetNextId);
 }
Пример #3
0
 public void PickupProduction(IRequestIdManager requestManager, params int[] buildingId)
 {
     SetRequestClass("CityProductionService");
     SetRequestMethod(GetRequestedMethod());
     SetData(new JArray()
     {
         new JArray()
         {
             buildingId
         }
     });
     SetId(requestManager.GetNextId);
 }