Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
fog_of_war
master
FogOfWar
FloorTile
Font
Game
HUD
Joysticks
Keys
Level
FloorTiles
LevelData
Line
Mouse
Player
Point
Scene
Editor
Main
Start
Screen
Stage
Timer
Visibility
Generated using Crystal 1.14.0
2024-11-26 09:00:32 UTC
class
FogOfWar::
LevelData
FogOfWar::LevelData
Reference
Object
Included Modules
JSON::Serializable
Defined in:
fog_of_war/level_data.cr
Constant Summary
FilePath
=
"./assets/level_data.dat"
Constructors
.new
(pull : JSON::PullParser)
.new
Class Method Summary
.load
Instance Method Summary
#levels
: Hash(String, Level)
#remove_level
(id)
#save
#update_level
(level)
Constructor Detail
def self.
new
(pull : JSON::PullParser)
#
[
View source
]
def self.
new
#
[
View source
]
Class Method Detail
def self.
load
#
[
View source
]
Instance Method Detail
def
levels
: Hash(String,
Level
)
#
[
View source
]
def
remove_level
(id)
#
[
View source
]
def
save
#
[
View source
]
def
update_level
(level)
#
[
View source
]