Introduction
Infinity Value is a Unity package for idle and incremental games that need numbers far beyond long.
Values are stored as compact (unitIndex, value) pairs, so common arithmetic and comparison work without allocating managed garbage. Display and parsing can use the built-in A, B, C ... CZ unit names, or a custom InfinityValueUnitNames instance per content type.
Highlights
- Struct-based large number type for Unity runtime code.
- Arithmetic:
+,-,*,/. - Comparison:
==,!=,<,>,<=,>=. - Instance unit names through
InfinityValueUnitNames. - String parsing with
TryParse. - Optional Newtonsoft.Json converter when Unity's Newtonsoft package is installed.
- Importable Unity samples under
Samples~.