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

minion_datas: SecondarySlotMap<MinionInstanceId, MinionData>, #14

Open
github-actions bot opened this issue Sep 30, 2023 · 0 comments
Open

minion_datas: SecondarySlotMap<MinionInstanceId, MinionData>, #14

github-actions bot opened this issue Sep 30, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

https://api.github.com/XBagon/hsbgsim/blob/ecab62a43f8722fd28e14c15242a81970ef799a1/src/game.rs#L20

        Death, DeathCheck, End, Event, EventHandlerManager, Events, ProposeAttack,
        RawActivateEffect, Remove, TakeDamage,
    },
    minions::{BoardPosition, MinionInstanceId, MinionVariant, Position},
    player::PlayerId,
    Battleground, MinionInstance,
};

use rand::prelude::*;
use rand_xoshiro::Xoshiro256PlusPlus;
use slotmap::{Key, SecondaryMap, SlotMap};
use thiserror::Error;
use tinyvec::ArrayVec;

pub struct Game {
    pub battleground: Battleground,
    pub minion_instances: SlotMap<MinionInstanceId, MinionInstance>,
    //TODO: minion_datas: SecondarySlotMap<MinionInstanceId, MinionData>,
    minion_summon_shift: SecondaryMap<MinionInstanceId, u8>,
    attacking_player: Option<PlayerId>,
    last_attacker: MinionInstanceId,
    additional_attacks: u8,
@github-actions github-actions bot added the todo label Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants