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

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