C# Class MineFrog.Level

Afficher le fichier Open project: Merlin33069/MineFrog Class Usage Examples

Méthodes publiques

Свойство Type Description
BlockData byte[]
BlockPosCreationAverager Averager
Generator LevelGenerator
IsUnloaded bool
Name string
Physics PhysicsHandler
Players List
SizeX ushort
SizeXZmultiplied int
SizeY ushort
SizeZ ushort
SpawnPos Pos

Private Properties

Свойство Type Description
DirectoryCheck void
PhysicsBlockChange bool
PlayerBlockChange bool
SaveCheck void
UncompressAndCreateHandle void

Méthodes publiques

Méthode Description
BlockChange ( ushort x, ushort y, ushort z, byte type ) : bool
Create ( ushort inx, ushort iny, ushort inz, string type ) : void
Find ( string name ) : Level
FullSave ( ) : void
GetTile ( BlockPos pos ) : MCBlocks
GetTile ( int pos ) : byte
GetTile ( ushort x, ushort y, ushort z ) : byte
GetTileByOffset ( BlockPos pos, int diffX, int diffY, int diffZ ) : MCBlocks
IntOffset ( int pos, int x, int y, int z ) : int
IntToBlockPos ( int pos ) : BlockPos
Level ( string fileName, bool shouldCreateIfNotExist ) : System
Level ( string name, ushort x, ushort y, ushort z ) : System
Level ( string name, ushort x, ushort y, ushort z, string type ) : System
Load ( string name ) : void
NotInBounds ( BlockPos pos ) : bool
NotInBounds ( ushort x, ushort y, ushort z ) : bool
PhysicsBlockChange ( BlockPos pos, MCBlocks type ) : bool
PhysicsCheck ( ushort inX, ushort inY, ushort inZ ) : void
PosToInt ( BlockPos pos ) : int
PosToInt ( ushort x, ushort y, ushort z ) : int
SetTile ( ushort x, ushort y, ushort z, byte type ) : bool
Unload ( ) : void

Private Methods

Méthode Description
DirectoryCheck ( ) : void
PhysicsBlockChange ( BlockPos pos, byte type ) : bool
PlayerBlockChange ( Player changer, ushort x, ushort y, ushort z, byte type ) : bool
SaveCheck ( ) : void
UncompressAndCreateHandle ( ) : void

Method Details

BlockChange() public méthode

public BlockChange ( ushort x, ushort y, ushort z, byte type ) : bool
x ushort
y ushort
z ushort
type byte
Résultat bool

Create() public méthode

public Create ( ushort inx, ushort iny, ushort inz, string type ) : void
inx ushort
iny ushort
inz ushort
type string
Résultat void

Find() public static méthode

public static Find ( string name ) : Level
name string
Résultat Level

FullSave() public méthode

public FullSave ( ) : void
Résultat void

GetTile() public méthode

public GetTile ( BlockPos pos ) : MCBlocks
pos BlockPos
Résultat MCBlocks

GetTile() public méthode

public GetTile ( int pos ) : byte
pos 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

GetTileByOffset() public méthode

public GetTileByOffset ( BlockPos pos, int diffX, int diffY, int diffZ ) : MCBlocks
pos BlockPos
diffX int
diffY int
diffZ int
Résultat MCBlocks

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

IntToBlockPos() public méthode

public IntToBlockPos ( int pos ) : BlockPos
pos int
Résultat BlockPos

Level() public méthode

public Level ( string fileName, bool shouldCreateIfNotExist ) : System
fileName string
shouldCreateIfNotExist bool
Résultat System

Level() public méthode

public Level ( string name, ushort x, ushort y, ushort z ) : System
name string
x ushort
y ushort
z ushort
Résultat System

Level() public méthode

public Level ( string name, ushort x, ushort y, ushort z, string type ) : System
name string
x ushort
y ushort
z ushort
type string
Résultat System

Load() public méthode

public Load ( string name ) : void
name string
Résultat void

NotInBounds() public méthode

public NotInBounds ( BlockPos pos ) : bool
pos BlockPos
Résultat bool

NotInBounds() public méthode

public NotInBounds ( ushort x, ushort y, ushort z ) : bool
x ushort
y ushort
z ushort
Résultat bool

PhysicsBlockChange() public méthode

public PhysicsBlockChange ( BlockPos pos, MCBlocks type ) : bool
pos BlockPos
type MCBlocks
Résultat bool

PhysicsCheck() public méthode

public PhysicsCheck ( ushort inX, ushort inY, ushort inZ ) : void
inX ushort
inY ushort
inZ ushort
Résultat void

PosToInt() public méthode

public PosToInt ( BlockPos pos ) : int
pos BlockPos
Résultat int

PosToInt() public méthode

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

SetTile() public méthode

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

Unload() public méthode

public Unload ( ) : void
Résultat void

Property Details

BlockData public_oe property

public byte[] BlockData
Résultat byte[]

BlockPosCreationAverager public_oe static_oe property

public static Averager,MineFrog BlockPosCreationAverager
Résultat Averager

Generator public_oe property

public LevelGenerator,MineFrog Generator
Résultat LevelGenerator

IsUnloaded public_oe property

public bool IsUnloaded
Résultat bool

Name public_oe property

public string Name
Résultat string

Physics public_oe property

public PhysicsHandler,MineFrog Physics
Résultat PhysicsHandler

Players public_oe property

public List Players
Résultat List

SizeX public_oe property

public ushort SizeX
Résultat ushort

SizeXZmultiplied public_oe property

public int SizeXZmultiplied
Résultat int

SizeY public_oe property

public ushort SizeY
Résultat ushort

SizeZ public_oe property

public ushort SizeZ
Résultat ushort

SpawnPos public_oe property

public Pos,MineFrog SpawnPos
Résultat Pos