manganese_serialization_kit v0.2.4 Manganese.SerializationKit.Structs.UnityAssetBundle
A Unity asset bundle.
This module can be used as an Ecto type for de/serialization when interacting with the database.
Deserialization
See from_map/1
Serialization
See to_map/1
Asset utilities
See has_asset?/2
Link to this section Summary
Functions
Deserialize an asset bundle from a map.
Check if an asset bundle has an asset with the specified path and asset type.
Serialize an asset bundle to a map.
The PostgreSQL type used to represent a unity asset bundle.
Link to this section Types
Link to this type
t()
t()
t() :: %Manganese.SerializationKit.Structs.UnityAssetBundle{
assets: [Manganese.SerializationKit.Structs.UnityAsset.t()],
name: String.t()
}
t() :: %Manganese.SerializationKit.Structs.UnityAssetBundle{ assets: [Manganese.SerializationKit.Structs.UnityAsset.t()], name: String.t() }
A Unity asset bundle.
Link to this type
t_external()
t_external()
t_external() :: map()
t_external() :: map()
Link to this section Functions
Link to this function
from_map(map)
from_map(map)
from_map(t_external()) :: t()
from_map(t_external()) :: t()
Deserialize an asset bundle from a map.
Link to this function
has_asset?(unity_asset_bundle, asset_path, asset_type \\ nil)
has_asset?(unity_asset_bundle, asset_path, asset_type \\ nil)
has_asset?(
t(),
String.t(),
Manganese.SerializationKit.Enumerations.UnityAssetType.t() | nil
) :: boolean()
has_asset?( t(), String.t(), Manganese.SerializationKit.Enumerations.UnityAssetType.t() | nil ) :: boolean()
Check if an asset bundle has an asset with the specified path and asset type.
Link to this function
to_map(unity_asset_bundle)
to_map(unity_asset_bundle)
to_map(t()) :: t_external()
to_map(t()) :: t_external()
Serialize an asset bundle to a map.
Link to this function
type()
type()
type() :: :map
type() :: :map
The PostgreSQL type used to represent a unity asset bundle.