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

Character Manager Component #10

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

Character Manager Component #10

loothero opened this issue May 10, 2024 · 0 comments

Comments

@loothero
Copy link
Member

loothero commented May 10, 2024

struct Character {
    #[key]
    id: u64,
    creator_id: u64,
    name: felt252,
    description: ByteArray,
    xp_name: felt252,
    health_name: felt252,
    gold_name: felt252,
    stat_0_name: felt252,
    stat_1_name: felt252,
    stat_2_name: felt252,
    stat_3_name: felt252,
    stat_4_name: felt252,
    stat_5_name: felt252,
    stat_6_name: felt252,
    starting_state: Player,
    onchain_art: ByteArray,
    offchain_art: ByteArray,
}

struct Player {
    #[key]
    id: u64,
    xp: u16,
    hp: u16,
    gold: u16,
    stats: Stats,
    slot_0: EquippedItem,
    slot_1: EquippedItem,
    slot_2: EquippedItem,
    slot_3: EquippedItem,
    slot_4: EquippedItem,
    slot_5: EquippedItem,
    slot_6: EquippedItem,
    slot_7: EquippedItem,
    consumable_1: Consumable,
    consumable_2: Consumable,
    consumable_3: Consumable,
}

struct EquippedItem {
    xp: u16,
    item: Item,
}

Character Registration Component depends on Creator Registration Component and Item Registration Component

@loothero loothero changed the title Character Registration Component Character Manager Component May 14, 2024
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