C# Class MCSharp.World.Map

Show file Open project: Voziv/MCSharp Class Usage Examples

Public Properties

Property Type Description
blocks byte[]
changed bool
depth ushort
doors MCSharp.World.Block
emptyCount int
height ushort
jailedPlayers List
jailedRotX byte
jailedRotY byte
jailedX ushort
jailedY ushort
jailedZ ushort
name string
permissionbuild LevelPermission
permissionvisit LevelPermission
rotx byte
roty byte
spawnx ushort
spawny ushort
spawnz ushort
width ushort

Private Properties

Property Type Description

Public Methods

Method Description
Backup ( ) : bool
Backup ( string path ) : bool
Blockchange ( Player p, ushort x, ushort y, ushort z, byte type ) : void
Blockchange ( ushort x, ushort y, ushort z, byte type ) : void
Exists ( string name ) : bool
GetTile ( int b ) : byte
GetTile ( ushort x, ushort y, ushort z ) : byte
IntOffset ( int pos, int x, int y, int z ) : int
IntToPos ( int pos, ushort &x, ushort &y, ushort &z ) : void
Load ( string name ) : Map
Load ( string name, Physics phys ) : Map
Loaded ( string name ) : bool
Map ( string n, ushort x, ushort y, ushort z, string type ) : System
PermissionFromName ( string name ) : LevelPermission
PermissionToName ( LevelPermission perm ) : string
PlayerCanVisit ( Player p ) : bool
PosToInt ( ushort x, ushort y, ushort z ) : int
Save ( ) : void
SetTile ( ushort x, ushort y, ushort z, byte type ) : void

Method Details

Backup() public method

public Backup ( ) : bool
return bool

Backup() public method

public Backup ( string path ) : bool
path string
return bool

Blockchange() public method

public Blockchange ( Player p, ushort x, ushort y, ushort z, byte type ) : void
p Player
x ushort
y ushort
z ushort
type byte
return void

Blockchange() public method

public Blockchange ( ushort x, ushort y, ushort z, byte type ) : void
x ushort
y ushort
z ushort
type byte
return void

Exists() public static method

public static Exists ( string name ) : bool
name string
return bool

GetTile() public method

public GetTile ( int b ) : byte
b int
return byte

GetTile() public method

public GetTile ( ushort x, ushort y, ushort z ) : byte
x ushort
y ushort
z ushort
return byte

IntOffset() public method

public IntOffset ( int pos, int x, int y, int z ) : int
pos int
x int
y int
z int
return int

IntToPos() public method

public IntToPos ( int pos, ushort &x, ushort &y, ushort &z ) : void
pos int
x ushort
y ushort
z ushort
return void

Load() public static method

public static Load ( string name ) : Map
name string
return Map

Load() public static method

public static Load ( string name, Physics phys ) : Map
name string
phys Physics
return Map

Loaded() public static method

public static Loaded ( string name ) : bool
name string
return bool

Map() public method

public Map ( string n, ushort x, ushort y, ushort z, string type ) : System
n string
x ushort
y ushort
z ushort
type string
return System

PermissionFromName() public static method

public static PermissionFromName ( string name ) : LevelPermission
name string
return LevelPermission

PermissionToName() public static method

public static PermissionToName ( LevelPermission perm ) : string
perm LevelPermission
return string

PlayerCanVisit() public method

public PlayerCanVisit ( Player p ) : bool
p Player
return bool

PosToInt() public method

public PosToInt ( ushort x, ushort y, ushort z ) : int
x ushort
y ushort
z ushort
return int

Save() public method

public Save ( ) : void
return void

SetTile() public method

public SetTile ( ushort x, ushort y, ushort z, byte type ) : void
x ushort
y ushort
z ushort
type byte
return void

Property Details

blocks public property

public byte[] blocks
return byte[]

changed public property

public bool changed
return bool

depth public property

public ushort depth
return ushort

doors public property

public Block,MCSharp.World doors
return MCSharp.World.Block

emptyCount public property

public int emptyCount
return int

height public property

public ushort height
return ushort

jailedPlayers public property

public List jailedPlayers
return List

jailedRotX public property

public byte jailedRotX
return byte

jailedRotY public property

public byte jailedRotY
return byte

jailedX public property

public ushort jailedX
return ushort

jailedY public property

public ushort jailedY
return ushort

jailedZ public property

public ushort jailedZ
return ushort

name public property

public string name
return string

permissionbuild public property

public LevelPermission permissionbuild
return LevelPermission

permissionvisit public property

public LevelPermission permissionvisit
return LevelPermission

rotx public property

public byte rotx
return byte

roty public property

public byte roty
return byte

spawnx public property

public ushort spawnx
return ushort

spawny public property

public ushort spawny
return ushort

spawnz public property

public ushort spawnz
return ushort

width public property

public ushort width
return ushort