// season: summer / winter public SightseeingPackage(int days, string cityName, string title, string description, string prefabName, float moneyCost, float co2Cost, float culturePoints) { this.days = days; this.cityName = cityName; this.title = title; this.description = description; this.prefabName = prefabName; this.culturePoints = culturePoints; //moneycost without overnight accommodation costs this.resources = DictionaryStripper.GetResourcesDictionary(moneyCost, co2Cost); }
public void SendCreateLobbyCommand(string lobbyId, float daysWeight, float cultureWeight, Dictionary <Type, float> lobbyWeights) { DictionaryStripper.ExtractWeightDic(lobbyWeights, out string[] resNames, out float[] weights); SendAndHandle(new CreateLobbyMessageable(lobbyId, daysWeight, cultureWeight, resNames, weights)); }
private void OnResourceUpdate() { NotifyObservers(Resources); DictionaryStripper.ExtractResourcesDic(Resources, out string[] resNames, out float[] rawValues); GameManager.Instance.NetworkPlayer?.SendOnly(new ScoreUpdateRequestMessageable(playerId, TimeManager.Instance.GetRemainingDays(), CulturePoints, resNames, rawValues)); }