File tree Expand file tree Collapse file tree 6 files changed +15
-42
lines changed Expand file tree Collapse file tree 6 files changed +15
-42
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
Go library for handling Source Engine .bsp map files.
10
10
11
11
### Features:
12
- * Read support for (most) non-xbox360 bsps (v20,21). v19 support limited, may work
12
+ * Read support for (most) non-xbox360 BSPs (v20,21). v19 support limited, may work
13
13
* Freely modify and resize any Lump data
14
14
* Limited write support, mostly untested
15
15
16
- ##### Not all lumps are current supported, but can be freely read and modified, as they are treated as ` []byte `
16
+ ##### Not all lumps are currently supported, but can be freely read and modified, as they are treated as ` []byte `
17
17
18
- The following lumps currently have a full implementation for v20 & v21 bsp's (tested against CS: S & CS: GO ):
18
+ The following lumps currently have a full implementation for v20 & v21 BSPs (tested against CS: S & CS: GO ):
19
19
20
20
```
21
21
0: Entdata
@@ -63,6 +63,7 @@ The following lumps currently have a full implementation for v20 & v21 bsp's (te
63
63
48: DispTris
64
64
51: LeafAmbientIndexHDR
65
65
52: LeafAmbientIndex
66
+ 53: WorldLightHDR
66
67
54: WorldLightHDR
67
68
55: LeafAmbientLightingHDR
68
69
56: LeafAmbientLighting
Original file line number Diff line number Diff line change 4
4
5
5
require (
6
6
github.com/go-gl/mathgl v1.0.0
7
- golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb // indirect
7
+ golang.org/x/image v0.0.0-20210504121937-7319ad40d33e // indirect
8
8
)
Original file line number Diff line number Diff line change 1
- github.com/go-gl/mathgl v0.0.0-20190713194549-592312d8590a h1:yoAEv7yeWqfL/l9A/J5QOndXIJCldv+uuQB1DSNQbS0 =
2
- github.com/go-gl/mathgl v0.0.0-20190713194549-592312d8590a /go.mod h1:yhpkQzEiH9yPyxDUGzkmgScbaBVlhC06qodikEM0ZwQ =
3
1
github.com/go-gl/mathgl v1.0.0 h1:t9DznWJlXxxjeeKLIdovCOVJQk/GzDEL7h/h+Ro2B68 =
4
2
github.com/go-gl/mathgl v1.0.0 /go.mod h1:yhpkQzEiH9yPyxDUGzkmgScbaBVlhC06qodikEM0ZwQ =
5
- golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f h1:FO4MZ3N56GnxbqxGKqh+YTzUWQ2sDwtFQEZgLOxh9Jc =
6
3
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f /go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js =
7
- golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a h1:gHevYm0pO4QUbwy8Dmdr01R5r1BuKtfYqRqF0h/Cbh0 =
8
- golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a /go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0 =
9
4
golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb h1:fqpd0EBDzlHRCjiphRR5Zo/RSWWQlWv34418dnEixWk =
10
5
golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb /go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0 =
6
+ golang.org/x/image v0.0.0-20210504121937-7319ad40d33e h1:PzJMNfFQx+QO9hrC1GwZ4BoPGeNGhfeQEgcQFArEjPk =
7
+ golang.org/x/image v0.0.0-20210504121937-7319ad40d33e /go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0 =
11
8
golang.org/x/text v0.3.0 /go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ =
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ func getExpectedLump(index int) lumps.ILump {
132
132
& lumps.Unimplemented {},
133
133
& lumps.LeafAmbientIndexHDR {},
134
134
& lumps.LeafAmbientIndex {},
135
- & lumps.Unimplemented {},
135
+ & lumps.Lighting {},
136
136
& lumps.WorldLightHDR {},
137
137
& lumps.LeafAmbientLightingHDR {},
138
138
& lumps.LeafAmbientLighting {},
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ func TestStaticPropV10_GetDiffuseModulation(t *testing.T) {
24
24
25
25
func TestStaticPropV10_GetDisableXBox360 (t * testing.T ) {
26
26
sut := getStaticPropV10 ()
27
- if sut .GetDisableXBox360 () != true {
27
+ if sut .GetDisableXBox360 () != false {
28
28
t .Error ("unexpected value for unknown property" )
29
29
}
30
30
@@ -174,15 +174,20 @@ func TestStaticPropV10_GetUniformScale(t *testing.T) {
174
174
if sut .GetUniformScale () != 1 {
175
175
t .Error ("unexpected value for uniformScale property" )
176
176
}
177
+ }
177
178
179
+ func TestStaticPropV10_GetExtraFlags (t * testing.T ) {
180
+ sut := getStaticPropV10 ()
181
+ if sut .GetExtraFlags () != 0 {
182
+ t .Error ("unexpected value for extra flags property" )
183
+ }
178
184
}
179
185
180
186
func TestStaticPropV10_GetUnknown (t * testing.T ) {
181
187
sut := getStaticPropV10 ()
182
188
if sut .GetUnknown () != 0 {
183
189
t .Error ("unexpected value for unknown property" )
184
190
}
185
-
186
191
}
187
192
188
193
func getStaticPropV10 () * StaticPropV10 {
You can’t perform that action at this time.
0 commit comments