Example #1
0
 public BlockEventArgs(Block block, int x, int y, int z)
 {
     this.Block = block;
     this.X = x;
     this.Y = y;
     this.Z = z;
 }
Example #2
0
 public static bool IsSimilar(Block block1, Block block2)
 {
     if ((block1 == null) && (block2 == null))
         return true;
     if ((block1 != null) && (block2 != null))
         return true;
     // TODO: Extend behaviour
     return false;
 }
 public void SetBlock(int x, int y, int z, Block b)
 {
     this.sender.Send(NetworkPhrase.SetBlock, (s) =>
         {
             s.Write(x);
             s.Write(y);
             s.Write(z);
             s.Write(b.GetType().AssemblyQualifiedName);
             b.Serialize(s);
         });
 }
Example #4
0
 protected void OnBlockChanged(Block block, int x, int y, int z)
 {
     if (this.BlockChanged != null)
         this.BlockChanged(this, new BlockEventArgs(block, x, y, z));
 }