-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved test coverage, better code comments
- Loading branch information
Showing
56 changed files
with
2,326 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package area | ||
|
||
// Area | ||
type Area struct { | ||
NumAreaPortals int32 | ||
// NumAreaPortals number of AreaPortals in this area | ||
NumAreaPortals int32 | ||
// FirstAreaPortal index of first AreaPortal | ||
FirstAreaPortal int32 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package areaportal | ||
|
||
// AreaPortal | ||
type AreaPortal struct { | ||
PortalKey uint16 // Entities have a key called portal number (and in vbsp a variable called areaportalnum) to bind them to the area portals by comparing this value | ||
OtherArea uint16 // The area this portal looks into | ||
FirstClipPortalVert uint16 // Portal geometry | ||
NumClipPortalVerts uint16 | ||
|
||
// PortalKey - entities have a key called portal number (and in vbsp a variable called areaportalnum) to bind | ||
// them to the area portals by comparing this value | ||
PortalKey uint16 | ||
// OtherArea is the area this portal looks into | ||
OtherArea uint16 | ||
// FirstClipPortalVert Portal geometry | ||
FirstClipPortalVert uint16 | ||
// NumClipPortalVerts number of geometry verts | ||
NumClipPortalVerts uint16 | ||
// PlaneNum | ||
PlaneNum int32 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
package brush | ||
|
||
// Brush | ||
type Brush struct { | ||
// FirstSide index of first side of a brush | ||
FirstSide int32 | ||
NumSides int32 | ||
Contents int32 | ||
// NumSides is number of sides this brush has | ||
NumSides int32 | ||
// Contents | ||
Contents int32 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
package brushside | ||
|
||
// BrushSide | ||
type BrushSide struct { | ||
// PlaneNum is index into planes | ||
PlaneNum uint16 | ||
TexInfo int16 | ||
// TexInfo is index into TexInfo slice | ||
TexInfo int16 | ||
// DispInfo is index into DispInfo slice | ||
DispInfo int16 | ||
Bevel int16 | ||
// Bevel | ||
Bevel int16 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.