예제 #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);
 }