(Taking a break. If anyone wants to continue shit feel free. Just note that RegionStore.cs is completely useless because it turns out a Region class already existed. Oh and there's no constructor for it that contains allowed user IDs either, which is also dumb.
This commit is contained in:
parent
eba1714644
commit
c4efc96303
1 changed files with 12 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ namespace TShockAPI.DB
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool InProtectedArea(int X, int Y, User user)
|
public bool InProtectedArea(int X, int Y, User user) //This whole thing is dumb
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -273,5 +273,16 @@ namespace TShockAPI.DB
|
||||||
DisableBuild = 1;
|
DisableBuild = 1;
|
||||||
RegionWorldID = string.Empty;
|
RegionWorldID = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool InProtectedArea(Rectangle point, User user)
|
||||||
|
{
|
||||||
|
if (RegionArea.Intersects(point))
|
||||||
|
{
|
||||||
|
//Todo: Code here
|
||||||
|
//Apparently we don't have access to allowed/denied user IDs here, or they aren't constructed or something
|
||||||
|
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue