public CameraTrigger(BinaryReader reader) { Position = new Point3D16(reader); Zoom = reader.ReadInt16(); Radius = new Point2D8(reader); if (Zoom != -1) { return; } Reset = reader.ReadBoolean(); StartDelay = reader.ReadUInt16(); Duration = reader.ReadUInt16(); Value = reader.ReadInt16(); SingleUse = reader.ReadBoolean(); ValueIsAngle = reader.ReadBoolean(); }
public OtherCube(Level parent, BinaryReader reader) { PositionTrigger = new Point3D16(reader); MovingBlockSync = new IDReference <MovingPlatform>(parent.MovingPlatforms, reader.ReadInt16()); if (MovingBlockSync.Index == -2) { DarkCubeRadius = new Point2D8(reader); DarkCubeMovingBlockSync = new IDReference <MovingPlatform>(parent.MovingPlatforms, reader.ReadInt16()); } var count = reader.ReadUInt16(); PositionCube = new Point3D16(reader); for (var i = 0; i < count; i++) { KeyEvents.Add(new KeyEvent(reader)); } }
public Rect8(Point2D8 point, Point2D8 size) { Point = point; Size = size; }
public Checkpoint(BinaryReader reader) { Position = new Point3D16(reader); RespawnZ = reader.ReadInt16(); Radius = new Point2D8(reader); }