public void GetData(IRequestIdManager requestManager) { SetRequestClass("StartupService"); SetRequestMethod(GetRequestedMethod()); SetData(new JArray()); SetId(requestManager.GetNextId); }
public void StartProduction(IRequestIdManager requestManager, int buildingId, int productLenght = 1) { SetRequestClass("CityProductionService"); SetRequestMethod(GetRequestedMethod()); SetData(new JArray() { buildingId, productLenght }); SetId(requestManager.GetNextId); }
public void PickupProduction(IRequestIdManager requestManager, params int[] buildingId) { SetRequestClass("CityProductionService"); SetRequestMethod(GetRequestedMethod()); SetData(new JArray() { new JArray() { buildingId } }); SetId(requestManager.GetNextId); }