// Methods
 public MobileAttributesN(Mobile m) : base(45, 17)
 {
     this.m_Stream.Write(Serial.op_Implicit(m.Serial));
     AttributeNormalizer.Write(this.m_Stream, m.Hits, m.HitsMax);
     AttributeNormalizer.Write(this.m_Stream, m.Mana, m.ManaMax);
     AttributeNormalizer.Write(this.m_Stream, m.Stam, m.StamMax);
 }
Example #2
0
        public MobileAttributesN(Mobile m) : base(0x2D, 17)
        {
            Stream.Write(m.Serial);

            AttributeNormalizer.Write(Stream, m.Hits, m.HitsMax);
            AttributeNormalizer.Write(Stream, m.Mana, m.ManaMax);
            AttributeNormalizer.Write(Stream, m.Stam, m.StamMax);
        }
Example #3
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
        }
Example #4
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));
        }
Example #5
0
 // Methods
 public MobileHitsN(Mobile m) : base(161, 9)
 {
     this.m_Stream.Write(Serial.op_Implicit(m.Serial));
     AttributeNormalizer.Write(this.m_Stream, m.Hits, m.HitsMax);
 }
 private void WriteAttrNorm(int current, int maximum)
 {
     AttributeNormalizer.WriteReverse(this.m_Stream, current, maximum);
 }
Example #7
0
 public MobileStamN(Mobile m) : base(0xA3, 9)
 {
     Stream.Write(m.Serial);
     AttributeNormalizer.Write(Stream, m.Stam, m.StamMax);
 }
Example #8
0
 public MobileManaN(Mobile m) : base(0xA2, 9)
 {
     Stream.Write(m.Serial);
     AttributeNormalizer.Write(Stream, m.Mana, m.ManaMax);
 }
Example #9
0
 public MobileHitsN(Mobile m) : base(0xA1, 9)
 {
     Stream.Write(m.Serial);
     AttributeNormalizer.Write(Stream, m.Hits, m.HitsMax);
 }
Example #10
0
 // Methods
 public MobileManaN(Mobile m) : base(162, 9)
 {
     this.m_Stream.Write(Serial.op_Implicit(m.Serial));
     AttributeNormalizer.Write(this.m_Stream, m.Mana, m.ManaMax);
 }
Example #11
0
 // Methods
 public MobileStamN(Mobile m) : base(163, 9)
 {
     this.m_Stream.Write(Serial.op_Implicit(m.Serial));
     AttributeNormalizer.Write(this.m_Stream, m.Stam, m.StamMax);
 }