pub struct Package {
pub is_package: (),
pub enabled: bool,
pub id: String,
pub name: String,
pub version: String,
pub authors: Vec<String>,
pub asset_url: String,
pub client_modules: Vec<EntityId>,
pub server_modules: Vec<EntityId>,
pub optional: PackageOptional,
}
Expand description
Package: A package is a collection of assets, definitions and WASM logic.
Required:
is_package
: Whether or not this entity is a package.enabled
: Whether or not this package is enabled.id
: The ID of the package.name
: The name of the package.version
: The version of the package.authors
: The authors of the package.asset_url
: The asset URL (i.e. where the built assets are) of the package.client_modules
: The clientside WASM modules spawned by this package.server_modules
: The serverside WASM modules spawned by this package.
Optional:
description
: The description of the package. If not attached, the package does not have a description.repository
: The repository of the package. If not attached, the package does not have a repository.for_playables
: The playable IDs that this package is for. This package must be aMod
.
Fields§
§is_package: ()
Component: ambient_core::package::is_package
Component description: Whether or not this entity is a package.
enabled: bool
Component: ambient_core::package::enabled
Component description: Whether or not this package is enabled.
id: String
Component: ambient_core::package::id
Component description: The ID of the package.
name: String
Component: ambient_core::package::name
Component description: The name of the package.
version: String
Component: ambient_core::package::version
Component description: The version of the package.
Component: ambient_core::package::authors
Component description: The authors of the package.
asset_url: String
Component: ambient_core::package::asset_url
Component description: The asset URL (i.e. where the built assets are) of the package.
client_modules: Vec<EntityId>
Component: ambient_core::package::client_modules
Component description: The clientside WASM modules spawned by this package.
server_modules: Vec<EntityId>
Component: ambient_core::package::server_modules
Component description: The serverside WASM modules spawned by this package.
optional: PackageOptional
Optional components.
Trait Implementations§
source§impl Concept for Package
impl Concept for Package
source§fn get_spawned(id: EntityId) -> Option<Self>
fn get_spawned(id: EntityId) -> Option<Self>
id
exists and has the components defined by this concept, returns this concept with all of the values of the components in the entity. Read moresource§fn get_unspawned(entity: &Entity) -> Option<Self>
fn get_unspawned(entity: &Entity) -> Option<Self>
entity
has the components defined by this concept, returns this concept with all of the values of the components in the entity. Read moresource§fn contained_by_spawned(id: EntityId) -> bool
fn contained_by_spawned(id: EntityId) -> bool
id
exists and contains the components defined by this concept. Read moresource§impl ConceptComponents for Package
impl ConceptComponents for Package
§type Required = (Component<()>, Component<bool>, Component<String>, Component<String>, Component<String>, Component<Vec<String>>, Component<String>, Component<Vec<EntityId>>, Component<Vec<EntityId>>)
type Required = (Component<()>, Component<bool>, Component<String>, Component<String>, Component<String>, Component<Vec<String>>, Component<String>, Component<Vec<EntityId>>, Component<Vec<EntityId>>)
§type Optional = (Component<String>, Component<String>, Component<Vec<String>>)
type Optional = (Component<String>, Component<String>, Component<Vec<String>>)
source§fn from_required_data(
required: <Self::Required as ComponentsTuple>::Data
) -> Self
fn from_required_data( required: <Self::Required as ComponentsTuple>::Data ) -> Self
source§fn as_query() -> ConceptQuery<Self>where
Self: Sized,
fn as_query() -> ConceptQuery<Self>where
Self: Sized,
ConceptQuery
that can be passed into queries. Read more