예제 #1
0
 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();
 }
예제 #2
0
        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));
            }
        }
예제 #3
0
 public Rect8(Point2D8 point, Point2D8 size)
 {
     Point = point;
     Size  = size;
 }
예제 #4
0
 public Checkpoint(BinaryReader reader)
 {
     Position = new Point3D16(reader);
     RespawnZ = reader.ReadInt16();
     Radius   = new Point2D8(reader);
 }