示例#1
0
    public int GetAreaIdByRealPos(IntVector2 realPosXZ)
    {
        IntVector2 originPos = GetOriginPos(realPosXZ);

        //2.get no
        return(TownGenData.GetAreaId(originPos));
    }
示例#2
0
    public int GetLevelByRealPos(IntVector2 realPosXZ)
    {
        //1.get origin pos
        IntVector2 originPos = GetOriginPos(realPosXZ);
        //2.get no
        int areaId = TownGenData.GetAreaId(originPos);

        return(TownGenData.GetLevel(PickedLineIndex, PickedLevelIndex, areaId));
    }
示例#3
0
 public int GetLevelByLineIndex(int lineIndex)
 {
     return(TownGenData.GetLevel(PickedLevelIndex, lineIndex));
 }
示例#4
0
 public int GetLevelByAreaId(int areaId)
 {
     return(TownGenData.GetLevel(PickedLineIndex, PickedLevelIndex, areaId));
 }
示例#5
0
 public int GetTownAmountMax()
 {
     return(TownGenData.GetTownAmountMax());
 }