Implement PVP regions

This commit is contained in:
Michael Cook (mackal)
2016-08-04 23:56:08 -04:00
parent d53d569020
commit 68df09a570
8 changed files with 57 additions and 11 deletions
+2 -1
View File
@@ -8,7 +8,7 @@
extern const ZoneConfig *Config;
enum WaterRegionType {
enum WaterRegionType : int {
RegionTypeUnsupported = -2,
RegionTypeUntagged = -1,
RegionTypeNormal = 0,
@@ -33,6 +33,7 @@ public:
virtual bool InVWater(const glm::vec3& location) const = 0;
virtual bool InLava(const glm::vec3& location) const = 0;
virtual bool InLiquid(const glm::vec3& location) const = 0;
virtual bool InPvP(const glm::vec3& location) const = 0;
protected:
virtual bool Load(FILE *fp) { return false; }