Server.Network.MobileAnimation.MobileAnimation C# (CSharp) Méthode

MobileAnimation() public méthode

public MobileAnimation ( Mobile m, int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay ) : System
m Mobile
action int
frameCount int
repeatCount int
forward bool
repeat bool
delay int
Résultat System
        public MobileAnimation( Mobile m, int action, int frameCount, int repeatCount, bool forward, bool repeat, int delay )
            : base(0x6E, 14)
        {
            m_Stream.Write( (int) m.Serial );
            m_Stream.Write( (short) action );
            m_Stream.Write( (short) frameCount );
            m_Stream.Write( (short) repeatCount );
            m_Stream.Write( (bool) !forward ); // protocol has really "reverse" but I find this more intuitive
            m_Stream.Write( (bool) repeat );
            m_Stream.Write( (byte) delay );
        }
MobileAnimation