Utilities
Spinorium provides a set of utilities that could be useful during the game development. Each utility class targets a specific task such as formatting numbers, aligning geometry, normalizing resource paths, or keeping randomness deterministic so the same patterns work across games.
📄️ Array Utils
ArrayUtil provides helpers for array manipulations. This utility class offers static methods to create, modify, and analyze arrays.
📄️ Number Utils
NumberUtil provides helpers for number manipulation operations. This utility class offers static methods to format, transform, and compare numeric values in a consistent and efficient manner.
📄️ String Utils
StringUtil provides helper for formatting messages and other strings.
📄️ Random Utils
RandomUtil wraps random number generation and selection operations. This utility class offers static methods to generate random values in various formats and ranges.
📄️ Geometry Utils
GeometryUtil provides helpers for geometric calculations and coordinate transformations so layout logic stays simple even when scenes mix coordinate spaces.
📄️ Config Utils
ConfigUtil provides helpers for managing configuration objects by resolving nested values, cloning data safely, and merging overrides without mutating original objects.
📄️ Currency Formatter
CurrencyFormatter centralizes real money formatting across the game. It's globally accessible via System.formatter property.
📄️ Date & Time Utils
DateTimeUtil provides helpers for date/time creation and formatting.
📄️ Path Utils
PathUtil standardizes file path, URL, and resource path manipulation so asset loading remains predictable between environments. The PathUtil class works closely with the ResourcePath class, which is responsible for parsing, storing, and manipulating path components.
📄️ Resource Path
ResourcePath represents asset identifiers in a consistent structure and exposes helpers for parsing, manipulating, and generating resource paths for files, URLs, and relative locations.
📄️ Seed Randomizer
SeedRandomizer is a deterministic pseudo-random generator based on the Linear Congruential Generator (LCG) algorithm. It normalizes the seed to three decimal places, ensuring that even fractional inputs yield repeatable sequences.
📄️ Object Utils
ObjectUtil provides helpers for comparing, splitting, cloning, and resolving objects so that engine systems or the game itself can share data without mutations.