示例#1
0
 public ProductResponse(
     string productId,
     string productCodeInProductionSystem,
     GuiInformation guiInformation,
     PackagePrice price,
     ExpectedDelivery expectedDelivery)
 {
     ExpectedDelivery = expectedDelivery;
     Price            = price;
     GuiInformation   = guiInformation;
     ProductCodeInProductionSystem = productCodeInProductionSystem;
     ProductId = productId;
 }
示例#2
0
        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);
        }
示例#3
0
    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;
    }