Skip to main content

RxPlayerUtils

Utilities for observing players

Functions

observePlayersBrio

RxPlayerUtils.observePlayersBrio(predicate(Player) → boolean) → Observable<Brio<Player>>

Observe players for the lifetime they exist

observeLocalPlayerBrio

RxPlayerUtils.observeLocalPlayerBrio() → Observable<Brio<Player>>

Observes the current local player

observePlayers

RxPlayerUtils.observePlayers(predicate(Player) → boolean) → Observable<Player>

Observe players as they're added, and as they are.

observeFirstAppearanceLoaded

RxPlayerUtils.observeFirstAppearanceLoaded(playerPlayer) → Observable<void>

Observes the first time the character appearance is loaded

Show raw api
{
    "functions": [
        {
            "name": "observePlayersBrio",
            "desc": "Observe players for the lifetime they exist",
            "params": [
                {
                    "name": "predicate",
                    "desc": "",
                    "lua_type": "(Player) -> boolean"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<Player>>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 22,
                "path": "src/playerutils/src/Shared/RxPlayerUtils.lua"
            }
        },
        {
            "name": "observeLocalPlayerBrio",
            "desc": "Observes the current local player",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<Player>>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 58,
                "path": "src/playerutils/src/Shared/RxPlayerUtils.lua"
            }
        },
        {
            "name": "observePlayers",
            "desc": "Observe players as they're added, and as they are.",
            "params": [
                {
                    "name": "predicate",
                    "desc": "",
                    "lua_type": "(Player) -> boolean"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Player>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 69,
                "path": "src/playerutils/src/Shared/RxPlayerUtils.lua"
            }
        },
        {
            "name": "observeFirstAppearanceLoaded",
            "desc": "Observes the first time the character appearance is loaded",
            "params": [
                {
                    "name": "player",
                    "desc": "",
                    "lua_type": "Player"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<void>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 99,
                "path": "src/playerutils/src/Shared/RxPlayerUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "RxPlayerUtils",
    "desc": "Utilities for observing players",
    "source": {
        "line": 5,
        "path": "src/playerutils/src/Shared/RxPlayerUtils.lua"
    }
}