moor icon indicating copy to clipboard operation
moor copied to clipboard

Combine worldstate owner & flags check into one call, to make perms check more ef...

Open github-actions[bot] opened this issue 4 months ago • 0 comments

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>;

github-actions[bot] avatar Feb 10 '24 01:02 github-actions[bot]