public ProductResponse( string productId, string productCodeInProductionSystem, GuiInformation guiInformation, PackagePrice price, ExpectedDelivery expectedDelivery) { ExpectedDelivery = expectedDelivery; Price = price; GuiInformation = guiInformation; ProductCodeInProductionSystem = productCodeInProductionSystem; ProductId = productId; }
private void OnPlayerJoin(PlayerJoinedEvent evt) { Player player = evt.Player; GameObject gobj = new GameObject(); gobj.name = "GUI for player " + player.Name; gobj.AddComponent <GuiInformation>(); GuiInformation ginfo = gobj.GetComponent <GuiInformation>(); this.guiLookup.Add(player, new KeyValuePair <GameObject, GuiInformation>(gobj, ginfo)); ginfo.Player = player; this.joinedPlayers.Add(player); }
private void OnUnitEntity(EntityAddedEvent evt) { UnitInfoModule uinfo = evt.AddedXmasEntity.Module <UnitInfoModule>(); GuiInformation guiinfo = this.GuiLoader.GetGuiInfo(uinfo.Controller); UnitEntity unitEnt = (UnitEntity)evt.AddedXmasEntity; TilePosition posinfo = (TilePosition)evt.AddedPosition; Point pos = posinfo.Point; Transform unitobj = Factory.CreateUnit(unitEnt, posinfo); UnitInformation info = unitobj.gameObject.GetComponent <UnitInformation>(); info.ControllerInfo = guiinfo; }