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


C# CommandParser.GetParam方法代码示例

本文整理汇总了C#中CommandParser.GetParam方法的典型用法代码示例。如果您正苦于以下问题:C# CommandParser.GetParam方法的具体用法?C# CommandParser.GetParam怎么用?C# CommandParser.GetParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommandParser的用法示例。


在下文中一共展示了CommandParser.GetParam方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HandleGetItemCountCmd

 private void HandleGetItemCountCmd(CommandParser.Command param)
 {
     int num = 0;
     int.TryParse(param.GetParam(1), out num);
     ItemInfo info = Globals.Instance.AttDB.ItemDict.GetInfo(num);
     if (info == null)
     {
         return;
     }
     GameUIManager.mInstance.ShowMessageTip(string.Format("{0} count = {1}", info.Name, Globals.Instance.Player.ItemSystem.GetEquipCount(num)), 0f, 0f);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:11,代码来源:CommandParser.cs

示例2: HandleSetCombatPetCmd

 private void HandleSetCombatPetCmd(CommandParser.Command param)
 {
     int slot = 0;
     int.TryParse(param.GetParam(1), out slot);
     ulong petID = 0uL;
     ulong.TryParse(param.GetParam(2), out petID);
     MC2S_SetCombatPet mC2S_SetCombatPet = new MC2S_SetCombatPet();
     mC2S_SetCombatPet.Slot = slot;
     mC2S_SetCombatPet.PetID = petID;
     Globals.Instance.CliSession.Send(195, mC2S_SetCombatPet);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:11,代码来源:CommandParser.cs

示例3: HandleShareAchievementCmd

 private void HandleShareAchievementCmd(CommandParser.Command param)
 {
     int iD = 0;
     int.TryParse(param.GetParam(1), out iD);
     MC2S_ShareAchievement mC2S_ShareAchievement = new MC2S_ShareAchievement();
     mC2S_ShareAchievement.ID = iD;
     Globals.Instance.CliSession.Send(731, mC2S_ShareAchievement);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:8,代码来源:CommandParser.cs

示例4: HandleReplyFriendCmd

 private void HandleReplyFriendCmd(CommandParser.Command param)
 {
     ulong gUID = 0uL;
     ulong.TryParse(param.GetParam(1), out gUID);
     int num = 0;
     int.TryParse(param.GetParam(2), out num);
     MC2S_ReplyFriend mC2S_ReplyFriend = new MC2S_ReplyFriend();
     mC2S_ReplyFriend.GUID = gUID;
     mC2S_ReplyFriend.Agree = (num != 0);
     Globals.Instance.CliSession.Send(311, mC2S_ReplyFriend);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:11,代码来源:CommandParser.cs

示例5: HandleRequestFriendCmd

 private void HandleRequestFriendCmd(CommandParser.Command param)
 {
     ulong gUID = 0uL;
     ulong.TryParse(param.GetParam(1), out gUID);
     MC2S_RequestFriend mC2S_RequestFriend = new MC2S_RequestFriend();
     mC2S_RequestFriend.GUID = gUID;
     Globals.Instance.CliSession.Send(309, mC2S_RequestFriend);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:8,代码来源:CommandParser.cs

示例6: HandleQueryAttCmd

 private void HandleQueryAttCmd(CommandParser.Command param)
 {
     float num = 0f;
     float.TryParse(param.GetParam(1), out num);
     global::Debug.Log(new object[]
     {
         "----------Query Attribute----------"
     });
     List<ActorController> actors = Globals.Instance.ActorMgr.Actors;
     if (num == 0f)
     {
         for (int i = 0; i < actors.Count; i++)
         {
             if (actors[i] == null)
             {
             }
         }
     }
     else if (num == 1f)
     {
         for (int j = 0; j < 5; j++)
         {
             if (actors[j] == null)
             {
             }
         }
     }
     else if (num == 2f)
     {
         for (int k = 5; k < actors.Count; k++)
         {
             if (actors[k] == null)
             {
             }
         }
     }
     global::Debug.Log(new object[]
     {
         "----------------------------------"
     });
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:41,代码来源:CommandParser.cs

示例7: HandleQueryRemotePlayerCmd

 private void HandleQueryRemotePlayerCmd(CommandParser.Command param)
 {
     ulong playerID = 0uL;
     ulong.TryParse(param.GetParam(1), out playerID);
     MC2S_QueryRemotePlayer mC2S_QueryRemotePlayer = new MC2S_QueryRemotePlayer();
     mC2S_QueryRemotePlayer.PlayerID = playerID;
     Globals.Instance.CliSession.Send(286, mC2S_QueryRemotePlayer);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:8,代码来源:CommandParser.cs

示例8: HandlePauseCmd

 private void HandlePauseCmd(CommandParser.Command param)
 {
     float num = 0f;
     float.TryParse(param.GetParam(1), out num);
     int num2 = 0;
     int.TryParse(param.GetParam(2), out num2);
     if (num2 == 0)
     {
         Globals.Instance.ActorMgr.Pause(num != 0f);
     }
     else
     {
         ActorController actor = Globals.Instance.ActorMgr.GetActor(0);
         if (actor == null)
         {
             global::Debug.Log(new object[]
             {
                 "must in game scene!"
             });
             return;
         }
         Globals.Instance.ActorMgr.PauseActor(num != 0f, actor);
     }
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:24,代码来源:CommandParser.cs

示例9: HandlePetBreakUpCmd

 private void HandlePetBreakUpCmd(CommandParser.Command param)
 {
     ulong item = 0uL;
     ulong.TryParse(param.GetParam(1), out item);
     MC2S_PetBreakUp mC2S_PetBreakUp = new MC2S_PetBreakUp();
     mC2S_PetBreakUp.PetID.Add(item);
     Globals.Instance.CliSession.Send(413, mC2S_PetBreakUp);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:8,代码来源:CommandParser.cs

示例10: HandleLuckyRollCmd

 private void HandleLuckyRollCmd(CommandParser.Command param)
 {
     int type = 0;
     int.TryParse(param.GetParam(1), out type);
     int num = 0;
     int.TryParse(param.GetParam(2), out num);
     int num2 = 0;
     int.TryParse(param.GetParam(3), out num2);
     MC2S_LuckyRoll mC2S_LuckyRoll = new MC2S_LuckyRoll();
     mC2S_LuckyRoll.Type = type;
     mC2S_LuckyRoll.Flag = (num != 0);
     mC2S_LuckyRoll.Free = (num2 != 0);
     Globals.Instance.CliSession.Send(206, mC2S_LuckyRoll);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:14,代码来源:CommandParser.cs

示例11: HandlePassTutorialCmd

 private void HandlePassTutorialCmd(CommandParser.Command param)
 {
     for (int i = 0; i <= Convert.ToInt32(param.GetParam(1)); i++)
     {
         TutorialEntity.SendTutorialNumToServer(i);
     }
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:7,代码来源:CommandParser.cs

示例12: HandleItemEnhanceCmd

 private void HandleItemEnhanceCmd(CommandParser.Command param)
 {
     int num = 0;
     int.TryParse(param.GetParam(1), out num);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:5,代码来源:CommandParser.cs

示例13: HandleGiveFriendEnergyCmd

 private void HandleGiveFriendEnergyCmd(CommandParser.Command param)
 {
     ulong gUID = 0uL;
     ulong.TryParse(param.GetParam(1), out gUID);
     MC2S_GiveFriendEnergy mC2S_GiveFriendEnergy = new MC2S_GiveFriendEnergy();
     mC2S_GiveFriendEnergy.GUID = gUID;
     Globals.Instance.CliSession.Send(319, mC2S_GiveFriendEnergy);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:8,代码来源:CommandParser.cs

示例14: HandleGetVoiceCmd

 private void HandleGetVoiceCmd(CommandParser.Command param)
 {
     string param2 = param.GetParam(1);
     string text = string.Format("key={0}&host={1}&usernum={2}", param2, GameSetting.Data.ServerID, GameSetting.Data.Account);
     string url = "http://voice.x.netease.com:8020/ma32/getfile?" + text;
     Globals.Instance.CliSession.HttpGet(url, 1514, true, Encoding.ASCII.GetBytes(text));
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:7,代码来源:CommandParser.cs

示例15: HandlePillageStartCmd

 private void HandlePillageStartCmd(CommandParser.Command param)
 {
     ulong num = 0uL;
     ulong.TryParse(param.GetParam(1), out num);
     Globals.Instance.Player.PvpSystem.SetPillageTargetID(num);
     MC2S_PvpPillageStart mC2S_PvpPillageStart = new MC2S_PvpPillageStart();
     mC2S_PvpPillageStart.TargetID = num;
     Globals.Instance.CliSession.Send(816, mC2S_PvpPillageStart);
 }
开发者ID:floatyears,项目名称:Decrypt,代码行数:9,代码来源:CommandParser.cs


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