Master Data Reference of GS2-MegaField

Reference of the format of master data and various models to be imported

Master Data Format

{
  "version": "2022-08-28",
  "areaModels": [
    {
      "name": "[string]Area Model Name",
      "metadata": "[string?]Metadata",
      "layerModels": [
        {
          "layerModelId": "[string]Layer Model GRN",
          "name": "[string]Layer Model Name",
          "metadata": "[string?]Metadata"
        }
      ]
    }
  ]
}
TypeConditionRequiredDefaultValue LimitsDescription
versionstring
2022-08-28Format version of master data
areaModelsList<AreaModel>~ 50 itemsArea divides space, and different areas can be treated as different spaces even if they have the same coordinates.

Model

AreaModel

Area divides space, and different areas can be treated as different spaces even if they have the same coordinates.

TypeConditionRequiredDefaultValue LimitsDescription
areaModelIdstring
✓*
~ 1024 charsArea Model GRN
* Automatically configured on the server
namestring
~ 128 charsArea Model Name
metadatastring~ 2048 charsMetadata
Arbitrary values can be set in the metadata.
Since they do not affect GS2’s behavior, they can be used to store information used in the game.
layerModelsList<LayerModel>[]0 ~ 1000 itemsList of layer models

LayerModel

Layers allow for multiple logical hierarchies within a single space. For example, it solves the problem of an Enemy being invisible in a space with a large number of characters. Characters are placed on Layer 1. If Enemies are placed on Layer 2, there is no need to worry about them becoming invisible, since each layer can specify the quantity to be acquired within a specified distance.

TypeConditionRequiredDefaultValue LimitsDescription
layerModelIdstring
✓*
~ 1024 charsLayer Model GRN
* Automatically configured on the server
namestring
~ 128 charsLayer Model Name
metadatastring~ 2048 charsMetadata
Arbitrary values can be set in the metadata.
Since they do not affect GS2’s behavior, they can be used to store information used in the game.