Beispiel #1
0
        // Execute this proc. This will behave as if the proc has `set waitfor = 0`
        public DreamValue Spawn(DreamObject src, DreamProcArguments arguments, DreamObject usr = null)
        {
            var context = new DreamThread();
            var state   = CreateState(context, src, usr, arguments);

            context.PushProcState(state);
            return(context.Resume());
        }
 public abstract ProcState CreateState(DreamThread thread, DreamObject src, DreamObject usr, DreamProcArguments arguments);
 public ProcState(DreamThread thread)
 {
     Thread = thread;
 }