From f01de57b58a68b12455f7c4535d5154307d44266 Mon Sep 17 00:00:00 2001 From: Caeldeth Date: Wed, 22 Apr 2026 14:46:11 -0500 Subject: [PATCH] feat: add DynamicLighting attribute to Map Boolean attribute, default false. Signals whether a map supports dynamic lighting in the client. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/Objects/Map.cs | 16 ++++++++++++++++ src/XSD/Map.xsd | 1 + 2 files changed, 17 insertions(+) diff --git a/src/Objects/Map.cs b/src/Objects/Map.cs index a014fea..73b32fd 100644 --- a/src/Objects/Map.cs +++ b/src/Objects/Map.cs @@ -42,6 +42,7 @@ public partial class Map : HybrasylEntity private byte _y; private bool _isEnabled; private bool _allowCasting; + private bool _dynamicLighting; #endregion public Map() @@ -54,6 +55,7 @@ public Map() _music = ((byte)(0)); _isEnabled = true; _allowCasting = true; + _dynamicLighting = false; } public string Name @@ -236,6 +238,20 @@ public bool AllowCasting _allowCasting = value; } } + + [XmlAttribute] + [DefaultValue(false)] + public bool DynamicLighting + { + get + { + return _dynamicLighting; + } + set + { + _dynamicLighting = value; + } + } } } #pragma warning restore diff --git a/src/XSD/Map.xsd b/src/XSD/Map.xsd index b0c1538..ecc1248 100644 --- a/src/XSD/Map.xsd +++ b/src/XSD/Map.xsd @@ -127,6 +127,7 @@ +