MapServer.PlayerObject.GetMenuLink C# (CSharp) Method

GetMenuLink() public method

public GetMenuLink ( ) : uint>.Dictionary
return uint>.Dictionary
        public Dictionary<byte, uint> GetMenuLink()
        {
            return mMenuLink;
        }

Usage Example

Example #1
0
 //执行对应的选项脚本
 //index npc对话框点击选项的索引
 //play 玩家对象
 //szStr 客户端上传的字符串内容
 public void ExecuteOptionId(byte index, PlayerObject play, String szStr = "")
 {
     mszStr = szStr;
     if (play.GetMenuLink().ContainsKey(index))
     {
         ExecuteAction(play.GetMenuLink()[index], play);
     }
 }
All Usage Examples Of MapServer.PlayerObject::GetMenuLink