(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:
Lucas Nicodemus 2011-07-13 22:58:59 -06:00
parent eba1714644
commit c4efc96303

View file

@ -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
{
@ -273,5 +273,16 @@ namespace TShockAPI.DB
DisableBuild = 1;
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;
}
}
}