public override object Read(BinaryReader reader, bool xnb) { Volume obj = new Volume(); obj.Orientations = FmbHelper.HashSetOrList <FaceOrientation>(FmbUtil.ReadObject <FaceOrientation[]>(reader, xnb), FaceOrientationComparer.Default); obj.From = FmbUtil.ReadObject <Vector3>(reader, xnb, false); obj.To = FmbUtil.ReadObject <Vector3>(reader, xnb, false); obj.ActorSettings = FmbUtil.ReadObject <VolumeActorSettings>(reader, xnb); return(obj); }
public override object Read(BinaryReader reader, bool xnb) { ArtObjectActorSettings obj = new ArtObjectActorSettings(); obj.Inactive = reader.ReadBoolean(); obj.ContainedTrile = FmbUtil.ReadObject <ActorType>(reader, xnb); obj.AttachedGroup = FmbUtil.ReadObject <int?>(reader, xnb); obj.SpinView = FmbUtil.ReadObject <Viewpoint>(reader, xnb); obj.SpinEvery = reader.ReadSingle(); obj.SpinOffset = reader.ReadSingle(); obj.OffCenter = reader.ReadBoolean(); obj.RotationCenter = FmbUtil.ReadObject <Vector3>(reader, xnb, false); obj.VibrationPattern = FmbUtil.ReadObject <VibrationMotor[]>(reader, xnb); obj.CodePattern = FmbUtil.ReadObject <CodeInput[]>(reader, xnb); obj.Segment = FmbUtil.ReadObject <PathSegment>(reader, xnb); obj.NextNode = FmbUtil.ReadObject <int?>(reader, xnb); obj.DestinationLevel = FmbUtil.ReadObject <string>(reader, xnb); obj.TreasureMapName = FmbUtil.ReadObject <string>(reader, xnb); obj.InvisibleSides = FmbHelper.HashSetOrList <FaceOrientation>(FmbUtil.ReadObject <FaceOrientation[]>(reader, xnb), FaceOrientationComparer.Default); obj.TimeswitchWindBackSpeed = reader.ReadSingle(); return(obj); }