public MessagingController(CoreGameScreenController game, UIMessageTray messageTray, Network.Network network, IClientDataService dataService) { this.Game = game; this.Tray = messageTray; this.Tray.SetController(this); this.Network = network; this.DataService = dataService; this.Network.CityClient.AddSubscriber(this); }
public RoommateRequestController(CoreGameScreenController game, Network.Network network, IClientDataService dataService) { this.Game = game; this.Network = network; this.DataService = dataService; this.Network.CityClient.AddSubscriber(this); Network.CityClient.Write(new ChangeRoommateRequest { Type = ChangeRoommateType.POLL, //we're ready to recieve any pending roommate requests }); }
public TerrainController(CoreGameScreenController parent, IClientDataService ds, Network.Network network, IRealestateDomain domain, PurchaseLotRegulator purchaseRegulator) { this.Parent = parent; this.DataService = ds; this.PurchaseRegulator = purchaseRegulator; Network = network; PurchaseRegulator.OnError += PurchaseRegulator_OnError; PurchaseRegulator.OnTransition += PurchaseRegulator_OnTransition; PurchaseRegulator.OnPurchased += PurchaseRegulator_OnPurchased; Realestate = domain.GetByShard(network.MyShard.Id); CurrentHoverLot = new Binding <Lot>() .WithMultiBinding(RefreshTooltip, "Lot_Price", "Lot_IsOnline", "Lot_Name", "Lot_NumOccupants", "Lot_LeaderID"); CurrentCity = new Binding <City>().WithMultiBinding(RefreshCity, "City_ReservedLotInfo", "City_SpotlightsVector"); }