本文整理汇总了C#中ICharacter.Send方法的典型用法代码示例。如果您正苦于以下问题:C# ICharacter.Send方法的具体用法?C# ICharacter.Send怎么用?C# ICharacter.Send使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICharacter
的用法示例。
在下文中一共展示了ICharacter.Send方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SendOutOfRange
/// <summary>
/// </summary>
/// <param name="character">
/// </param>
/// <param name="min">
/// </param>
public static void SendOutOfRange(ICharacter character, int min)
{
var messageBody = new CharacterActionMessage()
{
Identity = character.Identity,
Action = CharacterActionType.TradeskillOutOfRange,
Unknown = 0,
Target = new Identity(),
Parameter1 = 0,
Parameter2 = min
};
character.Send(messageBody);
}
示例2: SendNotTradeskill
/// <summary>
/// </summary>
/// <param name="character">
/// </param>
public static void SendNotTradeskill(ICharacter character)
{
var messageBody = new CharacterActionMessage()
{
Identity = character.Identity,
Action = CharacterActionType.TradeskillNotValid,
Unknown = 0,
Target = new Identity(),
Parameter1 = 0,
Parameter2 = 0
};
character.Send(messageBody);
}
示例3: SendRequirement
/// <summary>
/// </summary>
/// <param name="character">
/// </param>
/// <param name="tradeSkillStatId">
/// </param>
/// <param name="tradeSkillRequirement">
/// </param>
public static void SendRequirement(ICharacter character, int tradeSkillStatId, int tradeSkillRequirement)
{
var messageBody = new CharacterActionMessage()
{
Action = CharacterActionType.TradeskillRequirement,
Identity = character.Identity,
Unknown1 = 0,
Target = new Identity(),
Parameter1 = tradeSkillStatId,
Parameter2 = tradeSkillRequirement
};
character.Send(messageBody);
}
示例4: SendTarget
/// <summary>
/// </summary>
/// <param name="character">
/// </param>
/// <param name="count">
/// </param>
public static void SendTarget(ICharacter character, int count)
{
var messageBody = new CharacterActionMessage()
{
Identity = character.Identity,
Action = CharacterActionType.TradeskillTarget,
Unknown = 0,
Target = new Identity(),
Parameter1 = 0,
Parameter2 = count
};
character.Send(messageBody);
}
示例5: SendResult
/// <summary>
/// </summary>
/// <param name="character">
/// </param>
/// <param name="min">
/// </param>
/// <param name="max">
/// </param>
/// <param name="low">
/// </param>
/// <param name="high">
/// </param>
public static void SendResult(ICharacter character, int min, int max, int low, int high)
{
var messageBody = new CharacterActionMessage()
{
Action = CharacterActionType.TradeskillResult,
Identity = character.Identity,
Unknown1 = 0,
Target =
new Identity()
{
Type = (IdentityType)max,
Instance = high
},
Parameter1 = min,
Parameter2 = low
};
character.Send(messageBody);
}