public static TileDamageStatus FromStream(IStarboundStream stream) { TileDamageStatus status = new TileDamageStatus(); status.Parameters = TileDamageParameters.FromStream(stream); status.SourcePosition = Vec2F.FromStream(stream); status.Damage = TileDamage.FromStream(stream); return(status); }
public override void Read(IStarboundStream stream) { ulong vlq = stream.ReadVLQ(); Position = new List <Vec2I>(); for (int i = 0; i < (int)vlq; i++) { Vec2I vec = Vec2I.FromStream(stream); Position.Add(vec); } Layer = (TileLayer)stream.ReadUInt8(); SourcePos = Vec2F.FromStream(stream); TileDamage = TileDamage.FromStream(stream); }
public override void Read(IStarboundStream stream) { sEntityId = stream.ReadInt32(); SourcePosition = Vec2F.FromStream(stream); dEntityId = stream.ReadInt32(); }