예제 #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());
        }
예제 #2
0
 public abstract ProcState CreateState(DreamThread thread, DreamObject src, DreamObject usr, DreamProcArguments arguments);
예제 #3
0
 public ProcState(DreamThread thread)
 {
     Thread = thread;
 }