Before diving into the details, let's briefly review the core concepts in Subroutine.
- Organization: An organization represents a single company using Subroutine. An organization can have multiple users and manage multiple games.
- Game: A game represents an individual game developed or managed by an organization.
- Player: A player represents a user within a specific game.
- AssetDefinition: An AssetDefinition represents a type of object that can be held in a player's inventory, purchased, traded, or used. It defines the properties and characteristics of a particular item or resource.
- AssetHolding: An AssetHolding represents an instance of a specific AssetDefinition for a given player. While the AssetDefinition outlines the specifications of an item (e.g., name, description), the AssetHolding describes the quantity or status of that item held by a player. For example, "Gold Coin" can be an AssetDefinition defining its attributes, while an AssetHolding would indicate how many gold coins a player possesses.
Install the SDK
As a next step, you'll install an SDK for you platform. If you choose so, you can use the GraphQL API directly as well. Within this documentation, examples with code snippets will cover all SDKs as well as examples of GraphQL queries that can be ran directly.
Head over to Installation guide to continue.