Struct planetkit::net::NodeResource [] [src]

pub struct NodeResource {
    pub is_master: bool,
}

Local state for this network node. Used by some systems even if we're only running the game locally, because there are some generic systems (e.g. CellDweller mining) that need to know whether we are the master.

Fields

Trait Implementations

impl AutoResource for NodeResource
[src]

[src]

[src]

Ensure the given resource exists in the world. Returns the resource for writing; this should only be used during initialization, so contention shouldn't be an issue. Read more