public CellGrid(string Tag = null) : base(Tag) { X = new Int32(); Y = new Int32(); ForceHideLand = new ForceHideLandFlags(); }
protected override void ReadData(ESPReader reader) { using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size))) using (ESPReader subReader = new ESPReader(stream, reader.Plugin)) { try { X = subReader.ReadInt32(); Y = subReader.ReadInt32(); ForceHideLand = subReader.ReadEnum <ForceHideLandFlags>(); } catch { return; } } }
protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; if (ele.TryPathTo("X", false, out subEle)) { X = subEle.ToInt32(); } if (ele.TryPathTo("Y", false, out subEle)) { Y = subEle.ToInt32(); } if (ele.TryPathTo("ForceHideLand", false, out subEle)) { ForceHideLand = subEle.ToEnum <ForceHideLandFlags>(); } }
public CellGrid(CellGrid copyObject) { X = copyObject.X; Y = copyObject.Y; ForceHideLand = copyObject.ForceHideLand; }
public CellGrid(Int32 X, Int32 Y, ForceHideLandFlags ForceHideLand) { this.X = X; this.Y = Y; this.ForceHideLand = ForceHideLand; }