Verse Library verse

09 Fragment

Increments a shared network score variable safely using Verse transactions for multiplayer synchronization.

verse-library/verse-verbs-functions-and-events/09-fragment.verse

AddScore(Player : agent)<transacts> : void =
    set CurrentScore += 1

Comments

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