Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
68
Scripts/Regions/DungeonRegion.cs
Normal file
68
Scripts/Regions/DungeonRegion.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
|
||||
namespace Server.Regions
|
||||
{
|
||||
public class DungeonRegion : BaseRegion
|
||||
{
|
||||
private Point3D m_EntranceLocation;
|
||||
private Map m_EntranceMap;
|
||||
|
||||
public DungeonRegion(XmlElement xml, Map map, Region parent)
|
||||
: base(xml, map, parent)
|
||||
{
|
||||
XmlElement entrEl = xml["entrance"];
|
||||
|
||||
Map entrMap = map;
|
||||
ReadMap(entrEl, "map", ref entrMap, false);
|
||||
|
||||
if (ReadPoint3D(entrEl, entrMap, ref this.m_EntranceLocation, false))
|
||||
this.m_EntranceMap = entrMap;
|
||||
}
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public override bool YoungProtected
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public Point3D EntranceLocation
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_EntranceLocation;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_EntranceLocation = value;
|
||||
}
|
||||
}
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public Map EntranceMap
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_EntranceMap;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.m_EntranceMap = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool AllowHousing(Mobile from, Point3D p)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AlterLightLevel(Mobile m, ref int global, ref int personal)
|
||||
{
|
||||
global = LightCycle.DungeonLevel;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user