コード例 #1
0
ファイル: BlockPosition.cs プロジェクト: Tristyn/MCFire
 public BlockPosition(ChunkPosition chunkPosition, LocalBlockPosition local, ChunkSize size)
     : this()
 {
     X = local.X + chunkPosition.ChunkX * size.X;
     Y = local.Y;
     Z = local.Z + chunkPosition.ChunkZ * size.Z;
 }
 public ChunkPositionDimension(ChunkPosition position, int dimension)
 {
     _dimension = dimension;
     _chunkX    = position.ChunkX;
     _chunkZ    = position.ChunkZ;
 }
コード例 #3
0
 public LocalBlockPosition(ChunkPosition chunk, BlockPosition position, ChunkSize chunkSize)
     : this(position.X - chunk.ChunkX * chunkSize.X, position.Y, position.Z - chunk.ChunkZ * chunkSize.Y)
 {
 }