Exemplo n.º 1
0
        private void OnHightlightPrompt(int userId, int dict, object[] args)
        {
            Msg_RC_HighlightPrompt builder = new Msg_RC_HighlightPrompt();

            builder.dict_id = dict;
            foreach (object arg in args)
            {
                builder.argument.Add(arg.ToString());
            }
            if (userId > 0)
            {
                UserInfo info = UserManager.GetUserInfo(userId);
                if (null != info)
                {
                    User user = info.CustomData as User;
                    if (null != user)
                    {
                        user.SendMessage(builder);
                    }
                }
            }
            else
            {
                NotifyAllUser(builder);
            }
        }
Exemplo n.º 2
0
    internal static void Execute(object msg, NetConnection conn, NetworkSystem networkSystem)
    {
        Msg_RC_HighlightPrompt _msg = msg as Msg_RC_HighlightPrompt;

        if (null == _msg)
        {
            return;
        }
    }
Exemplo n.º 3
0
    internal static void Execute(object msg, NetConnection conn)
    {
        Msg_RC_HighlightPrompt _msg = msg as Msg_RC_HighlightPrompt;

        if (null == _msg)
        {
            return;
        }
        PluginFramework.Instance.HighlightPrompt(_msg.dict_id, _msg.argument.ToArray());
    }