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.Name = stream.ReadString(); this.Unchangeable = stream.ReadBoolean(); this.Deletable = stream.ReadBoolean(); this.Texture = stream.ReadTexture(); return(this); }
public IEncodable Decode(BinaryInput stream) { this.spriteindex = stream.ReadInt32(); this.collidable = stream.ReadBoolean(); this.reflecting = stream.ReadBoolean(); this.animated = stream.ReadBoolean(); this.frames = stream.ReadInt32(); this.timeperframe = stream.ReadSingle(); this.DefaultBehavior = stream.ReadObject<MockupTileBehavior>(); return this; }
public IEncodable Decode(BinaryInput stream) { this.spriteindex = stream.ReadInt32(); this.collidable = stream.ReadBoolean(); this.reflecting = stream.ReadBoolean(); this.animated = stream.ReadBoolean(); this.frames = stream.ReadInt32(); this.timeperframe = stream.ReadSingle(); this.DefaultBehavior = stream.ReadObject <MockupTileBehavior>(); return(this); }
public override IEncodable Decode(BinaryInput stream) { base.Decode(stream); value = stream.ReadBoolean(); return(this); }
public IEncodable Decode(BinaryInput stream) { Name = stream.ReadString(); ID = stream.ReadInt32(); EntityType = (EntityType)stream.ReadByte(); ShadowType = (ShadowType)stream.ReadByte(); ShadowType = ShadowType.Perspective; isSubEntity = stream.ReadBoolean(); ShadowOffset = stream.ReadInt32(); stream.ReadInt32(); CollisionMap = stream.ReadObject <CollisionMap>(); Texture = stream.ReadObject <TileableTexture>(); int c = stream.ReadInt32(); for (int i = 0; i < c; i++) { Animations.Add(stream.ReadObject <Animation>()); } return(this); }
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); }
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); }
public IEncodable Decode(BinaryInput stream) { Name = stream.ReadString(); ID = stream.ReadInt32(); EntityType = (EntityType) stream.ReadByte(); ShadowType = (ShadowType) stream.ReadByte(); ShadowType = ShadowType.Perspective; isSubEntity = stream.ReadBoolean(); ShadowOffset = stream.ReadInt32(); stream.ReadInt32(); CollisionMap = stream.ReadObject<CollisionMap>(); Texture = stream.ReadObject<TileableTexture>(); int c = stream.ReadInt32(); for (int i = 0; i < c; i++) { Animations.Add(stream.ReadObject<Animation>()); } return this; }
public virtual IEncodable Decode(BinaryInput stream) { this.Name = stream.ReadString(); this.Deletable = stream.ReadBoolean(); int c = stream.ReadInt32(); for (int i = 0; i < c; i++) { SpriteLibraryDirectory child = stream.ReadObject <SpriteLibraryDirectory>(); child.Parent = this; Directories.Add(child); } c = stream.ReadInt32(); for (int i = 0; i < c; i++) { SpriteLibrarySprite child = stream.ReadObject <SpriteLibrarySprite>(); child.Parent = this; Sprites.Add(child); } return(this); }
public virtual IEncodable Decode(BinaryInput stream) { this.Name = stream.ReadString(); this.Deletable = stream.ReadBoolean(); int c = stream.ReadInt32(); for (int i = 0; i < c; i++) { SpriteLibraryDirectory child = stream.ReadObject<SpriteLibraryDirectory>(); child.Parent = this; Directories.Add(child); } c = stream.ReadInt32(); for (int i = 0; i < c; i++) { SpriteLibrarySprite child = stream.ReadObject<SpriteLibrarySprite>(); child.Parent = this; Sprites.Add(child); } return this; }
public ISerializable Deserialize(BinaryInput input) { ConquerDirectory = input.ReadString(); Effects = input.ReadBoolean(); return(this); }
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; }
public ISerializable Deserialize(BinaryInput input) { ConquerDirectory = input.ReadString(); Effects = input.ReadBoolean(); return this; }
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; }