Updated Object Model (markdown)

Azgaar 2021-08-18 00:30:34 +03:00
parent f0cd06e154
commit c44b94abe3

@ -1,9 +1,7 @@
**[Object model](https://en.wikipedia.org/wiki/Object_model)** in FMG is poorly defined, inconsistent and not documented in the codebase. This page is the first and the only try to document it somehow. Once everything is documented, it can be used for building a new consistent model.
**[Object model](https://en.wikipedia.org/wiki/Object_model)** in FMG is poorly defined, inconsistent and not documented in the codebase. This page is the first and the only try to document it somehow. Once everything is documented, it can be used for building a new consistent model. Please note the current document reflect the object model as is, so with all its quirks. The model we want to get will be coverer separately.
FMG exposes all its basic data to the global namespace. The global namespace is getting polluted and it can cause conflicts with 3rd party extensions. But it allows much faster debugging and allows users to run custom JS code to alter the behavior and perform custom changes. So it allows dev console to be used by end-users.
Please note the current document reflect the object model as is, so with all its quirks. The model we want to get will be coverer separately.
# Basic objects
FMG has two meta-objects storing most of the map data:
* `grid` contains map data before _repacking_