summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-06-08 19:08:44 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-06-08 19:08:44 +0200
commit8d324c858557608d29e17f14e75de26e7781226f (patch)
tree757d12bc45d955845c1a97fb501cd8a25d01677d
parent969e5ea5c77e977e2a3c5b34fbd409a2bff3f44a (diff)
add saturation to ToCltLighting
-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{}