Struct gdnative::TileSet
[−]
[src]
pub struct TileSet { /* fields omitted */ }
Methods
impl TileSet
[src]
pub fn _is_tile_bound(&self, drawn_id: i64, neighbor_id: i64) -> bool
[src]
pub fn _forward_subtile_selection(
&self,
autotile_id: i64,
bitmask: i64,
tilemap: Option<GodotRef<Object>>,
tile_location: Vector2
) -> Vector2
[src]
&self,
autotile_id: i64,
bitmask: i64,
tilemap: Option<GodotRef<Object>>,
tile_location: Vector2
) -> Vector2
pub fn create_tile(&self, id: i64)
[src]
pub fn autotile_set_bitmask_mode(&self, id: i64, mode: i64)
[src]
pub fn tile_set_name(&self, id: i64, name: GodotString)
[src]
pub fn tile_get_name(&self, id: i64) -> GodotString
[src]
pub fn tile_set_texture(&self, id: i64, texture: Option<GodotRef<Texture>>)
[src]
pub fn tile_get_texture(&self, id: i64) -> Option<GodotRef<Texture>>
[src]
pub fn tile_set_normal_map(
&self,
id: i64,
normal_map: Option<GodotRef<Texture>>
)
[src]
&self,
id: i64,
normal_map: Option<GodotRef<Texture>>
)
pub fn tile_get_normal_map(&self, id: i64) -> Option<GodotRef<Texture>>
[src]
pub fn tile_set_material(
&self,
id: i64,
material: Option<GodotRef<ShaderMaterial>>
)
[src]
&self,
id: i64,
material: Option<GodotRef<ShaderMaterial>>
)
pub fn tile_get_material(&self, id: i64) -> Option<GodotRef<ShaderMaterial>>
[src]
pub fn tile_set_texture_offset(&self, id: i64, texture_offset: Vector2)
[src]
pub fn tile_get_texture_offset(&self, id: i64) -> Vector2
[src]
pub fn tile_set_region(&self, id: i64, region: Rect2)
[src]
pub fn tile_get_region(&self, id: i64) -> Rect2
[src]
pub fn tile_set_shape(
&self,
id: i64,
shape_id: i64,
shape: Option<GodotRef<Shape2D>>
)
[src]
&self,
id: i64,
shape_id: i64,
shape: Option<GodotRef<Shape2D>>
)
pub fn tile_get_shape(
&self,
id: i64,
shape_id: i64
) -> Option<GodotRef<Shape2D>>
[src]
&self,
id: i64,
shape_id: i64
) -> Option<GodotRef<Shape2D>>
pub fn tile_set_shape_transform(
&self,
id: i64,
shape_id: i64,
shape_transform: Transform2D
)
[src]
&self,
id: i64,
shape_id: i64,
shape_transform: Transform2D
)
pub fn tile_get_shape_transform(&self, id: i64, shape_id: i64) -> Transform2D
[src]
pub fn tile_set_shape_one_way(&self, id: i64, shape_id: i64, one_way: bool)
[src]
pub fn tile_get_shape_one_way(&self, id: i64, shape_id: i64) -> bool
[src]
pub fn tile_add_shape(
&self,
id: i64,
shape: Option<GodotRef<Shape2D>>,
shape_transform: Transform2D,
one_way: bool,
autotile_coord: Vector2
)
[src]
&self,
id: i64,
shape: Option<GodotRef<Shape2D>>,
shape_transform: Transform2D,
one_way: bool,
autotile_coord: Vector2
)
pub fn tile_get_shape_count(&self, id: i64) -> i64
[src]
pub fn tile_set_shapes(&self, id: i64, shapes: VariantArray)
[src]
pub fn tile_get_shapes(&self, id: i64) -> VariantArray
[src]
[src]
[src]
[src]
[src]
pub fn tile_set_light_occluder(
&self,
id: i64,
light_occluder: Option<GodotRef<OccluderPolygon2D>>
)
[src]
&self,
id: i64,
light_occluder: Option<GodotRef<OccluderPolygon2D>>
)
pub fn tile_get_light_occluder(
&self,
id: i64
) -> Option<GodotRef<OccluderPolygon2D>>
[src]
&self,
id: i64
) -> Option<GodotRef<OccluderPolygon2D>>
pub fn tile_set_occluder_offset(&self, id: i64, occluder_offset: Vector2)
[src]
pub fn tile_get_occluder_offset(&self, id: i64) -> Vector2
[src]
pub fn remove_tile(&self, id: i64)
[src]
pub fn clear(&self)
[src]
pub fn get_last_unused_tile_id(&self) -> i64
[src]
pub fn find_tile_by_name(&self, name: GodotString) -> i64
[src]
pub fn get_tiles_ids(&self) -> VariantArray
[src]
Methods from Deref<Target = Resource>
pub fn _setup_local_to_scene(&self)
[src]
pub fn set_path(&self, path: GodotString)
[src]
pub fn take_over_path(&self, path: GodotString)
[src]
pub fn get_path(&self) -> GodotString
[src]
pub fn set_name(&self, name: GodotString)
[src]
pub fn get_name(&self) -> GodotString
[src]
pub fn get_rid(&self) -> Rid
[src]
pub fn set_local_to_scene(&self, enable: bool)
[src]
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn get_local_scene(&self) -> Option<GodotRef<Node>>
[src]
pub fn setup_local_to_scene(&self)
[src]
pub fn duplicate(&self, subresources: bool) -> Option<GodotRef<Resource>>
[src]
Trait Implementations
impl GodotClass for TileSet
[src]
type ClassData = TileSet
type Reference = TileSet
fn godot_name() -> &'static str
[src]
unsafe fn register_class(_desc: *mut c_void)
[src]
fn godot_info(&self) -> &GodotClassInfo
[src]
unsafe fn reference(
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference
[src]
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference