Пример #1
0
	/// <summary>
	/// Remove a event listener
	///
	///@param l
	///           Event Lister {@link IWorldEventListener}
	/// </summary>
	public void RemoveWorldEventListener (IWorldEventListener l)
	{

		if (listeners.Contains (l)) {
			listeners.Remove (l);
		}

	}
Пример #2
0
	/// <summary>
	/// Add a world event listener
	///
	///@param l
	///           Event Listener {@link IWorldEventListener}
	/// </summary>
	public void AddWorldEventListener (IWorldEventListener l)
	{

		if (listeners == null) {
			listeners = new List<IWorldEventListener> ();
		}
		listeners.Add (l);

	}