Tommy
StaffStaff
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:
github.com
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:
Hope this helps people in the future. I couldn't find a solution so I made one myself!
Project:
GitHub - Easelm/CustomBigInteger: UnityEngine (or other project(s)) BigInteger Serialization to Save and Load BigInteger data
UnityEngine (or other project(s)) BigInteger Serialization to Save and Load BigInteger data - Easelm/CustomBigInteger
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 :