예제 #1
0
        public static void UnitTest_10045()
        {
            JInt i = new JInt();

            if (i++ != 0)
            {
                throw new Exception();
            }
            if (++i != 2)
            {
                throw new Exception();
            }
            if (i-- != 2)
            {
                throw new Exception();
            }
            i -= 10;
            if (i != -9)
            {
                throw new Exception();
            }
            --i;
            Console.WriteLine(i);

            for (JInt x = 20; x > 0; x--)
            {
                Console.WriteLine($"for内: x = {x}");
            }
        }
예제 #2
0
        public void Awake()
        {
            Log.Print("========== AntiCheat Test ==========");

            Log.Print(">> JInt Test Starts");
            Log.Print("用抓内存的工具来看i在内存中的值就能知道效果了(安卓真机可以用GameGuardian,即GG修改器测试)");
            i = new JInt(0);
            i = new JInt("0");
            i = 0;
            for (int x = 0; x < 10; x++)
            {
                i += x;
                Log.Print($"i = {i}");
            }
            Log.Print("<< JInt Test Ends");
        }
예제 #3
0
 internal JavaInt(JInt _enclosing)
     : base(_enclosing)
 {
     this._enclosing = _enclosing;
 }
예제 #4
0
 internal CppInt(JInt _enclosing)
     : base(_enclosing)
 {
     this._enclosing = _enclosing;
 }