Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaderboard Component #14

Open
loothero opened this issue May 14, 2024 · 0 comments
Open

Leaderboard Component #14

loothero opened this issue May 14, 2024 · 0 comments

Comments

@loothero
Copy link
Member

loothero commented May 14, 2024

Data Structure:

struct Leaderboard {
    #[key]
    game_id: u64,
    first: Score,
    second: Score, 
    third: Score,
    forth: Score,
    fifth: Score,
    six: Score,
    seventh: Score,
   eighth: Score,
   ninth: Score,
   tenth: Score
}

struct Score {
    character_id: u64,
    xp: u16
}

# System Calls
# - is_top_score(xp)
# - update_leaderboard(character_id)
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

No branches or pull requests

1 participant