using System;
using System.Collections.Generic;
using System.Text;

namespace NLuaTest.Mock
{
	public class Entity
	{
		public event EventHandler<EventArgs> Clicked;

		protected virtual void OnEntityClicked (EventArgs e)
		{
			EventHandler<EventArgs> handler = Clicked;

			if (handler != null) {
				// Use the () operator to raise the event.
				handler (this, e);
			}
		}

		public string Property {
			get;
			set;
		}

		// default ctor
		public Entity ()
		{
			Property = "Default";
		}
		// string ctor
		public Entity (string param)
		{
			Property = "String";

		}

		public Entity (int param)
		{
			Property = "Int";
		}

		public void Click ()
		{
			OnEntityClicked (new EventArgs ());
		}
	}
}
