pub struct Generator { /* private fields */ }
Expand description
A builder type that holds all necessary information about the project to generate files in all the right places.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn with_godot_project_dir(&mut self, dir: impl AsRef<Path>)
pub fn with_godot_project_dir(&mut self, dir: impl AsRef<Path>)
REQUIRED Set the path to the root of the Godot project.
Sourcepub fn godot_project_dir(self, dir: impl AsRef<Path>) -> Self
pub fn godot_project_dir(self, dir: impl AsRef<Path>) -> Self
REQUIRED Set the path to the root of the Godot project.
Sourcepub fn with_godot_resource_output_dir(&mut self, dir: impl AsRef<Path>)
pub fn with_godot_resource_output_dir(&mut self, dir: impl AsRef<Path>)
Set the path to the directory inside the Godot project to which the generates files should be saved.
Sourcepub fn godot_resource_output_dir(self, dir: impl AsRef<Path>) -> Self
pub fn godot_resource_output_dir(self, dir: impl AsRef<Path>) -> Self
Set the path to the directory inside the Godot project to which the generates files should be saved.
Sourcepub fn with_target_dir(&mut self, dir: impl AsRef<Path>)
pub fn with_target_dir(&mut self, dir: impl AsRef<Path>)
Set the path to the target
directory in which cargo creates build
artefacts.
Sourcepub fn target_dir(self, dir: impl AsRef<Path>) -> Self
pub fn target_dir(self, dir: impl AsRef<Path>) -> Self
Set the path to the target
directory in which cargo creates build
artefacts.
Sourcepub fn with_lib_format(&mut self, lib_format: LibFormat)
pub fn with_lib_format(&mut self, lib_format: LibFormat)
Set the type of the GDNativeLibrary Format
Sourcepub fn lib_format(self, lib_format: LibFormat) -> Self
pub fn lib_format(self, lib_format: LibFormat) -> Self
Set the type of the GDNativeLibrary Format
Sourcepub fn with_lib_name(&mut self, name: impl AsRef<str>)
pub fn with_lib_name(&mut self, name: impl AsRef<str>)
Set the name of the crate.
Sourcepub fn with_build_mode(&mut self, mode: BuildMode)
pub fn with_build_mode(&mut self, mode: BuildMode)
Set the build mode of the crate.
This will affect the path the gdnlib
resource points to.
Sourcepub fn build_mode(self, mode: BuildMode) -> Self
pub fn build_mode(self, mode: BuildMode) -> Self
Set the build mode of the crate.
This will affect the path the gdnlib
resource points to.