Beispiel #1
0
        /// <summary>
        /// Begins with the sending of a message.
        /// </summary>
        /// <param name="destination">
        /// The destination of a message. <see cref="MessageDestination"/>
        /// </param>
        /// <param name="msg_type">
        /// The integer value of the message type. <see cref="System.Int32"/>
        /// </param>
        /// <param name="flValue">
        /// A float value? <see cref="IntPtr"/>
        /// </param>
        /// <param name="player">
        /// If send to a specific player, the player entity has to be supplied here <see cref="IntPtr"/>
        /// </param>
        public static void Begin(MessageDestination destination, int messageType, IntPtr floatValue, IntPtr playerEntity)
        {
                        #if DEBUG
            messageInformation = new MessageInformation(destination, messageType, floatValue, playerEntity);
            messageInformation.CallTimeBegin = DateTime.Now;
                        #endif

            MetaModEngine.engineFunctions.MessageBegin(destination, messageType, floatValue, playerEntity);
            count = 0;
        }
Beispiel #2
0
        /// <summary>
        /// Begins with the sending of a message.
        /// </summary>
        /// <param name="destination">
        /// The destination of a message. <see cref="MessageDestination"/>
        /// </param>
        /// <param name="msg_type">
        /// The integer value of the message type. <see cref="System.Int32"/>
        /// </param>
        /// <param name="flValue">
        /// A float value? <see cref="IntPtr"/>
        /// </param>
        /// <param name="player">
        /// If send to a specific player, the player entity has to be supplied here <see cref="IntPtr"/>
        /// </param>
        public static void Begin(MessageDestination destination, int messageType, IntPtr floatValue, IntPtr playerEntity)
        {
            #if DEBUG
            messageInformation = new MessageInformation(destination, messageType, floatValue, playerEntity);
            messageInformation.CallTimeBegin = DateTime.Now;
            #endif

            MetaModEngine.engineFunctions.MessageBegin(destination, messageType, floatValue, playerEntity);
            count = 0;
        }