コード例 #1
0
		public static void Initialize()
		{
			Instance = World.GetCore(typeof(ToolbarCore)) as ToolbarCore ?? new ToolbarCore();

			CommandHandlers.Register("Toolbar", AccessLevel.Counselor, Toolbar_OnCommand);

			EventSink.Login += OnLogin;
			EventSink.PlayerDeath += OnPlayerDeath;
		}
コード例 #2
0
        public static void Initialize()
        {
            Instance = World.GetCore(typeof(ToolbarCore)) as ToolbarCore ?? new ToolbarCore();

            CommandHandlers.Register("Toolbar", AccessLevel.Counselor, Toolbar_OnCommand);

            EventSink.Login       += OnLogin;
            EventSink.PlayerDeath += OnPlayerDeath;
        }
コード例 #3
0
ファイル: ToolbarCore.cs プロジェクト: GaeaUO/ForkUO
        public static void Initialize()
        {
            ToolbarCore core = World.GetCore(typeof(ToolbarCore)) as ToolbarCore;

            if (core == null)
                core = new ToolbarCore();

            CommandHandlers.Register("Toolbar", AccessLevel.VIP, Toolbar_OnCommand);
            EventSink.Login += OnLogin;
            EventSink.PlayerDeath += OnPlayerDeath;
        }
コード例 #4
0
        public static void Initialize()
        {
            ToolbarCore core = World.GetCore(typeof(ToolbarCore)) as ToolbarCore;

            if (core == null)
            {
                core = new ToolbarCore();
            }

            CommandHandlers.Register("Toolbar", AccessLevel.VIP, Toolbar_OnCommand);
            EventSink.Login       += OnLogin;
            EventSink.PlayerDeath += OnPlayerDeath;
        }