Game Development Library

Game development utilities for Unity and Godot


OmegaLeo.HelperLib.Game

CommandConsole

OmegaLeo.HelperLib.Game
Member Documentation
RegisterCommand

Registers a new command with the console.


RegisterCommand

Registers a new command with the console using a delegate.


UnregisterCommand

Removes a command from the console.


ExecuteCommand

Executes a command string.


Output

Outputs a message to the console.


Error

Outputs an error message to the console.


ClearHistory

Clears command history.


GetAutoComplete

Gets autocomplete suggestions for partial input.


RegisterDefaultCommands

Registers built-in commands.


DelayedActionHandler

OmegaLeo.HelperLib.Game
Member Documentation
DelayedActionHandler

Handler for managing delayed actions, allowing cancellation and status checking.


Example:
var action = new DelayedAction(...);
var handler = new DelayedActionHandler(action);
Cancel

Cancels the delayed action if it has not yet executed.


Example:
handler.Cancel();

DelayedActionManager

OmegaLeo.HelperLib.Game
Member Documentation
PendingActionsCount

Gets the count of pending delayed actions.


RunAfter

Schedules an action to run after a specified delay.


RunRepeating

Schedules an action to run repeatedly at specified intervals.


RunAfterCancellable

Schedules an action to run after a delay and returns a handler to cancel it if needed.


CancelAll

Cancels all pending delayed actions.


ListExtensions

OmegaLeo.HelperLib.Game
Member Documentation
Shuffle

Shuffles the elements of the list in place using the provided RandomNumberGenerator.


Example:
var list = new List<int> { 1, 2, 3, 4};
var rng = new RandomNumberGenerator();
// List before: [1, 2, 3, 4]
list.Shuffle(rng);
// List after: [3, 1, 4, 2] (example output)

SaveManager

OmegaLeo.HelperLib.Game
Member Documentation
Save

Saves data to a JSON file.


Load

Loads data from a JSON file.


TryLoad

Attempts to load data from a JSON file, returning a success flag.


SaveExists

Checks if a save file exists.


DeleteSave

Deletes a save file.


GetAllSaveFiles

Retrieves all save files in the save directory.


WeightedPicker

OmegaLeo.HelperLib.Game
Member Documentation
WeightedPicker.Pick

Picks a random item from a dictionary of items with associated weights.