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}"); } }
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"); }
internal JavaInt(JInt _enclosing) : base(_enclosing) { this._enclosing = _enclosing; }
internal CppInt(JInt _enclosing) : base(_enclosing) { this._enclosing = _enclosing; }