private static string GetParaStrValue(int id, int strIndex, int index) { string value = GetParaStr(id, index); if (string.IsNullOrEmpty(value) == true) { return(string.Empty); } return(NdUtil.GetStrValue(value, index)); }
/// <summary> /// 获取指定的房间地图数据 /// </summary> private string GetMapValue(int layer, int Unit) { string strlayer = NdUtil.GetStrValue(map, layer); return(strlayer.Substring(Unit, 1)); }
/// <summary> /// 获取指定的房间地图数据 /// </summary> public int GetDownMapValue(int layer, int Unit) { string strlayer = NdUtil.GetStrValue(map, layer); return(int.Parse(strlayer.Substring(Unit, 1))); }
/// <summary> /// 获取指定的房间地图数据 /// </summary> public int GetShapeValue(int layer, int Unit) { string strlayer = NdUtil.GetStrValue(shape, layer); return(int.Parse(strlayer.Substring(Unit, 1))); }