Skip to main content

TeamKillTrackerUtils

Helpers for creating and finding the IntValue a TeamKillTracker binds to.

Functions​

create​

TeamKillTrackerUtils.create(binder: Binder<T>) → IntValue

Creates a zeroed tracked value bound to the given binder. The caller parents it under the Team to track.

observeBrio​

TeamKillTrackerUtils.observeBrio(
binder: Binder<T>,
team: Instance
) → Observable<Brio<T>>

Observes the bound tracker classes under the team

getTeamKillTracker​

TeamKillTrackerUtils.getTeamKillTracker(
binder: Binder<T>,
team: Instance
) → T?

Finds the first bound tracker class under the team

Show raw api
{
    "functions": [
        {
            "name": "create",
            "desc": "Creates a zeroed tracked value bound to the given binder. The caller parents it under the [Team]\nto track.",
            "params": [
                {
                    "name": "binder",
                    "desc": "",
                    "lua_type": "Binder<T>"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "IntValue"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 25,
                "path": "src/deathreport/src/Shared/Stats/TeamKillTrackerUtils.lua"
            }
        },
        {
            "name": "observeBrio",
            "desc": "Observes the bound tracker classes under the team",
            "params": [
                {
                    "name": "binder",
                    "desc": "",
                    "lua_type": "Binder<T>"
                },
                {
                    "name": "team",
                    "desc": "",
                    "lua_type": "Instance"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<T>>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 42,
                "path": "src/deathreport/src/Shared/Stats/TeamKillTrackerUtils.lua"
            }
        },
        {
            "name": "getTeamKillTracker",
            "desc": "Finds the first bound tracker class under the team",
            "params": [
                {
                    "name": "binder",
                    "desc": "",
                    "lua_type": "Binder<T>"
                },
                {
                    "name": "team",
                    "desc": "",
                    "lua_type": "Instance"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "T?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 56,
                "path": "src/deathreport/src/Shared/Stats/TeamKillTrackerUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "TeamKillTrackerUtils",
    "desc": "Helpers for creating and finding the [IntValue] a [TeamKillTracker] binds to.",
    "source": {
        "line": 7,
        "path": "src/deathreport/src/Shared/Stats/TeamKillTrackerUtils.lua"
    }
}