2021-06-27 22:56:44 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace RoleplayersToolbox.Tools.Housing {
|
|
|
|
|
[Serializable]
|
|
|
|
|
internal class Bookmark {
|
|
|
|
|
public string Name;
|
|
|
|
|
public uint WorldId;
|
|
|
|
|
public HousingArea Area;
|
|
|
|
|
public uint Ward;
|
|
|
|
|
public uint Plot;
|
|
|
|
|
|
|
|
|
|
public Bookmark(string name) {
|
|
|
|
|
this.Name = name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal Bookmark Clone() {
|
|
|
|
|
return new(this.Name) {
|
|
|
|
|
WorldId = this.WorldId,
|
|
|
|
|
Area = this.Area,
|
|
|
|
|
Ward = this.Ward,
|
|
|
|
|
Plot = this.Plot,
|
|
|
|
|
};
|
|
|
|
|
}
|
2021-06-28 03:04:00 +00:00
|
|
|
|
|
|
|
|
|
internal bool AnyZero() {
|
2021-07-01 17:25:15 +00:00
|
|
|
|
return string.IsNullOrWhiteSpace(this.Name)
|
2021-06-28 03:04:00 +00:00
|
|
|
|
|| this.WorldId == 0
|
|
|
|
|
|| this.Area == 0
|
|
|
|
|
|| this.Ward == 0
|
|
|
|
|
|| this.Plot == 0;
|
|
|
|
|
}
|
2021-06-27 22:56:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|