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"
}
]
}
]
}| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| version | string | ✓ | 2022-08-28 | Format version of master data | ||
| areaModels | List<AreaModel> | ~ 50 items | Area 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.
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| areaModelId | string | ✓* | ~ 1024 chars | Area Model GRN * Automatically configured on the server | ||
| name | string | ✓ | ~ 128 chars | Area Model Name | ||
| metadata | string | ~ 2048 chars | Metadata 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. | |||
| layerModels | List<LayerModel> | [] | 0 ~ 1000 items | List 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.
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| layerModelId | string | ✓* | ~ 1024 chars | Layer Model GRN * Automatically configured on the server | ||
| name | string | ✓ | ~ 128 chars | Layer Model Name | ||
| metadata | string | ~ 2048 chars | Metadata 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. |