示例#1
0
 public void RegisterSequence(HybrasylDialogSequence hybrasylSequence)
 {
     if (Obj is VisibleObject && !(Obj is User))
     {
         var vobj = Obj as VisibleObject;
         vobj.RegisterDialogSequence(hybrasylSequence.Sequence);
     }
 }
示例#2
0
 public void AddPursuit(HybrasylDialogSequence hybrasylSequence)
 {
     if (Obj is VisibleObject && !(Obj is User))
     {
         var vobj = Obj as VisibleObject;
         vobj.AddPursuit(hybrasylSequence.Sequence);
     }
 }
示例#3
0
        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);
        }
示例#4
0
 public void RegisterGlobalSequence(HybrasylDialogSequence globalSequence)
 {
     Game.World.RegisterGlobalSequence(globalSequence.Sequence);
 }
示例#5
0
 public void RegisterSequence(HybrasylDialogSequence hybrasylSequence)
 {
     if (Obj is VisibleObject && !(Obj is User))
     {
         var vobj = Obj as VisibleObject;
         vobj.RegisterDialogSequence(hybrasylSequence.Sequence);
     }
 }
示例#6
0
        public void AddPursuit(HybrasylDialogSequence hybrasylSequence)
        {
            if (Obj is VisibleObject && !(Obj is User))
            {
                var vobj = Obj as VisibleObject;
                vobj.AddPursuit(hybrasylSequence.Sequence);
            }

        }
示例#7
0
        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;
        }
示例#8
0
 public void RegisterGlobalSequence(HybrasylDialogSequence globalSequence)
 {
     Game.World.RegisterGlobalSequence(globalSequence.Sequence);
 }