Jugadores
const Players = require("~system/Players");Métodos
interface Request {}
interface Response {
players: Player[];
}
function getPlayersInScene(Request): Promise<Response>;Tipos
Última actualización
const Players = require("~system/Players");interface Request {}
interface Response {
players: Player[];
}
function getPlayersInScene(Request): Promise<Response>;Última actualización
interface Request {}
interface Response {
players: Player[];
}
function getConnectedPlayers(Request): Promise<Response>;interface Request {
// The user identifier, (for non-guests, their Ethereum address).
userId: string;
}
interface Response {
// The profile information for this user, if available.
data?: UserData;
}
function getPlayerData(Request): Promise<Response>;interface Player {
// The user identifier, (for non-guests, their Ethereum address).
userId: string;
}export interface UserData {
// The user identifier (i.e. their Ethereum address).
userId: string;
// Un nombre para llamarlo en la IU.
displayName: string;
// La clave pública de Ethereum con la que firma.
publicKey?: string;
// Si tienen la funcionalidad web3 habilitada.
hasConnectedWeb3: boolean;
// La versión secuencial de esta información, incrementada en cada actualización del usuario.
version: number;
// Información sobre su avatar, si está disponible.
avatar?: {
// Punteros a los assets requeridos para renderizar este avatar.
bodyShape: string;
wearables: string[];
// Hex-encoded RGB/RGBA color tints for different body parts.
skinColor: string;
hairColor: string;
eyeColor: string;
// Identificadores de archivo para las "fotos" de este avatar.
snapshots?: {
face256: string;
body: string;
};
};
}