Exemplo n.º 1
0
 public static void Postfix()
 {
     context = CRand.get_state();
     CRand.set_state(ContextStack.stack.Pop());
     RandContextCounter.currentContextName = oldContext;
     oldContext = null;
     RandContextCounter.context_counter--;
 }
Exemplo n.º 2
0
 public static void Prefix()
 {
     ContextStack.stack.Push(CRand.get_state());
     CRand.set_state(context);
     oldContext = RandContextCounter.currentContextName;
     RandContextCounter.currentContextName = typeof(T);
     RandContextCounter.context_counter++;
 }
Exemplo n.º 3
0
 public static void postfix()
 {
     state_mine = CRand.get_state();
     CRand.set_state(state_old);
 }
Exemplo n.º 4
0
 public static void Prefix()
 {
     state_old = CRand.get_state();
     CRand.set_state(state_mine);
 }