Generate geckolib setters for properties with simple predefined types.

This commit is contained in:
Cameron McCormack 2016-05-01 18:35:49 +10:00
parent a8e82440ff
commit d69763b0c1
3 changed files with 24 additions and 3 deletions

View file

@ -17,7 +17,7 @@
</%def>
<%def name="predefined_type(name, type, initial_value, parse_method='parse', **kwargs)">
<%call expr="longhand(name, **kwargs)">
<%call expr="longhand(name, predefined_type=type, **kwargs)">
#[allow(unused_imports)]
use app_units::Au;
pub type SpecifiedValue = specified::${type};