Exemple #1
0
 public TemplateType(ushort id, string name, int iconWidth, int iconHeight, TheaterType[] theaters, TemplateTypeFlag flag)
 {
     ID         = id;
     Name       = name;
     IconWidth  = iconWidth;
     IconHeight = iconHeight;
     Theaters   = theaters;
     Flag       = flag;
 }
 public TerrainType(sbyte id, string name, TheaterType[] theaters, bool[,] occupyMask, bool isTransformable, TemplateTypeFlag templateType)
 {
     ID              = id;
     Name            = name;
     Theaters        = theaters;
     OccupyMask      = occupyMask;
     IsTransformable = isTransformable;
     TemplateType    = templateType;
 }
 public TerrainType(sbyte id, string name, TheaterType[] theaters, bool[,] occupyMask, TemplateTypeFlag templateType)
     : this(id, name, theaters, occupyMask, false, templateType)
 {
 }
Exemple #4
0
        /// <summary>
        /// 设置默认模板
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public JsonResult SetDefault(int Id, TemplateTypeFlag type)
        {
            var result = _templateContract.SetDefault(Id, TemplateFlag.Product, type);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }