moo.sdk.accounts

Account-level identity helpers.

The Player row is the durable account behind an avatar Object (its pk is the stable account id). These helpers let verbs and the safety set resolve from a discardable avatar to the account it belongs to, and back, without each one re-deriving the relationship. Multi-avatar ownership is anticipated here: avatars_of() returns a list so that a future “one account, several avatars” model needs no caller changes.

Functions

account_for(avatar_obj)

Return the Player account for an avatar Object, or None.

account_id_for(avatar_obj)

Return the stable account id for an avatar, or None.

avatars_of(account)

Return the list of avatar Objects an account owns.

current_account()

Return the account for the current context.player, or None.