summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--serialize.go16
-rw-r--r--tocltcmds.go1
2 files changed, 17 insertions, 0 deletions
diff --git a/serialize.go b/serialize.go
index b619923..18aa18f 100644
--- a/serialize.go
+++ b/serialize.go
@@ -18583,18 +18583,34 @@ func (obj *ToCltLighting) serialize(w io.Writer) {
{
x := (*(*(struct {
ShadowIntensity float32
+ Saturation float32
}))(obj)).ShadowIntensity
write32(w, math.Float32bits(x))
}
+ {
+ x := (*(*(struct {
+ ShadowIntensity float32
+ Saturation float32
+ }))(obj)).Saturation
+ write32(w, math.Float32bits(x))
+ }
}
func (obj *ToCltLighting) deserialize(r io.Reader) {
{
p := &(*(*(struct {
ShadowIntensity float32
+ Saturation float32
}))(obj)).ShadowIntensity
*p = math.Float32frombits(read32(r))
}
+ {
+ p := &(*(*(struct {
+ ShadowIntensity float32
+ Saturation float32
+ }))(obj)).Saturation
+ *p = math.Float32frombits(read32(r))
+ }
}
func (obj *AOCmdProps) serialize(w io.Writer) {
diff --git a/tocltcmds.go b/tocltcmds.go
index b662f6a..b3dfe5a 100644
--- a/tocltcmds.go
+++ b/tocltcmds.go
@@ -828,6 +828,7 @@ func (cmd *ToCltMinimapModes) deserialize(r io.Reader) {
// ToCltLighting tells the client the shadow intensity of the local player.
type ToCltLighting struct {
ShadowIntensity float32
+ Saturation float32
}
type ToCltDisco struct{}