Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/Objects/Map.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public partial class Map : HybrasylEntity<Map>
private byte _y;
private bool _isEnabled;
private bool _allowCasting;
private bool _dynamicLighting;
#endregion

public Map()
Expand All @@ -54,6 +55,7 @@ public Map()
_music = ((byte)(0));
_isEnabled = true;
_allowCasting = true;
_dynamicLighting = false;
}

public string Name
Expand Down Expand Up @@ -236,6 +238,20 @@ public bool AllowCasting
_allowCasting = value;
}
}

[XmlAttribute]
[DefaultValue(false)]
public bool DynamicLighting
{
get
{
return _dynamicLighting;
}
set
{
_dynamicLighting = value;
}
}
}
}
#pragma warning restore
1 change: 1 addition & 0 deletions src/XSD/Map.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<xs:attribute name="Y" type="xs:unsignedByte" use="required" />
<xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true" />
<xs:attribute name="AllowCasting" type="xs:boolean" use="optional" default="true" />
<xs:attribute name="DynamicLighting" type="xs:boolean" use="optional" default="false" />
</xs:complexType>

<xs:complexType name="MapNpc">
Expand Down
Loading