C# Class MCSharp.World.Map

Afficher le fichier Open project: Voziv/MCSharp Class Usage Examples

Méthodes publiques

Свойство 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

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

public Backup ( ) : bool
Résultat bool

Backup() public méthode

public Backup ( string path ) : bool
path string
Résultat bool

Blockchange() public méthode

public Blockchange ( Player p, ushort x, ushort y, ushort z, byte type ) : void
p Player
x ushort
y ushort
z ushort
type byte
Résultat void

Blockchange() public méthode

public Blockchange ( ushort x, ushort y, ushort z, byte type ) : void
x ushort
y ushort
z ushort
type byte
Résultat void

Exists() public static méthode

public static Exists ( string name ) : bool
name string
Résultat bool

GetTile() public méthode

public GetTile ( int b ) : byte
b int
Résultat byte

GetTile() public méthode

public GetTile ( ushort x, ushort y, ushort z ) : byte
x ushort
y ushort
z ushort
Résultat byte

IntOffset() public méthode

public IntOffset ( int pos, int x, int y, int z ) : int
pos int
x int
y int
z int
Résultat int

IntToPos() public méthode

public IntToPos ( int pos, ushort &x, ushort &y, ushort &z ) : void
pos int
x ushort
y ushort
z ushort
Résultat void

Load() public static méthode

public static Load ( string name ) : Map
name string
Résultat Map

Load() public static méthode

public static Load ( string name, Physics phys ) : Map
name string
phys Physics
Résultat Map

Loaded() public static méthode

public static Loaded ( string name ) : bool
name string
Résultat bool

Map() public méthode

public Map ( string n, ushort x, ushort y, ushort z, string type ) : System
n string
x ushort
y ushort
z ushort
type string
Résultat System

PermissionFromName() public static méthode

public static PermissionFromName ( string name ) : LevelPermission
name string
Résultat LevelPermission

PermissionToName() public static méthode

public static PermissionToName ( LevelPermission perm ) : string
perm LevelPermission
Résultat string

PlayerCanVisit() public méthode

public PlayerCanVisit ( Player p ) : bool
p Player
Résultat bool

PosToInt() public méthode

public PosToInt ( ushort x, ushort y, ushort z ) : int
x ushort
y ushort
z ushort
Résultat int

Save() public méthode

public Save ( ) : void
Résultat void

SetTile() public méthode

public SetTile ( ushort x, ushort y, ushort z, byte type ) : void
x ushort
y ushort
z ushort
type byte
Résultat void

Property Details

blocks public_oe property

public byte[] blocks
Résultat byte[]

changed public_oe property

public bool changed
Résultat bool

depth public_oe property

public ushort depth
Résultat ushort

doors public_oe property

public Block,MCSharp.World doors
Résultat MCSharp.World.Block

emptyCount public_oe property

public int emptyCount
Résultat int

height public_oe property

public ushort height
Résultat ushort

jailedPlayers public_oe property

public List jailedPlayers
Résultat List

jailedRotX public_oe property

public byte jailedRotX
Résultat byte

jailedRotY public_oe property

public byte jailedRotY
Résultat byte

jailedX public_oe property

public ushort jailedX
Résultat ushort

jailedY public_oe property

public ushort jailedY
Résultat ushort

jailedZ public_oe property

public ushort jailedZ
Résultat ushort

name public_oe property

public string name
Résultat string

permissionbuild public_oe property

public LevelPermission permissionbuild
Résultat LevelPermission

permissionvisit public_oe property

public LevelPermission permissionvisit
Résultat LevelPermission

rotx public_oe property

public byte rotx
Résultat byte

roty public_oe property

public byte roty
Résultat byte

spawnx public_oe property

public ushort spawnx
Résultat ushort

spawny public_oe property

public ushort spawny
Résultat ushort

spawnz public_oe property

public ushort spawnz
Résultat ushort

width public_oe property

public ushort width
Résultat ushort