Created message class and updated menu system

This commit is contained in:
2ndbeam 2024-05-19 16:09:50 +03:00
commit 7134891e55
12 changed files with 62 additions and 13 deletions

View file

@ -0,0 +1,14 @@
## Represents string that differs in fact value and a value which should be displayed to player
class_name Message
## Fact value
var fact: String
## Display value
var shown: String
## Returns message with set fact and shown strings
static func create(fact: String, shown: String) -> Message:
var msg = Message.new()
msg.fact = fact
msg.shown = shown
return msg