Verse Library verse

01 Standalone

Defines a configuration struct holding hero name and color data for customizable game characters.

verse-library/verse-classes-and-structs-to-model-your-game-s-objects/01-standalone.verse

# This is a simple data box.
# It holds two pieces of info: a name and a color.
# note: 'color' is from /UnrealEngine.com/Temporary/SpatialMath
using { /UnrealEngine.com/Temporary/SpatialMath }

MyHeroInfo := struct:
    Name : string
    HeroColor : color

Comments

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