Closed wildsheepz closed 2 years ago
It means at least one of CurrentBattleId
or CurrentDifficulty
is not a integer
Nvm, I figured it out. I was supposed to call .new(). The following code worked for me:
var tuple_class = corlibclasses['System.Tuple<T1,T2>'].inflate(corlibclasses['System.Int32'], corlibclasses['System.Int32'])
var data = tuple_class.new()
data.methods['.ctor'].invoke(this.fields['CurrentBattleId'].value, this.fields['CurrentDifficulty'].value)
console.log(data)
Hi,
I cannot figure out how to instantiate a tuple.
I tried the following:
but I got an error: