Struct gma::GMABuilder [−][src]
pub struct GMABuilder { /* fields omitted */ }
Expand description
GMA File Builder.
The only required fields are ‘name’ and ‘addon_tag’
Implementations
Sets the gma version of the archive. Default : 3
Sets the steamid of the author. Default : 0
Sets the timestamp. Default : current time
Sets the name of the addon. Required
Sets the description of the addon. Default : ‘’
Sets the name of the author. Default : ‘unknown’
Enables or disables lzma compression. Default : false
Garry’s mod doesnt open compressed gma files. Support for compressed files is mostly here to interact with files downloaded straight from the steamworkshop that could be compressed
Sets the addon type. Required
Adds tag to the addon. Only 2 tags are allowed at any given time, adding more will replace the oldest one
Adds a file to the archive from the provided path
pub fn file_with_name<P: AsRef<Path>, N: Into<String>>(
&mut self,
path: P,
name: N
) -> Result<&mut Self, Error>
Adds a file with the given filename and contents
Adds a file with the given filename and contents are read from reader