Some checks failed
Build and Deploy / build-linux (push) Successful in 1m20s
Build and Deploy / build-windows (CLANG64) (push) Failing after 10m58s
Build and Deploy / package-dist (push) Has been cancelled
Build and Deploy / deploy-itch (push) Has been cancelled
Build and Deploy / deploy-gitea (push) Has been cancelled
34 lines
2.4 KiB
JavaScript
34 lines
2.4 KiB
JavaScript
var os = this
|
|
|
|
os.make_transform[prosperon.DOC] = "Create a new transform object that can be used for 2D/3D positioning, scaling, and rotation."
|
|
os.clean_transforms[prosperon.DOC] = "Force an update on all transforms to remove dangling references or perform house-keeping."
|
|
|
|
os.platform[prosperon.DOC] = "Return a string with the underlying platform name, like 'Windows', 'Linux', or 'macOS'."
|
|
os.arch[prosperon.DOC] = "Return the CPU architecture string for this system (e.g. 'x64', 'arm64')."
|
|
os.totalmem[prosperon.DOC] = "Return the total system RAM in bytes."
|
|
os.freemem[prosperon.DOC] = "Return the amount of free system RAM in bytes, if known."
|
|
os.hostname[prosperon.DOC] = "Return the system's hostname, or an empty string if not available."
|
|
os.version[prosperon.DOC] = "Return the OS or kernel version string, if the platform provides it."
|
|
|
|
os.kill[prosperon.DOC] = "Send a signal (e.g., 'SIGINT', 'SIGTERM', etc.) to the current process."
|
|
os.exit[prosperon.DOC] = "Exit the application with the specified exit code."
|
|
os.now[prosperon.DOC] = "Return current time (in seconds as a float) with high resolution."
|
|
os.openurl[prosperon.DOC] = "Open the provided URL in the default web browser, if possible."
|
|
|
|
os.make_timer[prosperon.DOC] = "Create a new timer object that will call a specified function after a certain delay."
|
|
os.update_timers[prosperon.DOC] = "Advance all timers by the provided time delta (in seconds)."
|
|
|
|
os.sleep[prosperon.DOC] = "Block execution for the specified number of seconds."
|
|
os.battery_pct[prosperon.DOC] = "Return the battery level (percentage) or negative if unknown."
|
|
os.battery_voltage[prosperon.DOC] = "Return the current battery voltage in volts, if available."
|
|
os.battery_seconds[prosperon.DOC] = "Return the estimated remaining battery time in seconds, or negative if unknown."
|
|
os.power_state[prosperon.DOC] = "Return a string describing power status: 'on battery', 'charging', 'charged', etc."
|
|
|
|
os.on[prosperon.DOC] = "Register a global callback for certain engine-wide or system-level events."
|
|
os.rusage[prosperon.DOC] = "Return resource usage stats for this process, if the platform supports it."
|
|
os.mallinfo[prosperon.DOC] = "Return detailed memory allocation info (arena size, free blocks, etc.) on some platforms."
|
|
os.env[prosperon.DOC] = "Fetch the value of a given environment variable, or undefined if it doesn't exist."
|
|
os.system[prosperon.DOC] = "Execute a shell command using the system() call. Returns the command's exit code."
|
|
|
|
return os
|