moor
moor copied to clipboard
Combine worldstate owner & flags check into one call, to make perms check more ef...
https://github.com/rdaum/moor/blob/47435a1442a1f5532c23944029e90982baa99bff/crates/values/src/model/world_state.rs#L40
/// commit any changes to the world at the end of the transaction, or be capable of rolling back
/// on failure.
pub trait WorldState {
// TODO: Combine worlstate owner & flags check into one call, to make perms check more efficient
/// Get the set of all objects which are 'players' in the world.
fn players(&self) -> Result<ObjSet, WorldStateError>;