47 lines
1.6 KiB
C#
47 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Cal.DataTable
|
|
{
|
|
public partial class MapMonsterConfigCategory
|
|
{
|
|
public MapMonsterConfig GetManulEquipMapMonster(int layer)
|
|
{
|
|
long id=layer switch
|
|
{
|
|
1 => MapMonsterConfigId.ManulEquip1,
|
|
2 => MapMonsterConfigId.ManulEquip2,
|
|
3 => MapMonsterConfigId.ManulEquip3,
|
|
4 => MapMonsterConfigId.ManulEquip4,
|
|
_ => throw new Exception($"没有更多的层数:{layer}"),
|
|
};
|
|
return Get(id);
|
|
}
|
|
public MapMonsterConfig GetSpaceTravelMapMonster(int layer)
|
|
{
|
|
long id= layer switch
|
|
{
|
|
1 => MapMonsterConfigId.SpaceTravel1,
|
|
2 => MapMonsterConfigId.SpaceTravel2,
|
|
3 => MapMonsterConfigId.SpaceTravel3,
|
|
4 => MapMonsterConfigId.SpaceTravel4,
|
|
5 => MapMonsterConfigId.SpaceTravel5,
|
|
6 => MapMonsterConfigId.SpaceTravel6,
|
|
_ => throw new Exception($"没有更多的层数:{layer}"),
|
|
};
|
|
return Get(id);
|
|
}
|
|
public MapMonsterConfig GetStarSoulCopyMapMonster(int layer)
|
|
{
|
|
long id= layer switch
|
|
{
|
|
1 => MapMonsterConfigId.StarSoul1,
|
|
2 => MapMonsterConfigId.StarSoul2,
|
|
3 => MapMonsterConfigId.StarSoul3,
|
|
_ => throw new Exception($"没有更多的层数:{layer}"),
|
|
};
|
|
return Get(id);
|
|
}
|
|
}
|
|
}
|