C# Class fCraft.BlockDBEntry

Datei anzeigen Open project: fragmer/fCraft Class Usage Examples

Public Properties

Property Type Description
Context BlockChangeContext
NewBlock Block
OldBlock Block
PlayerID int
PlayerId int
Timestamp int
X short
Y short
Z short

Public Methods

Method Description
BlockDBEntry ( int timestamp, int playerID, Vector3I coords, Block oldBlock, Block newBlock, BlockChangeContext flags ) : System.IO
BlockDBEntry ( int timestamp, int playerID, short x, short y, short z, Block oldBlock, Block newBlock, BlockChangeContext flags ) : System.IO
Serialize ( BinaryWriter writer ) : void

Method Details

BlockDBEntry() public method

public BlockDBEntry ( int timestamp, int playerID, Vector3I coords, Block oldBlock, Block newBlock, BlockChangeContext flags ) : System.IO
timestamp int
playerID int
coords Vector3I
oldBlock Block
newBlock Block
flags BlockChangeContext
return System.IO

BlockDBEntry() public method

public BlockDBEntry ( int timestamp, int playerID, short x, short y, short z, Block oldBlock, Block newBlock, BlockChangeContext flags ) : System.IO
timestamp int
playerID int
x short
y short
z short
oldBlock Block
newBlock Block
flags BlockChangeContext
return System.IO

Serialize() public method

public Serialize ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter
return void

Property Details

Context public_oe property

Context for this block change.
public BlockChangeContext Context
return BlockChangeContext

NewBlock public_oe property

Block that now occupies this coordinate
public Block NewBlock
return Block

OldBlock public_oe property

Block that previously occupied this coordinate
public Block OldBlock
return Block

PlayerID public_oe property

Numeric PlayerDB id of the player who made the change.
public int PlayerID
return int

PlayerId public_oe property

Numeric PlayerDB id of the player who made the change.
public int PlayerId
return int

Timestamp public_oe property

UTC Unix timestamp of the change.
public int Timestamp
return int

X public_oe property

X coordinate (horizontal), in terms of blocks.
public short X
return short

Y public_oe property

Y coordinate (horizontal), in terms of blocks.
public short Y
return short

Z public_oe property

Z coordinate (vertical), in terms of blocks.
public short Z
return short