Skip to main content

generate_common_methods

Macro generate_common_methods 

Source
macro_rules! generate_common_methods {
    () => { ... };
}
Expand description

Generates common methods for a struct.

This macro generates the following methods:

  • new: Creates a new instance of the struct with the given MapParameters.
  • into_inner: Consumes the struct and returns the inner TileMap.
  • tile_map_mut: Provides a mutable reference to the inner TileMap.