/// <summary>
        /// 填充发送网络消息包事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>发送网络消息包事件。</returns>
        public NetworkSendPacketEventArgs Fill(GameFramework.Network.NetworkSendPacketEventArgs e)
        {
            NetworkChannel = e.NetworkChannel;
            BytesSent      = e.BytesSent;
            UserData       = e.UserData;

            return(this);
        }
Beispiel #2
0
 private void OnNetworkSendPacket(object sender, GameFramework.Network.NetworkSendPacketEventArgs e)
 {
     m_EventComponent.Fire(this, ReferencePool.Acquire <NetworkSendPacketEventArgs>().Fill(e));
 }
 /// <summary>
 /// 初始化发送网络消息包事件的新实例。
 /// </summary>
 /// <param name="e">内部事件。</param>
 public NetworkSendPacketEventArgs(GameFramework.Network.NetworkSendPacketEventArgs e)
 {
     NetworkChannel = e.NetworkChannel;
     BytesSent      = e.BytesSent;
     UserData       = e.UserData;
 }
Beispiel #4
0
 private void OnNetworkSendPacket(object sender, GameFramework.Network.NetworkSendPacketEventArgs e)
 {
     m_EventComponent.Fire(this, new NetworkSendPacketEventArgs(e));
 }