Exemple #1
0
        public SvrEvent GetSvrEvent(int groupid)
        {
            SvrEvent e = null;

            if (DicSvrEvent.TryGetValue(groupid, out e) == true)
            {
                e = DicSvrEvent[groupid];
            }
            return(e);
        }
Exemple #2
0
    /// <summary>
    /// Update this instance.
    /// </summary>
    //---------------------------------------------------------------------------------------------
    void Update()
    {
        SvrEvent frameEvent = new SvrEvent();

        while (plugin.PollEvent(ref frameEvent))
        {
            Debug.LogFormat("SvrEvent: {0}", frameEvent.eventType.ToString());
            for (int i = 0; i < eventListeners.Count; i++)
            {
                eventListeners [i].OnSvrEvent(frameEvent);
            }
        }
    }
    /// <summary>
    /// Update this instance.
    /// </summary>
    //---------------------------------------------------------------------------------------------
    void Update()
    {
        SvrEvent frameEvent = new SvrEvent();

        while (plugin.PollEvent(ref frameEvent))
        {
            for (int i = 0; i < eventListeners.Count; i++)
            {
                eventListeners [i].OnSvrEvent(frameEvent);
            }
        }

        if (Input.GetKeyDown(KeyCode.LeftShift))
        {
        }
    }
Exemple #4
0
 public void SetSvrEventAdd(int groupid, SvrEvent e)
 {
     DicSvrEvent[groupid] = e;
 }