Exemple #1
0
    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));
    }
Exemple #2
0
    /// <summary>
    /// 获取指定的房间地图数据
    /// </summary>
    private string GetMapValue(int layer, int Unit)
    {
        string strlayer = NdUtil.GetStrValue(map, layer);

        return(strlayer.Substring(Unit, 1));
    }
Exemple #3
0
    /// <summary>
    /// 获取指定的房间地图数据
    /// </summary>
    public int GetDownMapValue(int layer, int Unit)
    {
        string strlayer = NdUtil.GetStrValue(map, layer);

        return(int.Parse(strlayer.Substring(Unit, 1)));
    }
Exemple #4
0
    /// <summary>
    /// 获取指定的房间地图数据
    /// </summary>
    public int GetShapeValue(int layer, int Unit)
    {
        string strlayer = NdUtil.GetStrValue(shape, layer);

        return(int.Parse(strlayer.Substring(Unit, 1)));
    }