点击或拖拽改变大小

RelationTypeAddRelation 方法

往原有关系组合中添加指定类型, 同时修改角色的各种关系人集合. 此处不进行能否添加的检查, 只进行添加, 替换, 或维持不变.

命名空间: GameData.Domains.Character.Relation
程序集: GameData (在 GameData.exe 中) 版本:1.0.0
语法
C#
public static ushort AddRelation(
	RelatedCharacters relatedChars,
	int relatedCharId,
	ushort oriTypes,
	ushort addingType
)

参数

relatedChars  RelatedCharacters
角色的各种关系人集合
relatedCharId  Int32
oriTypes  UInt16
已有关系类型组合
addingType  UInt16
单一目标类型, 调用者保证类型有效且不为 RelationType.General

返回值

UInt16
最终关系组合
参见