Import std.core.load
Rename
attribute
Public Attribute Rename(Name: String)
The key a Field has in a Value's Object, in place of its name.
Examples
Struct Player
@Rename("player_name")
Field Name: String
Field Level: Int
End Struct
Local saved = Save(Player("Ada", 3))
Expect(saved.Keys() == ["player_name", "Level"])
Local loaded = Try Load<Player>(saved)
Expect(loaded.Name == "Ada" && loaded.Level == 3)Report an issue with this page or with FutureBlitz on GitHub.