Skip to content
Snippets Groups Projects
Unverified Commit 5fc08176 authored by Kat Marchán's avatar Kat Marchán
Browse files

feat(perf): Use SparseSet for ActionState

Fixes: https://github.com/zkat/big-brain/issues/29
parent b97f9273
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ use crate::thinker::{ActionEnt, Actor}; ...@@ -11,6 +11,7 @@ use crate::thinker::{ActionEnt, Actor};
The current state for an Action. The current state for an Action.
*/ */
#[derive(Debug, Clone, Component, Eq, PartialEq)] #[derive(Debug, Clone, Component, Eq, PartialEq)]
#[component(storage = "SparseSet")]
pub enum ActionState { pub enum ActionState {
/** /**
Initial state. No action should be performed. Initial state. No action should be performed.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment