C# Class fCraft.Portals.Portal

Show file Open project: GlennMR/800craft Class Usage Examples

Public Properties

Property Type Description
HasDesiredOutput bool

Public Methods

Method Description
CalculateRange ( Portal portal ) : PortalRange
Deserialize ( string name, string sdata, Map map ) : Portal
DoesNameExist ( World world, String name ) : bool
GenerateName ( string World, bool Custom ) : String
IsInRange ( Player player ) : bool
IsInRange ( Vector3I vector ) : bool
Portal ( ) : System
Portal ( String world, Vector3I affectedBlocks, String Name, String Creator, String Place, bool CustomOutput ) : System
Remove ( Player requester ) : void
Serialize ( ) : string

Method Details

CalculateRange() public static method

public static CalculateRange ( Portal portal ) : PortalRange
portal Portal
return PortalRange

Deserialize() public static method

public static Deserialize ( string name, string sdata, Map map ) : Portal
name string
sdata string
map Map
return Portal

DoesNameExist() public static method

public static DoesNameExist ( World world, String name ) : bool
world World
name String
return bool

GenerateName() public static method

public static GenerateName ( string World, bool Custom ) : String
World string
Custom bool
return String

IsInRange() public method

public IsInRange ( Player player ) : bool
player Player
return bool

IsInRange() public method

public IsInRange ( Vector3I vector ) : bool
vector Vector3I
return bool

Portal() public method

public Portal ( ) : System
return System

Portal() public method

public Portal ( String world, Vector3I affectedBlocks, String Name, String Creator, String Place, bool CustomOutput ) : System
world String
affectedBlocks Vector3I
Name String
Creator String
Place String
CustomOutput bool
return System

Remove() public method

public Remove ( Player requester ) : void
requester Player
return void

Serialize() public method

public Serialize ( ) : string
return string

Property Details

HasDesiredOutput public property

public bool HasDesiredOutput
return bool