GS2-Distributor Master Data Reference

Reference for the master data format and the models to be imported

Master Data Format

{
  "version": "2019-03-01",
  "distributorModels": [
    {
      "name": "[string]Distributor Model name",
      "metadata": "[string?]Metadata",
      "inboxNamespaceId": "[string?]GS2-Inbox namespace GRN to transfer overflow resources",
      "whiteListTargetIds": [
        "[string]target resource GRN prefix that can be processed through GS2-Distributor"
      ]
    }
  ]
}
Type Condition Required Default Value Limits Description
version string
2019-03-01 Format version of master data
distributorModels List<DistributorModel> ~ 100 items Distributor Model
A Distributor Model is an entity that defines the policy applied when acquiring resources beyond the inventory capacity.
By processing acquisitions through GS2-Distributor, overflow resources can be forwarded as GS2-Inbox messages.

Models

DistributorModel

Distributor Model

A Distributor Model is an entity that defines the policy applied when acquiring resources beyond the inventory capacity. By processing acquisitions through GS2-Distributor, overflow resources can be forwarded as GS2-Inbox messages.

Type Condition Required Default Value Limits Description
distributorModelId string
*
~ 1024 chars Distributor Model GRN
* Set automatically by the server
name string
~ 128 chars Distributor Model name
Distributor Model-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.).
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.
inboxNamespaceId string ~ 1024 chars GS2-Inbox namespace GRN to transfer overflow resources
When a resource acquisition exceeds the player’s inventory capacity, the overflow resources are forwarded as a message to the specified GS2-Inbox namespace. The player can then claim the resources from their inbox at a later time.
whiteListTargetIds List<string> [] 0 ~ 1000 items Whitelist of target resource GRN prefixes that can be processed through GS2-Distributor
Specify the GRN prefix of the target resources that can be processed for acquisition using this Distributor Model.