示例#1
0
        private void Tick()
        {
            if (BHAVDirty)
            {
                foreach (var ent in Entities)
                {
                    if (ent.Thread != null)
                    {
                        ent.Thread.RoutineDirty = true;
                    }
                }
                BHAVDirty = false;
            }

            //Tick for the Free Will control
            if (Context.Blueprint != null)
            {
                FreeWill.Tick(this);
            }

            lock (Driver)
            {
                if (Driver.Tick(this)) //returns true the first time we catch up to the state.
                {
                    Ready = true;
                }
            }
        }
示例#2
0
文件: VM.cs 项目: fHachenberg/FreeSO
        public void Tick()
        {
            if (FSOVAsyncLoading)
            {
                return;
            }
            if (BHAVDirty)
            {
                foreach (var ent in Entities)
                {
                    if (ent.Thread != null)
                    {
                        foreach (var frame in ent.Thread.Stack)
                        {
                            if (frame.Routine.Chunk.RuntimeVer != frame.Routine.RuntimeVer)
                            {
                                frame.CodeOwner.Resource.Recache();
                            }
                        }
                    }
                }
                BHAVDirty = false;
            }

            lock (Driver)
            {
                if (Driver.Tick(this)) //returns true the first time we catch up to the state.
                {
                    Ready = true;
                }
            }
        }
示例#3
0
        private void Tick()
        {
            if (BHAVDirty)
            {
                foreach (var ent in Entities)
                {
                    if (ent.Thread != null)
                    {
                        ent.Thread.RoutineDirty = true;
                    }
                }
                BHAVDirty = false;
            }

            lock (Driver)
            {
                if (Driver.Tick(this)) //returns true the first time we catch up to the state.
                {
                    Ready = true;
                }
            }
        }