# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/squid-game-create-voting-opportunities-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/en-us/fortnite/squid-game-create-voting-opportunities-in-unreal-editor-for-fortnite.md
# Section: Verse Level
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
using { /UnrealEngine.com/Temporary/Diagnostics }
PlainText<public><localizes>(Text:string):message = "{Text}"
AnswersCategory<public><localizes>:message := "Answers"
answer := enum<open>:
A
B
C
D
AnswerToIndex(Answer : answer)<transacts>:int=
case (Answer):
answer.A => 0
answer.B => 1
answer.C => 2
answer.D => 3
_ => -1
question := class:
@editable_text_box:
MultiLine := true
Description : string = ""
@editable:
Categories := array{AnswersCategory}
A : string = ""
@editable:
Categories := array{AnswersCategory}
Verse Library
verse
01 Verse Level
Defines question and answer data structures with editable properties for a voting game mode system.
extracted-snippets/documentation/en-us/fortnite/squid-game-create-voting-opportunities-in-unreal-editor-for-fortnite/01-verse-level.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.