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