Skip to content

docs: update docs#851

Open
rmrt1n wants to merge 3 commits intomainfrom
ryan/docs
Open

docs: update docs#851
rmrt1n wants to merge 3 commits intomainfrom
ryan/docs

Conversation

@rmrt1n
Copy link
Contributor

@rmrt1n rmrt1n commented Dec 4, 2025

TL;DR

Update Cardinal-related pages.

Questions

  1. Should we hide the JavaScript docs for now since it's outdated?
  2. Should we hide forge's section too until it's ready?

How to test

Run mintlify dev in the docs/ folder to run the docs site locally.

Copy link
Contributor Author

rmrt1n commented Dec 4, 2025


How to use the Graphite Merge Queue

Add the label graphite/merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@rmrt1n rmrt1n requested a review from smsunarto December 8, 2025 08:44
@rmrt1n rmrt1n marked this pull request as ready for review December 8, 2025 08:49
@rmrt1n rmrt1n requested a review from ryanditjia December 8, 2025 08:50
Copy link

@ryanditjia ryanditjia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the review comments are more questions rather than request changes.

I didn’t review: forge and the client SDK dropdowns.

Also raised a PR for changes that I think makes sense: #855


### Personas

A persona is the unique identity associated with a player’s account. All commands include metadata containing the sender’s persona, which you can use for authorization checks like verifying entity ownership.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If one reads the docs starting from Introduction and follow the Next buttons, one doesn’t get introduced to anything that leads to Persona, therefore Persona/account/authorization feel foreign, with no link to learn more. Perhaps a <Tip> or <Note> could help here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I wanted to add a section to explain Cardinal's architecture more, but I'm not sure where to put it in. The "the world" section at the top of the ECS page was originally supposed to be here in a "introduction" page, but I feel that going to ECS first is better to get readers more hands-on/involved (e.g. they can try on their own while reading) vs putting an introduction/architecture page first that is heavy on theory will be too "academic"(?). academic isn't the right word but I'm not sure how best to describe it. Going straight to ECS is more "quick-starty" than learning the high-level architecture as that can be learned later.

Copy link

@ryanditjia ryanditjia Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m thinking:

  • Cardinal
    • ECS
    • Persona (Game Account) <-- add this doc
    • Commands
    • Events

And this Persona doc is a rather short intro which briefly mentions:

  • How game engines are incomplete without some sort of auth
  • Personas are game accounts, how the string looks like
  • Local dev uses DevAuth
  • Staging (dev) uses Argus Auth

Wdyt? If okay, I’ll attempt this, since I’m more familiar with the Unity code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contents sounds good. After some thinking, we should move the persona page into a "introduction" page before ECS, which also introduces the shard concept and auth+personas. That way, we can get rid of the "client integration" page since every aspect of the client integration has been covered.

Use `SendCommand` to dispatch a command to another shard. Pass the system's `BaseSystemState` and the command you want to send:

```go
import matchcmd "my-game/shards/matchmaking/command"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmiiw, but shouldn’t this be in the pkg folder?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't have to be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants