Beispiel #1
0
        public override IEncodable Decode(BinaryInput stream)
        {
            base.Decode(stream);

            TemplateID = stream.ReadInt32();
            Collidable = stream.ReadBoolean();

            Shadow = stream.ReadBoolean();

            Rotation = stream.ReadSingle();
            Scale    = stream.ReadSingle();
            Opacity  = stream.ReadSingle();

            TopMost = stream.ReadBoolean();
            Color   = new Color(stream.ReadVector4());

            return(this);
        }
Beispiel #2
0
		public override IEncodable Decode(BinaryInput stream) {
			base.Decode(stream);

			TemplateID = stream.ReadInt32();
			Collidable = stream.ReadBoolean();

			Shadow = stream.ReadBoolean();

			Rotation = stream.ReadSingle();
			Scale = stream.ReadSingle();
			Opacity = stream.ReadSingle();

			TopMost = stream.ReadBoolean();
			Color = new Color(stream.ReadVector4());

			return this;
		}