Struct gma::GMABuilder[][src]

pub struct GMABuilder { /* fields omitted */ }
Expand description

GMA File Builder.

The only required fields are ‘name’ and ‘addon_tag’

Implementations

Creates a new gma builder

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

Adds a file with the given filename and contents

Adds a file with the given filename and contents are read from reader

Consumes the builder and writes the gma file contents to the given writer

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.