VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Community Snippets›Verse Language·Up to Community Snippets · Verse Language·26 of 114 in Verse Language

Map Editing Basics

1797 Views

Report

  • using { /Verse.org/Simulation }
    
    map_key<public> := interface:
        GetKey<public>()<transacts>:comparable
    
    map_value<public> := interface:
    
    DefaultMapKey := string_map_key
    DefaultMapValue := int_map_value
    
    string_map_key<public> := class<concrete>(map_key):
        @editable
        Key<public> : string = ""
    
        GetKey<override>()<transacts>:comparable=return Key
    
    int_map_value<public> := class<concrete>(map_value):
        @editable
        Value<public> : int = 0
    
    editable_map_item<public> := class<concrete>:
        @editable
        Key<public> : map_key = DefaultMapKey{}
        @editable
        Value<public> : map_value = DefaultMapValue{}
    
    editable_map<public> := class<concrete>:
        @editable
        Items<public> : []editable_map_item = array{}
    
        Find<public>(MapKey : map_key)<transacts><decides>:map_value=
            var ReturnMapValue : ?map_value = false
    
            for(Item : Items, not ReturnMapValue?, Item.Key.GetKey() = MapKey.GetKey()):
                set ReturnMapValue = option{Item.Value}

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Verse Language · 26 of 114
Prev
fortnite flashback ability
Next
fortnite spongebob roguelike snippets

Source

Epic Games documentation

View original

Last updated 2026-07-26T12:13:30.843001+00:00

VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse