C# 클래스 TShockAPI.DB.Region

파일 보기 프로젝트 열기: NyxStudios/TShock 1 사용 예제들

공개 메소드들

메소드 설명
HasPermissionToBuildInRegion ( TSPlayer ply ) : bool

Checks if a given player has permission to build in the region

InArea ( Rectangle point ) : bool

Checks if a given point is in the region's area

InArea ( int x, int y ) : bool

Checks if a given (x, y) coordinate is in the region's area

Region ( ) : System
Region ( int id, Rectangle region, string name, string owner, bool disablebuild, string RegionWorldIDz, int z ) : System
RemoveGroup ( string groupName ) : bool

Removes a group's access to the region

RemoveID ( int id ) : bool

Removes a user's access to the region

SetAllowedGroups ( String groups ) : void

Sets the group names which are allowed to use the region

SetAllowedIDs ( String ids ) : void

Sets the user IDs which are allowed to use the region

메소드 상세

HasPermissionToBuildInRegion() 공개 메소드

Checks if a given player has permission to build in the region
public HasPermissionToBuildInRegion ( TSPlayer ply ) : bool
ply TSPlayer Player to check permissions with
리턴 bool

InArea() 공개 메소드

Checks if a given point is in the region's area
public InArea ( Rectangle point ) : bool
point Rectangle Point to check
리턴 bool

InArea() 공개 메소드

Checks if a given (x, y) coordinate is in the region's area
public InArea ( int x, int y ) : bool
x int X coordinate to check
y int Y coordinate to check
리턴 bool

Region() 공개 메소드

public Region ( ) : System
리턴 System

Region() 공개 메소드

public Region ( int id, Rectangle region, string name, string owner, bool disablebuild, string RegionWorldIDz, int z ) : System
id int
region Rectangle
name string
owner string
disablebuild bool
RegionWorldIDz string
z int
리턴 System

RemoveGroup() 공개 메소드

Removes a group's access to the region
public RemoveGroup ( string groupName ) : bool
groupName string Group name to remove
리턴 bool

RemoveID() 공개 메소드

Removes a user's access to the region
public RemoveID ( int id ) : bool
id int User ID to remove
리턴 bool

SetAllowedGroups() 공개 메소드

Sets the group names which are allowed to use the region
public SetAllowedGroups ( String groups ) : void
groups String String of group names to set
리턴 void

SetAllowedIDs() 공개 메소드

Sets the user IDs which are allowed to use the region
public SetAllowedIDs ( String ids ) : void
ids String String of IDs to set
리턴 void