public IEncodable Decode(BinaryInput stream) {
			this.Name = stream.ReadString();
			this.Unchangeable = stream.ReadBoolean();
			this.Deletable = stream.ReadBoolean();
			this.Texture = stream.ReadTexture();
			return this;
		}
Exemple #2
0
        public IEncodable Decode(BinaryInput stream)
        {
            this.Rows    = stream.ReadInt32();
            this.Columns = stream.ReadInt32();
            this.Texture = stream.ReadTexture();

            return(this);
        }
Exemple #3
0
 public IEncodable Decode(BinaryInput stream)
 {
     this.Name         = stream.ReadString();
     this.Unchangeable = stream.ReadBoolean();
     this.Deletable    = stream.ReadBoolean();
     this.Texture      = stream.ReadTexture();
     return(this);
 }
Exemple #4
0
        public ISerializable Deserialize(BinaryInput input)
        {
            Texture = input.ReadTexture();
            Position = input.ReadVector2();

            int size = input.ReadInt32();
            animations = new Dictionary<string, Animation>(size);
            for (var i = 0; i < size; i++)
            {
                string key = input.ReadString();
                var value = input.ReadObject<Animation>();
                animations.Add(key, value);
            }

            return this;
        }
 public ISerializable Deserialize(BinaryInput input)
 {
     Texture = input.ReadTexture();
     SetTiles();
     return this;
 }
Exemple #6
0
		public IEncodable Decode(BinaryInput stream) {
			this.Rows = stream.ReadInt32();
			this.Columns = stream.ReadInt32();
			this.Texture = stream.ReadTexture();

			return this;
		}