Game Development Library
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. Returns: voidParameters:
|
RegisterCommand |
Registers a new command with the console using a delegate. Returns: voidParameters:
|
UnregisterCommand |
Removes a command from the console. Returns: boolParameters:
|
ExecuteCommand |
Executes a command string. Returns: boolParameters:
|
Output |
Outputs a message to the console. Returns: voidParameters:
|
Error |
Outputs an error message to the console. Returns: voidParameters:
|
ClearHistory |
Clears command history. Returns: void |
GetAutoComplete |
Gets autocomplete suggestions for partial input. Returns: string[]Parameters:
|
RegisterDefaultCommands |
Registers built-in commands. Returns: void |
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. Returns: voidExample: 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. Returns: voidParameters:
|
RunRepeating |
Schedules an action to run repeatedly at specified intervals. Returns: voidParameters:
|
RunAfterCancellable |
Schedules an action to run after a delay and returns a handler to cancel it if needed. Returns: DelayedActionHandlerParameters:
|
CancelAll |
Cancels all pending delayed actions. Returns: void |
ListExtensions
OmegaLeo.HelperLib.Game| Member | Documentation |
|---|---|
Shuffle |
Shuffles the elements of the list in place using the provided RandomNumberGenerator. Returns: voidParameters:
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. Returns: voidParameters:
|
Load |
Loads data from a JSON file. Returns: TParameters:
|
TryLoad |
Attempts to load data from a JSON file, returning a success flag. Returns: boolParameters:
|
SaveExists |
Checks if a save file exists. Returns: boolParameters:
|
DeleteSave |
Deletes a save file. Returns: voidParameters:
|
GetAllSaveFiles |
Retrieves all save files in the save directory. Returns: string[] |
WeightedPicker
OmegaLeo.HelperLib.Game| Member | Documentation |
|---|---|
WeightedPicker.Pick |
Picks a random item from a dictionary of items with associated weights. Returns: TParameters:
|