protected override void OnFreshViewWithData() { base.OnFreshViewWithData(); _curData = Data as PludoMapItemData; if (_curData != null) { DataId = _curData.MapDataId; Id = _curData.MapDataId.ToString(); name = Id; EnumMapType = (EnumMapItemType)_curData.MapItemType; } }
/// <summary> /// 校验地图类型 /// </summary> /// <param name="checkType">检测类型</param> /// <returns></returns> public bool CheckMapState(EnumMapItemType checkType) { return((_itemType & (int)checkType) == (int)checkType); }