CustomBigInteger for UnityEngine or other Projects

Tommy

Staff
Staff
Tommy Rep
1
0
0
Rep
1
Tommy Vouches
0
0
0
Vouches
0
Posts
185
Likes
101
2 YEARS
2 YEARS OF SERVICE
LEVEL 6 310 XP
So I've been fighting serialization lately and after I added what I needed to in my game I found out BigInteger cannot be serialized within Unity's JSON serialization, or.. at all. I had to re-edit 50+ files more than once to finally stop using third party crap. So, I wrote my own custom class after countless searches and using other libraries that had the same exact issues of not able to save the data even those most third party projects showed promise and had serialization --they still didn't work. I'm still updating this to fill out all the required operators or other necessities I or others will need.

Hope this helps people in the future. I couldn't find a solution so I made one myself!

Project:

It's simple really. Import CustomBigInteger.cs to your project and start using it!

Example file: CustomBigInteger/TestCustomBigInteger.cs at main · Easelm/CustomBigInteger | World of Warcraft Emulation

Quick Preview of an example:
Code:
private CustomBigInteger testCustomBigInteger = 0;
bool testBoolean = testCustomBigInteger > 0;
testCustomBigInteger += 1;
testCustomBigInteger--;
testCustomBigInteger++;
testCustomBigInteger *= 2;
Console.WriteLine(string.Format("{0}"), testCustomBigInteger.B);
 
Liked By 1 member :

splicho

I see humans, but no humanity.
Administrator
splicho Rep
6
0
0
Rep
6
splicho Vouches
3
0
0
Vouches
3
Posts
1,015
Likes
1,579
Bits
3 YEARS
3 YEARS OF SERVICE
LEVEL 264 115 XP
I don't know at all what you are saying, but hell yeah, if it helped you to go further with your game, then I am glad you found out about this.
Definitely going to try your game once you release it!
 
Liked By 1 member :

Tommy

Staff
Staff
Tommy Rep
1
0
0
Rep
1
Tommy Vouches
0
0
0
Vouches
0
Posts
185
Likes
101
2 YEARS
2 YEARS OF SERVICE
LEVEL 6 310 XP
I don't know at all what you are saying, but hell yeah, if it helped you to go further with your game, then I am glad you found out about this.
Definitely going to try your game once you release it!
Caveman speak: Thing won't work! I make work! xD

Yeah it was one of those dumb things that I had to find out the hard way. And, hell yeah!
 

3,571

1,285

9,621

433

Top