Adil
DevBest CEO
- May 28, 2011
- 1,278
- 718
PHP:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Revolution.Application.HabboHotel.Commands.Interface
{
interface ISendableCommand
{
public void Register();
public void SendCommand(Mango.Communication.Sessions.Session Session);
public void Unregister();
}
}
PHP:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Revolution.Application.HabboHotel.Commands.Interface;
namespace Revolution.Application.HabboHotel.Commands.SendableCommands
{
class ExampleCommand : ISendableCommand
{
public void Register()
{ }
public void SendCommand(Mango.Communication.Sessions.Session Session)
{
if (Session != null )
{
Session.SendAlert("aduidf");
Session.Disconnect();
}
}
public void Unregister()
{ }
}
}
All commands are invoked from a dictionary based on their "call". I.e
:help will invoke the help command.
This allows you to customise rev easily and safely.
I just started the system, I will post more information soon!