[][src]Struct yy_boss::cli::input::NewResource

pub struct NewResource {
    pub new_resource: SerializedData,
    pub associated_data: SerializedData,
}

This struct describes the new data needed to Add, Replace, or Set a resource in the ResourceCommandType.

The types of the Data required for new_resource and associated_data are written in the table below for convenience, but for the absolute answer, look in the [resources_ext] module.

Types of Each Field

Resource Typenew_resourceassociated_data
SpriteSprite Yy FileHashMap<Frame Uuid, [SpriteImageBuffer]>
ObjectObject Yy FileHashMap<EventType, String>
ScriptScript Yy FileString
ShaderShader Yy FileShaderScriptType

NB: Above, "Single-Void" means that a given Map must have only one key (if multiple are present, the command will abort with an error), and the contents of the key do not matter. Using data might be a good idea for users, but any name is fine.

Fields

new_resource: SerializedData

This field must contain the Data of a Yy File to add for the given resource.

See the chart in NewResource above for more details.

associated_data: SerializedData

This fields must contain the Associated Data of a given Yy File.

See the chart in NewResource above for more details of which types of associated data are expected.

Trait Implementations

impl Clone for NewResource[src]

impl Debug for NewResource[src]

impl<'de> Deserialize<'de> for NewResource[src]

impl Eq for NewResource[src]

impl PartialEq<NewResource> for NewResource[src]

impl Serialize for NewResource[src]

impl StructuralEq for NewResource[src]

impl StructuralPartialEq for NewResource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,