Esempio n. 1
0
 /// <summary>
 /// Called when this block is placed
 /// </summary>
 /// <param name="world">The world it was placed in</param>
 /// <param name="position">The position it was placed at</param>
 /// <param name="blockClicked">The location of the block left clicked upon placing</param>
 /// <param name="facing">The facing of the placement</param>
 /// <returns>False to override placement</returns>
 /// <remarks></remarks>
 public virtual bool BlockPlaced(World world, Vector3 position, Vector3 blockClicked, byte facing)
 {
     return true;
 }
Esempio n. 2
0
 /// <summary>
 /// Adds the world.
 /// </summary>
 /// <param name="world">The world.</param>
 /// <remarks></remarks>
 public static void AddWorld(World world)
 {
     Server.ClassicServer.Worlds.Add(world);
 }
Esempio n. 3
0
 /// <summary>
 /// Called when this block is destroyed
 /// </summary>
 /// <param name="world">The world the block used to exist in</param>
 /// <param name="position">The position the block used to occupy</param>
 /// <remarks></remarks>
 public virtual void BlockDestroyed(World world, Vector3 position)
 {
 }
Esempio n. 4
0
 public static void LevelMessage(string message, World mWorld)
 {
 }