mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-08 15:46:02 +03:00
Model now uses Optional correctly, I think, massive changes
This commit is contained in:
parent
39d2838663
commit
88a5eadb74
42 changed files with 1106 additions and 400 deletions
9
docs/docs/essentials/representation-model.md
Normal file
9
docs/docs/essentials/representation-model.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Representation model
|
||||
|
||||
Tiled map files contain various types of data, such as tilesets, layers, and object groups. The representation model is a way to represent this data in a structured way. By using the `.tmx` file format as inspiration, the representation model is a collection of classes which mimic the structure of a Tiled map file.
|
||||
|
||||
Certain properties throughout the representation model are marked as *optional*, meaning that they may not be present in a file. However, these properties sometimes have default values, which are used when the property is not present.
|
||||
|
||||
- Properties marked as *required* must be present in the file, otherwise an error will be raised.
|
||||
- Properties that have default values will use the default value if the property is not present in the file, and are not marked as required or optional since you must not provide a value for them.
|
||||
- Properties that are marked as *optional* may or may not be present in the file, and have no default value.
|
|
@ -4,4 +4,5 @@
|
|||
|
||||
- name: Essentials
|
||||
- href: essentials/loading-maps.md
|
||||
- href: essentials/representation-model.md
|
||||
- href: essentials/custom-properties.md
|
Loading…
Add table
Add a link
Reference in a new issue