コード例 #1
0
        /// <summary>
        /// 填充发送网络消息包事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>发送网络消息包事件。</returns>
        public NetworkSendPacketEventArgs Fill(Ash.Core.Network.NetworkSendPacketEventArgs e)
        {
            NetworkChannel = e.NetworkChannel;
            BytesSent      = e.BytesSent;
            UserData       = e.UserData;

            return(this);
        }
コード例 #2
0
 private void OnNetworkSendPacket(object sender, Ash.Core.Network.NetworkSendPacketEventArgs e)
 {
     m_EventComponent.Fire(this, ReferencePool.Acquire <NetworkSendPacketEventArgs>().Fill(e));
 }