Verse Library verse

03 Define The Game Manager

Establishes core class definitions and editable properties for a per-player board game device.

extracted-snippets/documentation/en-us/fortnite/7-construct-the-game/03-define-the-game-manager.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/7-construct-the-game
# Local doc:  epic-docs/documentation/en-us/fortnite/7-construct-the-game.md
# Section:    Define the Game Manager
using { /Verse.org/Simulation }
per_player_objects<public> := class:
@editable
Board<public>:board
@editable
Miniboard<public>:miniboard
var AttackedTiles<public>:[]tile_coordinate = array{}
MoveEvent<public>:event(tuple(tile_coordinate, move_type)) = event(tuple(tile_coordinate, move_type)){}
CoordinateChangeEvent<public>:event(tile_coordinate) = event(tile_coordinate){}
game_manager := class(creative_device):
var PerPlayerManagement:weak_map(agent, per_player_objects) = map{}
@editable
PerPlayerObjects:[]per_player_objects = array{}

Comments

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