Esempio n. 1
0
 public static void Update(ViGameUnit entity, ViRefList2 <ViStateConditionCallback> list)
 {
     list.BeginIterator();
     while (!list.IsEnd())
     {
         ViStateConditionCallback obj = list.CurrentNode.Data;
         list.Next();
         ViDebuger.AssertError(obj);
         obj._Update(entity);
     }
 }
Esempio n. 2
0
#pragma warning disable 0219
    public static void Test()
    {
        ViRefList2 <int> list  = new ViRefList2 <int>();
        ViRefNode2 <int> node0 = new ViRefNode2 <int>(); node0.Data = 0;
        ViRefNode2 <int> node1 = new ViRefNode2 <int>(); node1.Data = 1;
        ViRefNode2 <int> node2 = new ViRefNode2 <int>(); node2.Data = 2;

        list.PushBack(node0);
        list.PushBack(node1);
        list.PushBack(node2);

        list.BeginIterator();
        while (!list.IsEnd())
        {
            ViRefNode2 <int> node = list.CurrentNode;
            list.Next();
            ///<使用>
            ///</使用>
        }
        list.Clear();
    }