Skip to main content

SingletonManager

Handles the creation and tracking of all singeltons created

Functions

Create

SingletonManager.Create(optionsSingletonOptions) → Singleton

Creates a new singelton

GetAll

SingletonManager.GetAll() → {Singleton}

Returns an array of all singletons created

Show raw api
{
    "functions": [
        {
            "name": "Create",
            "desc": "Creates a new singelton",
            "params": [
                {
                    "name": "options",
                    "desc": "",
                    "lua_type": "SingletonOptions"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Singleton"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 19,
                "path": "Source/Core/SingletonManager.luau"
            }
        },
        {
            "name": "GetAll",
            "desc": "Returns an array of all singletons created",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ Singleton }"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 49,
                "path": "Source/Core/SingletonManager.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "SingletonManager",
    "desc": "Handles the creation and tracking of all singeltons created",
    "source": {
        "line": 10,
        "path": "Source/Core/SingletonManager.luau"
    }
}