expiteRz / wiimmfi-room-watcher

A work-in-progress tool to overlay the Wiimmfi room statistics in the live streaming
GNU General Public License v3.0
0 stars 0 forks source link

WiiLink WFC-based server support #21

Open expiteRz opened 1 month ago

expiteRz commented 1 month ago

room stats retrievable via https://{somethingdomain}/api/groups

expiteRz commented 1 month ago

heres temporary structure for wiimmfi-room-watcher:

type WiiLinkRoom struct {
    Id             string            `json:"id"`
    Game           string            `json:"game"`
    Created        string            `json:"created"`
    Type           string            `json:"type"`
    Suspend        bool              `json:"suspend"`
    RoomHost       string            `json:"host"`
    GameModeRegion string            `json:"rk"`
    Players        map[string]Player `json:"players"`
}

type Player struct {
    Count      string    `json:"count"`
    Pid        string    `json:"pid"`
    Name       string    `json:"name"`
    Status     int       `json:"conn_map,string"`
    ConnFail   int       `json:"conn_fail,string"`
    Suspend    int       `json:"suspend,string"`
    FriendCode string    `json:"fc"`
    VR         int       `json:"ev,string"`
    BR         int       `json:"eb,string"`
    Miis       []MiiData `json:"mii"`
}

type MiiData struct {
    Face string `json:"data"`
    Name string `json:"name"`
}