Exemplo n.º 1
0
        private void Context_ContextSwitched(object sender, ContextSwitch e)
        {
            var entities = Context.CurrentNode.GetTiles <Animal>();

            base.AllEntities.Clear();
            entities.ForEach(i => base.AllEntities.Add(i));
            entitiesSet = true;
        }
Exemplo n.º 2
0
        internal override void Process(ProfilerSession sess)
        {
            Tracing.PacketTrace("CALLS: Switched to thread {0}", m_thread);
            ContextSwitch c = new ContextSwitch();

            c.m_thread = m_thread;
            sess.m_currentThreadPID = m_thread;
            sess.AddEvent(c);
        }
Exemplo n.º 3
0
        private void Context_ContextSwitched(object sender, ContextSwitch e)
        {
            var entities = Context.CurrentNode.GetActiveAllies();

            base.SetEntities(entities);
        }
Exemplo n.º 4
0
 public static Namespace Fork()
 {
     Namespace res = new Namespace(Current);
     ContextSwitch<Namespace> cx = new ContextSwitch<Namespace>(res);
     return res;
 }