Verse Libraryverse

03 Snippet

Manages round lifecycle, matchmaking toggles, and end-round conditions for structured game modes.

extracted-snippets/community/learning/tutorials/mmbM/fortnite-0ebc5f/03-snippet.verse

# Source URL: https://dev.epicgames.com/community/learning/tutorials/mmbM/fortnite-0ebc5f
# Local doc:  epic-docs/community/learning/tutorials/mmbM/fortnite-0ebc5f.md
# Section:    方法
# Used to customize gameplay for any round-based game. It generally defines what happens to the`agent`'s inventory and rewards in each round.
round_settings_device<public> := class<concrete><final>(creative_device_base):
    # Signaled when a game round starts.
    RoundBeginEvent<public>:listenable(tuple()) = external {}

    # Enables this device.
    Enable<public>():void = external {}

    # Disables this device.
    Disable<public>():void = external {}

    # Enables the ability for players to Matchmake into the Island. Only applies to published games that have matchmaking turned on in the Island settings
    EnableMatchmaking<public>():void = external {}

    # Disables the ability for players to Matchmake into the Island. Only applies to published games that have matchmaking turned on in the Island settings
    DisableMatchmaking<public>():void = external {}

    # Toggles between `EnableMatchmaking` and `DisableMatchmaking`.
    ToggleMatchmaking<public>():void = external {}

    # Disables all end-round conditions. The round must be ended through calling `EndRound` or a creative event after this is called.
    DisableEndRoundConditions<public>():void = external {}

    # Ends the round immediately with `Agent`'s team set as the winner of the round.
    EndRound<public>(Agent:agent):void = external {}

    # The current round number.

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit.Sign in