Exemplo n.º 1
0
    public static Int32 Mod(Int32 iDamage, ViRefList1 <ViValueDisMod> kList)
    {
        Int32 iReserveDamage = iDamage;

        kList.BeginIterator();
        while (!kList.IsEnd())
        {
            ViValueDisMod kModifier = kList.CurrentNode as ViValueDisMod;
            kList.Next();
            ViDebuger.AssertError(kModifier);
            iReserveDamage = kModifier.Mod(iReserveDamage);
            if (iReserveDamage == 0)
            {
                kList.EndIterator();
                break;
            }
        }
        return(iReserveDamage);
    }
Exemplo n.º 2
0
#pragma warning disable 0219
    public static void Test()
    {
        ViRefList1 <int> list  = new ViRefList1 <int>();
        ViRefNode1 <int> node0 = new ViRefNode1 <int>();
        ViRefNode1 <int> node1 = new ViRefNode1 <int>();
        ViRefNode1 <int> node2 = new ViRefNode1 <int>();

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

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