[ NoWrapper ]
public abstract void set_asset (Asset asset)
Sets the asset for this extractable object.
When an object is extracted from an asset using extract its asset will be
automatically set. Note that many classes that implement Extractable will
automatically create their objects using assets when you call their new
methods. However, you can use this method to
associate an object with a compatible asset if it was created by other means and does not yet have an asset. Or, for some implementations
of Extractable, you can use this to change the asset of the given extractable object,
which will lead to a change in its state to match the new asset id.
this | |
asset |
The asset to set |
true if |