Exemplo n.º 1
0
        /// <summary>
        /// 获取建筑物数据
        /// </summary>
        /// <param name="id"></param>
        /// <param name="typeID"></param>
        /// <param name="teamID"></param>
        /// <returns></returns>
        private BuildModel GetBuildModel(int id, int typeID, int teamID)
        {
            //先从静态配置表里面 获取到英雄的数据
            BuildDataModel buildDataModel = BuildData.GetBuildDataModel(typeID);
            //构建英雄数据
            BuildModel buildModel = new BuildModel(id, typeID, teamID, buildDataModel.Name, buildDataModel.HP,
                                                   buildDataModel.Attack, buildDataModel.Defence, buildDataModel.AttackDistance, buildDataModel.IsAttack,
                                                   buildDataModel.IsRebirth, buildDataModel.RebirthTime);

            return(buildModel);
        }