Exemplo n.º 1
0
        public void TileModifiedHandler(TileEventArg e)
        {
            EventHandler <TileEventArg> handler = TileModified;

            if (handler != null)
            {
                handler(World.MainWorld, e);
            }
        }
Exemplo n.º 2
0
        public event EventHandler <TileEventArg> TileModified; //have this be used by the stone stuff so it can determine when to change what texture it is using.

        /// <summary>
        /// Raises the world generated event.
        /// </summary>
        /// <param name="e"></param>
        public static void TileCreatedHandler(TileEventArg e)
        {
            EventHandler <TileEventArg> handler = TileCreated;

            if (handler != null)
            {
                handler(World.MainWorld, e);
            }
        }
Exemplo n.º 3
0
 public void TileModifiedHandler(TileEventArg e)
 {
     TileModified?.Invoke(this, e);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Raises the world generated event.
 /// </summary>
 /// <param name="e"></param>
 public static void TileCreatedHandler(TileEventArg e)
 {
     TileCreated?.Invoke(e, e);
 }