SharpMod.Message.WriteShort C# (CSharp) Method

WriteShort() public static method

Writes a short into the message. If the message buffer is already full, writing will be omitted.
public static WriteShort ( short val ) : void
val short /// A character value ///
return void
        public static void WriteShort(short val)
        {
            #if DEBUG
            messageInformation.Arguments.Add(new MessageArgument(typeof(short), (short)val));
            #endif
            if (count + sizeof(short) < MaxLength) {
                MetaModEngine.engineFunctions.WriteShort(val);
                count += sizeof(short);
            }
        }