Ejemplo n.º 1
0
        public static AssembleWarship GetWarshipDataByKey(int shipID)
        {
            AssembleWarship ship = null;

            AssembleWarshipDic.TryGetValue(shipID, out ship);
            if (ship == null)
            {
                Debug.LogError("GetWarshipData Error! shipID=" + shipID);
            }
            return(ship);
        }
Ejemplo n.º 2
0
        public AssembleShipTypePresetData(int warShipID)
        {
            _metaData = AssembleModule.GetWarshipDataByKey(warShipID);

            if (_metaData != null)
            {
                WarshipID    = _metaData.WarShipID;
                shipCostBase = AssembleModule.GetShipMaterialCost(_metaData.WarShipID);
                _metaClass   = AssembleModule.GetWarshipClassDataByKey(_metaData.Class);
                partConfig   = AssembleModule.GetShipPartConfigData(warShipID);
            }
        }
Ejemplo n.º 3
0
 public override void Construction()
 {
     AllAssembleWarshipList = new List <AssembleWarship>();
     for (int i = 0; i < 2; i++)
     {
         AssembleWarship ship = new AssembleWarship();
         ship.WarShipID     = i;
         ship.Class         = i;
         ship.ShipScale     = (ushort)i;
         ship.MaterialCost  = "";
         ship.BaseTimeCost  = (ushort)i;
         ship.HPBase        = i;
         ship.SpeedBase     = i;
         ship.FirePowerBase = i;
         ship.DetectBase    = i;
         ship.CrewMax       = (ushort)i;
         ship.StorageBase   = (ushort)i;
         AllAssembleWarshipList.Add(ship);
     }
 }