Exemplo n.º 1
0
        internal static void StartEvent(TickType eventType, uint bytes, NetworkChannel networkChannel, string messageName)
        {
            if (!IsRunning)
            {
                return;
            }
            if (s_CurrentTick == null)
            {
                return;
            }

            string channelName = networkChannel.ToString();

            s_CurrentTick.StartEvent(eventType, bytes, channelName, messageName);
        }
Exemplo n.º 2
0
        internal static void StartEvent(TickType eventType, uint bytes, NetworkChannel networkChannel, byte messageType)
        {
            if (!IsRunning)
            {
                return;
            }
            if (s_CurrentTick == null)
            {
                return;
            }

            string messageName = messageType < NetworkConstants.MESSAGE_NAMES.Length ? NetworkConstants.MESSAGE_NAMES[messageType] : "INVALID_MESSAGE_TYPE";

            string channelName = networkChannel.ToString();

            s_CurrentTick.StartEvent(eventType, bytes, channelName, messageName);
        }