Ejemplo n.º 1
0
 public override void Initialize()
 {
     Warpplates = new WarpplateManager(TShock.DB);
     ServerApi.Hooks.GamePostInitialize.Register(this, OnPostInit);
     ServerApi.Hooks.GameInitialize.Register(this, OnInitialize);
     ServerApi.Hooks.GameUpdate.Register(this, OnUpdate);
     ServerApi.Hooks.NetGreetPlayer.Register(this, OnGreetPlayer);
     ServerApi.Hooks.ServerLeave.Register(this, OnLeave);
 }
Ejemplo n.º 2
0
 public override void Initialize()
 {
     Warpplates = new WarpplateManager(TShock.DB);
     GameHooks.PostInitialize += OnPostInit;
     GameHooks.Initialize += OnInitialize;
     GameHooks.Update += OnUpdate;
     NetHooks.GreetPlayer += OnGreetPlayer;
     ServerHooks.Leave += OnLeave;
 }
Ejemplo n.º 3
0
        public override void Initialize()
        {
            Warpplates = new WarpplateManager(TShock.DB);
            var Hook = ServerApi.Hooks;

            Hook.GamePostInitialize.Register(this, (args) => { OnPostInit(); });
            Hook.GameInitialize.Register(this, (args) => { OnInitialize(); });
            Hook.GameUpdate.Register(this, (args) => { OnUpdate(); });
            Hook.NetGreetPlayer.Register(this, OnGreetPlayer);
            Hook.ServerLeave.Register(this, OnLeave);
        }
Ejemplo n.º 4
0
 public override void Initialize()
 {
     WarpplatePlugin.Warpplates = new WarpplateManager(TShock.DB);
     HookManager hooks = ServerApi.Hooks;
     hooks.GamePostInitialize.Register(this, delegate(EventArgs args)
     {
         this.OnPostInit();
     });
     hooks.GameInitialize.Register(this, delegate(EventArgs args)
     {
         this.OnInitialize();
     });
     hooks.GameUpdate.Register(this, delegate(EventArgs args)
     {
         this.OnUpdate();
     });
     hooks.NetGreetPlayer.Register(this, this.OnGreetPlayer);
     hooks.ServerLeave.Register(this, this.OnLeave);
 }