Verse Library verse

Game Manager

verse-source/SampleVerse/SantaToyFactory/game_manager.verse

# This file defines the game_manager that handles setting up the game, manages adding and removing players,
# and loads the factory owned by the selected player.

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { Factory }
using { UserInterface }
using { Utility }



game_manager := class(creative_device):

    # UI manager for showing game UI.
    @editable
    UIManager:ui_manager = ui_manager{}

    # Billboard showing the owner of the factory.
    @editable
    FactoryBillboard:billboard_device = billboard_device{}

    # Popup dialog telling players that the factory is reset when the factory owner leaves.
    @editable
    FactoryResetPopup:popup_dialog_device = popup_dialog_device{} 

    # The factory manager used to run the factory.
    @editable
    FactoryManager:factory_manager = factory_manager{}

    # Order that the factory can deliver to.

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