Exemplo n.º 1
0
        public override void Initialize()
        {
            _luaLoader = new LuaLoader(Path.Combine(".", "lua"), _lGame, _lHooks);

            GameHooks.Initialize += new Action(OnInitialize);
            GameHooks.PostInitialize += OnPostInitialize;
            GameHooks.Update += new Action(OnUpdate);
            GameHooks.PostUpdate += new Action(OnPostUpdate);

            ServerHooks.Join += OnJoin;
            ServerHooks.Leave += OnLeave;
            ServerHooks.Chat += OnChat;
            ServerHooks.Command += OnCommand;

            NetHooks.GetData += new NetHooks.GetDataD(OnGetData);
            NetHooks.GreetPlayer += OnGreetPlayer;
        }
Exemplo n.º 2
0
 public LuaFunctions(LuaLoader parent)
 {
     _parent = parent;
 }