Verse Library verse

01 Fragment

Declares a Verse map to store and retrieve integer scores for each connected player.

verse-library/4-tracking-players-using-maps/01-fragment.verse

# We are creating a map.
# The first part [player] is the KEY (the player's unique ID).
# The second part [int] is the VALUE (the number of kills).
var PlayerScoreMap: map[player, int] = map{}

Comments

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