Master Data Reference of GS2-Distributor

Reference of the format of master data and various 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 resources GRN that can be processed through GS2-Distributor"
      ]
    }
  ]
}
TypeConditionRequiredDefaultValue LimitsDescription
versionstring
2019-03-01Format version of master data
distributorModelsList<DistributorModel>~ 100 itemsDistributor Model
Distributor Model is an entity that sets the policy when an entity’s acquisition exceeds its possession quota.
By processing acquisitions through GS2-Distributor, overflow resources can be forwarded as GS2-Inbox messages.

Model

DistributorModel

Distributor Model

Distributor Model is an entity that sets the policy when an entity’s acquisition exceeds its possession quota. By processing acquisitions through GS2-Distributor, overflow resources can be forwarded as GS2-Inbox messages.

TypeConditionRequiredDefaultValue LimitsDescription
distributorModelIdstring
✓*
~ 1024 charsDistributor Model GRN
* Automatically configured on the server
namestring
~ 128 charsDistributor Model name
Distributor Model-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.).
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.
inboxNamespaceIdstring~ 1024 charsGS2-Inbox namespace GRN to transfer overflow resources
whiteListTargetIdsList<string>[]0 ~ 1000 itemsWhitelist of target resources GRN 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.