Aura.Channel.Scripting.Scripts.NpcScript.Conversation C# (CSharp) Метод

Conversation() публичный Метод

Conversation (keywords) loop.
This is a separate method so it can be called from hooks that go into keyword handling after they're done, without mood message.
public Conversation ( ) : Task
Результат Task
		public virtual async Task Conversation()
		{
			// Infinite keyword handling until End is clicked.
			while (true)
			{
				this.ShowKeywords();
				var keyword = await Select();

				if (keyword == "@end")
					break;

				// Don't go into normal keyword handling if a hook handled
				// the keyword.
				var hooked = await Hook("before_keywords", keyword);
				if (hooked)
					continue;

				await this.Keywords(keyword);
			}
		}