コード例 #1
0
 public LocalizedGossipMenuItem(IGossipAction action, GossipMenu subMenu, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     this.Action  = action;
     this.SubMenu = subMenu;
 }
コード例 #2
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, RealmLangKey langKey,
                                params LocalizedGossipMenuItem[] items)
     : this(langKey)
 {
     this.Icon    = icon;
     this.SubMenu = new GossipMenu((GossipMenuItemBase[])items);
 }
コード例 #3
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, GossipActionDecider decider,
                                RealmLangKey confirmLangKey, RealmLangKey msgKey, params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     this.ConfirmText = new TranslatableItem(confirmLangKey, new object[0]);
     this.Action      = (IGossipAction) new NonNavigatingDecidingGossipAction(callback, decider);
 }
コード例 #4
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, RealmLangKey langKey,
                                params LocalizedGossipMenuItem[] items)
     : this(langKey)
 {
     Icon    = icon;
     SubMenu = new GossipMenu(items);
 }
コード例 #5
0
 public QuitGossipMenuItem(GossipMenuIcon icon, RealmLangKey text, params GossipMenuItem[] items)
     : base(icon, text, (object[])items)
 {
     this.Action =
         (IGossipAction) new NonNavigatingGossipAction((GossipActionHandler)(convo =>
                                                                             convo.Character.GossipConversation.StayOpen = false));
 }
コード例 #6
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, RealmLangKey confirmLangKey, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     ConfirmText = new TranslatableItem(confirmLangKey);
     Action      = new NonNavigatingGossipAction(callback);
 }
コード例 #7
0
 public QuitGossipMenuItem(RealmLangKey msg)
     : base(msg, new object[0])
 {
     this.Action =
         (IGossipAction) new NonNavigatingGossipAction((GossipActionHandler)(convo =>
                                                                             convo.Character.GossipConversation.StayOpen = false));
 }
コード例 #8
0
 public QuitGossipMenuItem(GossipMenu subMenu, RealmLangKey msg, params object[] args)
     : base(subMenu, msg, args)
 {
     this.Action =
         (IGossipAction) new NonNavigatingGossipAction((GossipActionHandler)(convo =>
                                                                             convo.Character.GossipConversation.StayOpen = false));
 }
コード例 #9
0
 public QuitGossipMenuItem(RealmLangKey msg, params object[] args)
     : base(msg, args)
 {
     Action =
         new NonNavigatingGossipAction(convo =>
                                       convo.Character.GossipConversation.StayOpen = false);
 }
コード例 #10
0
 public QuitGossipMenuItem(GossipMenuIcon icon, RealmLangKey text, params GossipMenuItem[] items)
     : base(icon, text, items)
 {
     Action =
         new NonNavigatingGossipAction(convo =>
                                       convo.Character.GossipConversation.StayOpen = false);
 }
コード例 #11
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, IGossipAction action, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     this.Icon   = icon;
     this.Action = action;
 }
コード例 #12
0
ファイル: GossipMenuItem.cs プロジェクト: NecroSharper/WCell
 public QuitGossipMenuItem(RealmLangKey text, params GossipMenuItem[] items)
     : base(text, items)
 {
     Action = new NonNavigatingGossipAction((convo) =>
     {
         convo.Character.GossipConversation.StayOpen = false;
     });
 }
コード例 #13
0
ファイル: GossipMenuItem.cs プロジェクト: NecroSharper/WCell
 public QuitGossipMenuItem(GossipMenu subMenu, RealmLangKey msg, params object[] args)
     : base(subMenu, msg, args)
 {
     Action = new NonNavigatingGossipAction((convo) =>
     {
         convo.Character.GossipConversation.StayOpen = false;
     });
 }
コード例 #14
0
ファイル: GossipMenuItem.cs プロジェクト: NecroSharper/WCell
 public QuitGossipMenuItem(RealmLangKey msg)
     : base(msg, new object[0])
 {
     Action = new NonNavigatingGossipAction((convo) =>
     {
         convo.Character.GossipConversation.StayOpen = false;
     });
 }
コード例 #15
0
 public LocalizedGossipMenuItem(GossipMenu subMenu, RealmLangKey msgKey, params object[] msgArgs)
     : this(msgKey, new object[3]
 {
     (object)msgArgs,
     null,
     (object)subMenu
 })
 {
 }
コード例 #16
0
 public QuitGossipMenuItem(RealmLangKey text, GossipActionHandler callback, params GossipMenuItem[] items)
     : base(text, (object[])items)
 {
     this.Action = (IGossipAction) new NonNavigatingGossipAction((GossipActionHandler)(convo =>
     {
         convo.Character.GossipConversation.StayOpen = false;
         callback(convo);
     }));
 }
コード例 #17
0
ファイル: GossipMenuItem.cs プロジェクト: NecroSharper/WCell
 public QuitGossipMenuItem(GossipMenuIcon icon, GossipActionHandler callback, RealmLangKey msg, params object[] args)
     : base(icon, msg, args)
 {
     Action = new NonNavigatingGossipAction((convo) =>
     {
         convo.Character.GossipConversation.StayOpen = false;
         callback(convo);
     });
 }
コード例 #18
0
 public QuitGossipMenuItem(GossipActionHandler callback, RealmLangKey msg = RealmLangKey.Done,
                           params object[] args)
     : base(msg, args)
 {
     this.Action = (IGossipAction) new NonNavigatingGossipAction((GossipActionHandler)(convo =>
     {
         convo.Character.GossipConversation.StayOpen = false;
         callback(convo);
     }));
 }
コード例 #19
0
 /// <summary>
 /// Sends a system message.
 /// </summary>
 /// <param name="targets">an enumerable collection of players to send the message to</param>
 /// <param name="message">the message to send</param>
 public static void SendSystemMessage(this IEnumerable <Character> targets, RealmLangKey langKey, params object[] args)
 {
     foreach (var target in targets)
     {
         if (target != null)
         {
             target.SendSystemMessage(langKey, args);
         }
     }
 }
コード例 #20
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(IGossipAction action, GossipMenu subMenu, RealmLangKey msgKey, params object[] msgArgs)
			: this(msgKey, msgArgs)
		{
			Action = action;
			SubMenu = subMenu;
		}
コード例 #21
0
 public static void Broadcast(RealmLangKey key, params object[] args)
 {
     Broadcast(null, RealmLocalizer.Instance.Translate(key, args));
 }
コード例 #22
0
 public LocalizedGossipMenuItem(GossipActionHandler callback, GossipActionDecider decider, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     this.Action = (IGossipAction) new NonNavigatingDecidingGossipAction(callback, decider);
 }
コード例 #23
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(RealmLangKey msgKey, params object[] msgArgs)
			: this(GossipMenuIcon.Talk, new TranslatableItem(msgKey, msgArgs))
		{
		}
コード例 #24
0
ファイル: Extensions.cs プロジェクト: remixod/netServer
		public static string Translate(this CmdTrigger<RealmServerCmdArgs> trigger, RealmLangKey key, params object[] args)
		{
			return RealmLocalizer.Instance.Translate(trigger.GetLocale(), key, args);
		}
コード例 #25
0
 public LocalizedGossipMenuItem(RealmLangKey msgKey, params object[] msgArgs)
     : this(GossipMenuIcon.Talk, new TranslatableItem(msgKey, msgArgs))
 {
 }
コード例 #26
0
ファイル: GossipMenu.cs プロジェクト: NecroSharper/WCell
 public void AddQuitMenuItem(RealmLangKey msg, params object[] args)
 {
     AddItem(new QuitGossipMenuItem(msg, args));
 }
コード例 #27
0
ファイル: GossipMenu.cs プロジェクト: remixod/netServer
		public void AddQuitMenuItem(RealmLangKey msg, params object[] args)
		{
			AddItem(new QuitGossipMenuItem(msg, args));
		}
コード例 #28
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		//public LocalizedGossipMenuItem(GossipActionHandler callback, RealmLangKey msgKey, params LocalizedGossipMenuItem[] items)
		//    : this(new TranslatableItem(msgKey))
		//{
		//    Action = new DefaultGossipAction(callback);
		//    SubMenu = new GossipMenu(items);
		//}

		public LocalizedGossipMenuItem(GossipMenu subMenu, RealmLangKey msgKey, params object[] msgArgs)
			: this(msgKey, msgArgs, (IGossipAction)null, subMenu)
		{
		}
コード例 #29
0
 public LocalizedGossipMenuItem(RealmLangKey msgKey)
 {
     this.Text = new TranslatableItem(msgKey, new object[0]);
 }
コード例 #30
0
 public LocalizedGossipMenuItem(RealmLangKey msgKey, params LocalizedGossipMenuItem[] items)
     : this(msgKey)
 {
     this.SubMenu = new GossipMenu((GossipMenuItemBase[])items);
 }
コード例 #31
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(GossipMenuIcon icon, RealmLangKey langKey, params LocalizedGossipMenuItem[] items)
			: this(langKey)
		{
			Icon = icon;
			SubMenu = new GossipMenu(items);
		}
コード例 #32
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(RealmLangKey msgKey, params LocalizedGossipMenuItem[] items)
			: this(msgKey)
		{
			SubMenu = new GossipMenu(items);
		}
コード例 #33
0
 public static void Broadcast(IChatter broadCaster, RealmLangKey key, params object[] args)
 {
     Broadcast(broadCaster, RealmLocalizer.Instance.Translate(key, args));
 }
コード例 #34
0
ファイル: Character.cs プロジェクト: remixod/netServer
		/// <summary>
		/// Sends a message to the client.
		/// </summary>
		public void SendSystemMessage(RealmLangKey key, params object[] args)
		{
			ChatMgr.SendSystemMessage(this, RealmLocalizer.Instance.Translate(Locale, key, args));
		}
コード例 #35
0
ファイル: GossipMenu.cs プロジェクト: remixod/netServer
		public void AddQuitMenuItem(RealmLangKey msg = RealmLangKey.Done)
		{
			AddItem(new QuitGossipMenuItem(msg, new object[0]));
		}
コード例 #36
0
ファイル: ChatMgr.cs プロジェクト: remixod/netServer
		/// <summary>
		/// Sends a system message.
		/// </summary>
		/// <param name="targets">an enumerable collection of players to send the message to</param>
		/// <param name="message">the message to send</param>
		public static void SendSystemMessage(this IEnumerable<Character> targets, RealmLangKey langKey, params object[] args)
		{
			foreach (var target in targets)
			{
				if (target != null)
				{
					target.SendSystemMessage(langKey, args);
				}
			}
		}
コード例 #37
0
ファイル: GossipMenu.cs プロジェクト: remixod/netServer
		public void AddQuitMenuItem(GossipActionHandler callback, RealmLangKey msg = RealmLangKey.Done, params object[] args)
		{
			AddItem(new QuitGossipMenuItem(callback, msg, args));
		}
コード例 #38
0
ファイル: World.cs プロジェクト: ebakkedahl/WCell
 public static void Broadcast(RealmLangKey key, params object[] args)
 {
     Broadcast(null, RealmLocalizer.Instance.Translate(key, args));
 }
コード例 #39
0
ファイル: Extensions.cs プロジェクト: remixod/netServer
		public static void ReplyFormat(this CmdTrigger<RealmServerCmdArgs> trigger, RealmLangKey key, params object[] args)
		{
			trigger.ReplyFormat(RealmLocalizer.Instance.Translate(trigger.GetLocale(), key, args));
		}
コード例 #40
0
ファイル: GossipMenuItem.cs プロジェクト: NVN/WCell
		public LocalizedGossipMenuItem(GossipMenuIcon icon, RealmLangKey langKey, GossipActionHandler callback)
			: this(langKey)
		{
			Icon = icon;
			Action = new DefaultGossipAction(callback);
		}
コード例 #41
0
 public LocalizedGossipMenuItem(IGossipAction action, RealmLangKey confirmLangKey, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(action, msgKey, msgArgs)
 {
     this.ConfirmText = new TranslatableItem(confirmLangKey, new object[0]);
 }
コード例 #42
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public QuitGossipMenuItem(GossipMenuIcon icon, RealmLangKey text, params GossipMenuItem[] items)
			: base(icon, text, items)
		{
			Action = new NonNavigatingGossipAction((convo) =>
			{
				convo.Character.GossipConversation.StayOpen = false;
			});
		}
コード例 #43
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(GossipActionHandler callback, RealmLangKey confirmLangKey, RealmLangKey msgKey, params object[] msgArgs)
			: this(msgKey, msgArgs)
		{
			ConfirmText = new TranslatableItem(confirmLangKey);
			Action = new NonNavigatingGossipAction(callback);
		}
コード例 #44
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public QuitGossipMenuItem(GossipMenuIcon icon, GossipActionHandler callback, RealmLangKey msg, params object[] args)
			: base(icon, msg, args)
		{
			Action = new NonNavigatingGossipAction((convo) =>
			{
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
コード例 #45
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(GossipMenuIcon icon, IGossipAction action, RealmLangKey msgKey, params object[] msgArgs)
			: this(msgKey, msgArgs)
		{
			Icon = icon;
			Action = action;
		}
コード例 #46
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(GossipActionHandler callback, GossipMenu subMenu, RealmLangKey msgKey, params object[] msgArgs)
			: this(msgKey, msgArgs)
		{
			Action = new NonNavigatingGossipAction(callback);
			SubMenu = subMenu;
		}
コード例 #47
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(GossipMenuIcon icon, GossipActionHandler callback, RealmLangKey msgKey, params object[] msgArgs)
			: this(msgKey, msgArgs)
		{
			Icon = icon;
			Action = new NonNavigatingGossipAction(callback);
		}
コード例 #48
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public LocalizedGossipMenuItem(RealmLangKey msgKey)
		{
			Text = new TranslatableItem(msgKey);
		}
コード例 #49
0
 public LocalizedGossipMenuItem(GossipMenuIcon icon, GossipActionHandler callback, RealmLangKey msgKey,
                                params object[] msgArgs)
     : this(msgKey, msgArgs)
 {
     this.Icon   = icon;
     this.Action = (IGossipAction) new NonNavigatingGossipAction(callback);
 }
コード例 #50
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public QuitGossipMenuItem(GossipMenuIcon type = GossipMenuIcon.Talk, RealmLangKey msg = RealmLangKey.Done)
			: base(type, msg, new object[0])
		{
		}
コード例 #51
0
ファイル: GossipMenu.cs プロジェクト: NecroSharper/WCell
 public void AddQuitMenuItem(RealmLangKey msg = RealmLangKey.Done)
 {
     AddItem(new QuitGossipMenuItem(msg, new object[0]));
 }
コード例 #52
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public QuitGossipMenuItem(GossipMenuIcon type, RealmLangKey msg, params object[] args)
			: base(type, msg, args)
		{
		}
コード例 #53
0
ファイル: GossipMenu.cs プロジェクト: NecroSharper/WCell
 public void AddQuitMenuItem(GossipActionHandler callback, RealmLangKey msg = RealmLangKey.Done, params object[] args)
 {
     AddItem(new QuitGossipMenuItem(callback, msg, args));
 }
コード例 #54
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public QuitGossipMenuItem(RealmLangKey msg)
			: base(msg, new object[0])
		{
			Action = new NonNavigatingGossipAction((convo) =>
			{
				convo.Character.GossipConversation.StayOpen = false;
			});
		}
コード例 #55
0
ファイル: Character.cs プロジェクト: remixod/netServer
		public void Notify(RealmLangKey key, params object[] args)
		{
			Notify(RealmLocalizer.Instance.Translate(Locale, key, args));
		}
コード例 #56
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public QuitGossipMenuItem(RealmLangKey text, GossipActionHandler callback, params GossipMenuItem[] items)
			: base(text, items)
		{
			Action = new NonNavigatingGossipAction((convo) =>
			{
				convo.Character.GossipConversation.StayOpen = false;
				callback(convo);
			});
		}
コード例 #57
0
ファイル: ChatMgr.cs プロジェクト: remixod/netServer
		/// <summary>
		/// Sends the amount of experience gained to the characters combat log.
		/// </summary>
		/// <param name="target">the character to receieve the combat log message</param>
		/// <param name="message">the message to display in the characters combat log</param>
		public static void SendCombatLogExperienceMessage(IPacketReceiver target, ClientLocale locale, RealmLangKey key, params object[] args)
		{
			using (var packet = CreateCharChatMessage(ChatMsgType.CombatXPGain, ChatLanguage.Universal, EntityId.Zero, EntityId.Zero, null,
				RealmLocalizer.Instance.Translate(locale, key, args), ChatTag.None))
			{
				target.Send(packet);
			}
		}
コード例 #58
0
ファイル: GossipMenuItem.cs プロジェクト: MeaNone/WCell
		public QuitGossipMenuItem(GossipMenu subMenu, RealmLangKey msg, params object[] args)
			: base(subMenu, msg, args)
		{
			Action = new NonNavigatingGossipAction((convo) =>
			{
				convo.Character.GossipConversation.StayOpen = false;
			});
		}
コード例 #59
0
ファイル: World.cs プロジェクト: ebakkedahl/WCell
 public static void Broadcast(IChatter broadCaster, RealmLangKey key, params object[] args)
 {
     Broadcast(broadCaster, RealmLocalizer.Instance.Translate(key, args));
 }
コード例 #60
0
ファイル: GossipMenuItem.cs プロジェクト: NVN/WCell
		public LocalizedGossipMenuItem(GossipMenuIcon icon, RealmLangKey langKey, IGossipAction action)
			: this(langKey)
		{
			Icon = icon;
			Action = action;
		}