public override ChatEvent Fire(ChatRuntime cr) { ChatEvent ce = base.Fire(cr); cr.Run(cr.FindChat(Text)); return(ce); }
public ConsoleApp(FileInfo fileOrFolder) { dialogic = new ChatRuntime(); dialogic.ParseFile(fileOrFolder); dialogic.Preload(globals); dialogic.Run(); }
public static void Main(string[] args) { //List<Chat> chats = ChatParser.ParseText("PACE 13\nSAY Hello\n"); List <Chat> chats = ChatParser.ParseFile("gscript.gs"); ChatRuntime cm = new ChatRuntime(chats); ConsoleClient cl = new ConsoleClient(); // Example client cl.Subscribe(cm); // Client subscribes to chat events cm.Subscribe(cl); // Dialogic subscribes to Unity events cm.Run(); }