(client) feat:添加设置类,子弹添加敌我识别; chore:修改了右键菜单的初始化方式为独立创建,加载定义报错提供更多信息,动画加载出错也返回默认序列。

This commit is contained in:
m0_75251201
2025-08-19 14:36:22 +08:00
parent f67aca0804
commit f4cd5f4a86
57 changed files with 1000 additions and 788 deletions

View File

@ -26,7 +26,14 @@ namespace Managers
{
return _affiliations[defName].defName;
}
public Relation GetRelation(AffiliationDef affiliation1, AffiliationDef affiliation2)
{
if (affiliation1 == null || affiliation2 == null)
{
return Relation.Neutral; // 如果任一阵营不存在,返回中立关系
}
return GetRelation(affiliation1.defName, affiliation2.defName);
}
public Relation GetRelation(string factionName1, string factionName2)
{
// 如果查询的是同一个派系,默认是友好关系