Skip to main content

CameraStack

Functions

PushDisable

CameraStack:PushDisable() → function--

Function to cancel disable

Pushes a disable state onto the camera stack

PrintCameraStack

CameraStack:PrintCameraStack() → ()

Outputs the camera stack. Intended for diagnostics.

GetTopCamera

CameraStack:GetTopCamera() → CameraEffect

Gets the camera current on the top of the stack

GetTopState

CameraStack:GetTopState() → CameraState?

Retrieves the top state off the stack at this time

GetNewStateBelow

CameraStack:GetNewStateBelow() → (
CustomCameraEffect,--

Effect below

(CameraState) → ()--

Function to set the state

)

Returns a new camera state that retrieves the state below its set state.

GetIndex

CameraStack:GetIndex(stateCameraEffect) → number?--

index

Retrieves the index of a state

GetStack

CameraStack:GetStack() → {CameraState<T>}

Returns the current stack.

warning

Do not modify this stack, this is the raw memory of the stack

Remove

CameraStack:Remove(stateCameraState) → ()

Removes the state from the stack

Add

CameraStack:Add(stateCameraState) → ()

Adds the state from the stack

Show raw api
{
    "functions": [
        {
            "name": "PushDisable",
            "desc": "Pushes a disable state onto the camera stack",
            "params": [],
            "returns": [
                {
                    "desc": "Function to cancel disable",
                    "lua_type": "function"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 29,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        },
        {
            "name": "PrintCameraStack",
            "desc": "Outputs the camera stack. Intended for diagnostics.",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 43,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        },
        {
            "name": "GetTopCamera",
            "desc": "Gets the camera current on the top of the stack",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "CameraEffect"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 55,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        },
        {
            "name": "GetTopState",
            "desc": "Retrieves the top state off the stack at this time",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "CameraState?"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 65,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        },
        {
            "name": "GetNewStateBelow",
            "desc": "Returns a new camera state that retrieves the state below its set state.",
            "params": [],
            "returns": [
                {
                    "desc": "Effect below",
                    "lua_type": "CustomCameraEffect"
                },
                {
                    "desc": "Function to set the state",
                    "lua_type": "(CameraState) -> ()"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 97,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        },
        {
            "name": "GetIndex",
            "desc": "Retrieves the index of a state",
            "params": [
                {
                    "name": "state",
                    "desc": "",
                    "lua_type": "CameraEffect"
                }
            ],
            "returns": [
                {
                    "desc": "index",
                    "lua_type": "number?"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 127,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        },
        {
            "name": "GetStack",
            "desc": "Returns the current stack.\n\n:::warning\nDo not modify this stack, this is the raw memory of the stack\n:::",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ CameraState<T> }"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 146,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        },
        {
            "name": "Remove",
            "desc": "Removes the state from the stack",
            "params": [
                {
                    "name": "state",
                    "desc": "",
                    "lua_type": "CameraState"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 156,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        },
        {
            "name": "Add",
            "desc": "Adds the state from the stack",
            "params": [
                {
                    "name": "state",
                    "desc": "",
                    "lua_type": "CameraState"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 170,
                "path": "src/camera/src/Client/CameraStack.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "CameraStack",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/camera/src/Client/CameraStack.lua"
    }
}