当前位置: 首页>>代码示例>>C#>>正文


C# ICharacter.Send方法代码示例

本文整理汇总了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);
 }
开发者ID:gordonc64,项目名称:CellAO-NightPredator,代码行数:19,代码来源:TradeSkillPacket.cs

示例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);
 }
开发者ID:gordonc64,项目名称:CellAO-NightPredator,代码行数:17,代码来源:TradeSkillPacket.cs

示例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);
 }
开发者ID:gordonc64,项目名称:CellAO-NightPredator,代码行数:21,代码来源:TradeSkillPacket.cs

示例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);
 }
开发者ID:gordonc64,项目名称:CellAO-NightPredator,代码行数:19,代码来源:TradeSkillPacket.cs

示例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);
        }
开发者ID:gordonc64,项目名称:CellAO-NightPredator,代码行数:31,代码来源:TradeSkillPacket.cs


注:本文中的ICharacter.Send方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。