Ejemplo n.º 1
0
        public static AssembleWarshipClass GetWarshipClassDataByKey(int classID)
        {
            AssembleWarshipClass result = null;

            AssembleWarshipClassDic.TryGetValue(classID, out result);
            if (result == null)
            {
                Debug.LogError("GetWarshipClassData Error! shipID=" + classID);
            }
            return(result);
        }
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);
            }
        }