All pastes #418217 Raw Edit

Mine

public text v1 · immutable
#418217 ·published 2007-03-31 13:53 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Text;
using LavishScriptAPI;

namespace Bytebot
{
    public sealed class Events
    {
        static readonly Events instance = new Events();
        public event EventHandler<LavishScriptAPI.LSEventArgs> Event_Bytebot;

        static Events()
        {
        }

        Events()
        {
            LavishScript.Events.AttachEventTarget(LavishScript.Events.RegisterEvent("BYTEBOT"), Event_Bytebot);
        }

        ~Events()
        {
            LavishScript.Events.DetachEventTarget(LavishScript.Events.RegisterEvent("BYTEBOT"), Event_Bytebot);
        }

        public static Events Instance
        {
            get
            {
                return instance;
            }
        }
    }
}