From 8d324c858557608d29e17f14e75de26e7781226f Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Thu, 8 Jun 2023 19:08:44 +0200 Subject: add saturation to ToCltLighting --- serialize.go | 16 ++++++++++++++++ tocltcmds.go | 1 + 2 files changed, 17 insertions(+) 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{} -- cgit v1.2.3