public IEncodable Decode(BinaryInput stream) { this.Name = stream.ReadString(); this.Unchangeable = stream.ReadBoolean(); this.Deletable = stream.ReadBoolean(); this.Texture = stream.ReadTexture(); return this; }
public IEncodable Decode(BinaryInput stream) { this.Rows = stream.ReadInt32(); this.Columns = stream.ReadInt32(); this.Texture = stream.ReadTexture(); return(this); }
public IEncodable Decode(BinaryInput stream) { this.Name = stream.ReadString(); this.Unchangeable = stream.ReadBoolean(); this.Deletable = stream.ReadBoolean(); this.Texture = stream.ReadTexture(); return(this); }
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; }
public IEncodable Decode(BinaryInput stream) { this.Rows = stream.ReadInt32(); this.Columns = stream.ReadInt32(); this.Texture = stream.ReadTexture(); return this; }