RaylibBase constructor
Implementation
RaylibBase({
math.Random? random,
bool silent = false,
}) :
random = random ?? .new(),
_silent = silent
{
if (_instance != null) throw StateError("There can only be one instance of $runtimeType!");
_instance = this;
if (RaylibConfig.tempStringSlots < 4) {
throw StateError(
"Raylib expects at least 4 preallocated String slots, got ${RaylibConfig.tempStringSlots}",
);
}
}