Commit 5fc72461 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Mono-style format.

parent a0e1671c
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LuaInterfaceTest.Mock
{
public class Entity
{
public event EventHandler<EventArgs> Clicked;
public class Entity
{
public event EventHandler<EventArgs> Clicked;
protected virtual void OnEntityClicked(EventArgs e)
{
EventHandler<EventArgs> handler = Clicked;
protected virtual void OnEntityClicked (EventArgs e)
{
EventHandler<EventArgs> handler = Clicked;
if (handler != null)
{
// Use the () operator to raise the event.
handler(this, e);
}
}
if (handler != null) {
// Use the () operator to raise the event.
handler (this, e);
}
}
public Entity()
{
public Entity ()
{
}
}
public void Click()
{
OnEntityClicked(new EventArgs());
}
}
public void Click ()
{
OnEntityClicked (new EventArgs ());
}
}
}
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment