Example #1
0
        public IEncodable Decode(BinaryInput stream)
        {
            this.Pattern      = (MovementPattern)stream.ReadByte();
            this.Speed        = (MovementSpeed)stream.ReadByte();
            this.Count        = stream.ReadInt16();
            this.CurrentIndex = stream.ReadInt16();
            this.Inverted     = stream.ReadBoolean();
            int c = stream.ReadInt32();

            for (int i = 0; i < c; i++)
            {
                Movements.Add(stream.ReadObject <Movement>());
            }
            return(this);
        }
Example #2
0
        public override IEncodable Decode(BinaryInput stream)
        {
            base.Decode(stream);
            value = stream.ReadInt16();

            return(this);
        }
Example #3
0
		public IEncodable Decode(BinaryInput stream) {
			this.Pattern = (MovementPattern) stream.ReadByte();
			this.Speed = (MovementSpeed) stream.ReadByte();
			this.Count = stream.ReadInt16();
			this.CurrentIndex = stream.ReadInt16();
			this.Inverted = stream.ReadBoolean();
			int c = stream.ReadInt32();
			for (int i = 0; i < c; i++) {
				Movements.Add(stream.ReadObject<Movement>());
			}
			return this;
		}