コード例 #1
0
        public void TileModifiedHandler(TileEventArg e)
        {
            EventHandler <TileEventArg> handler = TileModified;

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