WriteReverse() public static method

public static WriteReverse ( PacketWriter stream, int cur, int max ) : void
stream PacketWriter
cur int
max int
return void
Beispiel #1
0
        public MobileStatusCompact(bool canBeRenamed, Mobile m) : base(0x11)
        {
            EnsureCapacity(43);

            Stream.Write(m.Serial);
            Stream.WriteAsciiFixed(m.Name ?? "", 30);

            AttributeNormalizer.WriteReverse(Stream, m.Hits, m.HitsMax);

            Stream.Write(canBeRenamed);

            Stream.Write((byte)0); // type
        }
Beispiel #2
0
        // Methods
        public MobileStatusCompact(bool canBeRenamed, Mobile m) : base(17)
        {
            string text1 = m.Name;

            if (text1 == null)
            {
                text1 = "";
            }
            base.EnsureCapacity(43);
            this.m_Stream.Write(Serial.op_Implicit(m.Serial));
            this.m_Stream.WriteAsciiFixed(text1, 30);
            AttributeNormalizer.WriteReverse(this.m_Stream, m.Hits, m.HitsMax);
            this.m_Stream.Write(canBeRenamed);
            this.m_Stream.Write(((byte)0));
        }
 private void WriteAttrNorm(int current, int maximum)
 {
     AttributeNormalizer.WriteReverse(this.m_Stream, current, maximum);
 }