public UDPPacketComposer(BaseUDP clientWorker, NetworkingPlayer player, FrameStream frame, bool reliable = false)
        {
#if DEEP_LOGGING
            Logging.BMSLog.Log("---------------------------\n" + (new System.Diagnostics.StackTrace()).ToString() + "\nUNIQUE ID: " + frame.UniqueId.ToString() + "\n---------------------------");
#endif

            Init(clientWorker, player, frame, reliable);
        }
        public void Init(BaseUDP clientWorker, NetworkingPlayer player, FrameStream frame, bool reliable = false)
        {
            ClientWorker = clientWorker;
            Player       = player;
            Frame        = frame;
            Reliable     = reliable;

            Initialize();
        }
 public UDPPacketComposer(BaseUDP clientWorker, NetworkingPlayer player, FrameStream frame, bool reliable = false)
 {
     Init(clientWorker, player, frame, reliable);
 }
Exemple #4
0
 public static void SendNewUDPPacket(BaseUDP clientWorker, NetworkingPlayer player,
                                     FrameStream frame, bool reliable = false)
 {
     new UDPPacketComposer(clientWorker, player, frame, reliable);
 }