Struct ldtk::AutoRuleDef [−][src]
pub struct AutoRuleDef {}Show fields
pub break_on_match: bool, pub pivot_x: f32, pub tile_mode: Value, pub perlin_scale: f32, pub checker: Value, pub chance: f32, pub size: i32, pub pattern: Vec<i32>, pub out_of_bounds_value: Option<i32>, pub perlin_octaves: f32, pub flip_x: bool, pub x_modulo: i32, pub flip_y: bool, pub y_modulo: i32, pub tile_ids: Vec<i32>, pub active: bool, pub perlin_seed: f32, pub uid: i32, pub perlin_active: bool, pub pivot_y: f32,
This complex section isn’t meant to be used by game devs at all, as these rules are completely resolved internally by the editor before any saving. You should just ignore this part.
Fields
break_on_match: bool
When TRUE, the rule will prevent other rules to be applied in the same cell if it matches (TRUE by default).
pivot_x: f32
X pivot of a tile stamp (0-1)
tile_mode: Value
Defines how tileIds array is used Possible values: Single
, Stamp
perlin_scale: f32
checker: Value
Checker mode Possible values: None
, Horizontal
, Vertical
chance: f32
Chances for this rule to be applied (0 to 1)
size: i32
Pattern width & height. Should only be 1,3,5 or 7.
pattern: Vec<i32>
Rule pattern (size x size)
out_of_bounds_value: Option<i32>
Default IntGrid value when checking cells outside of level bounds
perlin_octaves: f32
flip_x: bool
If TRUE, allow rule to be matched by flipping its pattern horizontally
x_modulo: i32
X cell coord modulo
flip_y: bool
If TRUE, allow rule to be matched by flipping its pattern vertically
y_modulo: i32
Y cell coord modulo
tile_ids: Vec<i32>
Array of all the tile IDs. They are used randomly or as stamps, based on tileMode
value.
active: bool
If FALSE, the rule effect isn’t applied, and no tiles are generated.
perlin_seed: f32
uid: i32
Unique Int identifier
perlin_active: bool
If TRUE, enable Perlin filtering to only apply rule on specific random area
pivot_y: f32
Y pivot of a tile stamp (0-1)
Trait Implementations
impl Clone for AutoRuleDef
[src]
impl Clone for AutoRuleDef
[src]fn clone(&self) -> AutoRuleDef
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for AutoRuleDef
[src]
impl<'de> Deserialize<'de> for AutoRuleDef
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for AutoRuleDef
[src]
impl Serialize for AutoRuleDef
[src]Auto Trait Implementations
impl RefUnwindSafe for AutoRuleDef
impl RefUnwindSafe for AutoRuleDef
impl Send for AutoRuleDef
impl Send for AutoRuleDef
impl Sync for AutoRuleDef
impl Sync for AutoRuleDef
impl Unpin for AutoRuleDef
impl Unpin for AutoRuleDef
impl UnwindSafe for AutoRuleDef
impl UnwindSafe for AutoRuleDef
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]