Skip to content

Create and Implement RequirementChecker for all entities #4

@Shadow53

Description

@Shadow53

RequirementChecker defines a function that takes a reference to a Character and determines if it can "take" the given entity, whatever that means in context.

pub trait RequirementChecker {
    check_reqs(&self, c: &Character) -> Result<(), Error> {
        Ok(())
    }
}

... where Error is whatever the custom error type is, probably nebula_error::Error. The above indicates a default implementation that automatically succeeds.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesttavern_pathfinderThis issue or pull request relates to the pathfinder library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions