public void Init(Message message, MessagingController parent) { Message = message; Parent = parent; View.SetType(message.Type); View.User.Value = message.User; }
public CoreGameScreenController(CoreGameScreen view, Network.Network network, IClientDataService dataService, IKernel kernel, LotConnectionRegulator joinLotRegulator) { this.Screen = view; this.Network = network; this.DataService = dataService; this.Chat = new MessagingController(this, view.MessageTray, network, dataService); this.JoinLotRegulator = joinLotRegulator; this.RoommateProtocol = new RoommateRequestController(this, network, dataService); joinLotRegulator.OnTransition += JoinLotRegulator_OnTransition; var shard = Network.MyShard; Terrain = kernel.Get <TerrainController>(new ConstructorArgument("parent", this)); view.Initialize(shard.Name, int.Parse(shard.Map), Terrain); }