42 lines
1.3 KiB
C#

/*
* @Author: 白哉
* @Description:
* @Date: 2025年04月03日 星期四 11:04:31
* @Modify:
*/
namespace RuntimeData
{
// 1. 玩家不能学科技
// 2. 玩家不能选英雄
// 3. AI不能学科技
// 4. AI不能建设升级城市
// 5. AI每3回合动1次
public enum MatchLimitType
{
None = 0,
PlayerCannotLearnTech = 1, // 玩家不能学科技
PlayerCannotSelectHero = 2, // 玩家不能选英雄
AICannotLearnTech = 3, // AI不能学科技
AICannotBuildOrUpgradeCity = 4, // AI不能建设升级城市
AIMove3RoundsPerAction = 5, // AI每3回合动1次
}
public class MatchLimitData
{
public static string GetMatchLimitTypeDesc(MatchLimitType limitType)
{
return limitType switch
{
MatchLimitType.PlayerCannotLearnTech => "玩家不能学科技",
MatchLimitType.PlayerCannotSelectHero => "玩家不能选英雄",
MatchLimitType.AICannotLearnTech => "AI不能学科技",
MatchLimitType.AICannotBuildOrUpgradeCity => "AI不能建设升级城市",
MatchLimitType.AIMove3RoundsPerAction => "AI每3回合动1次",
_ => "未知限制"
};
}
}
}