public void RegisterSequence(HybrasylDialogSequence hybrasylSequence) { if (Obj is VisibleObject && !(Obj is User)) { var vobj = Obj as VisibleObject; vobj.RegisterDialogSequence(hybrasylSequence.Sequence); } }
public void AddPursuit(HybrasylDialogSequence hybrasylSequence) { if (Obj is VisibleObject && !(Obj is User)) { var vobj = Obj as VisibleObject; vobj.AddPursuit(hybrasylSequence.Sequence); } }
public HybrasylDialogSequence NewDialogSequence(string sequenceName, params object[] list) { var dialogSequence = new HybrasylDialogSequence(sequenceName); foreach (var entry in list) { Logger.InfoFormat("Type is {0}", entry.GetType().ToString()); if (entry is HybrasylDialog) { var newdialog = entry as HybrasylDialog; dialogSequence.AddDialog(newdialog); } else if (entry is PythonFunction) { var action = entry as PythonFunction; } } return(dialogSequence); }
public void RegisterGlobalSequence(HybrasylDialogSequence globalSequence) { Game.World.RegisterGlobalSequence(globalSequence.Sequence); }
public HybrasylDialogSequence NewDialogSequence(String sequenceName, params object[] list) { var dialogSequence = new HybrasylDialogSequence(sequenceName); foreach (var entry in list) { Logger.InfoFormat("Type is {0}", entry.GetType().ToString()); if (entry is HybrasylDialog) { var newdialog = entry as HybrasylDialog; dialogSequence.AddDialog(newdialog); } else if (entry is PythonFunction) { var action = entry as PythonFunction; } } return dialogSequence; }