Struct gdnative::TileSet [−][src]
pub struct TileSet { /* fields omitted */ }
core class TileSet : Resource
(reference counted)
Base class
TileSet inherits Resource and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl TileSet
[src]
impl TileSet
pub fn as_resource(&self) -> Resource
[src]
pub fn as_resource(&self) -> Resource
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn _is_tile_bound(&mut self, drawn_id: i64, neighbor_id: i64) -> bool
[src]
pub fn _is_tile_bound(&mut self, drawn_id: i64, neighbor_id: i64) -> bool
pub fn _forward_subtile_selection(
&mut self,
autotile_id: i64,
bitmask: i64,
tilemap: Option<Object>,
tile_location: Vector2
) -> Vector2
[src]
pub fn _forward_subtile_selection(
&mut self,
autotile_id: i64,
bitmask: i64,
tilemap: Option<Object>,
tile_location: Vector2
) -> Vector2
pub fn create_tile(&mut self, id: i64)
[src]
pub fn create_tile(&mut self, id: i64)
pub fn autotile_set_bitmask_mode(&mut self, id: i64, mode: i64)
[src]
pub fn autotile_set_bitmask_mode(&mut self, id: i64, mode: i64)
pub fn tile_set_name(&mut self, id: i64, name: GodotString)
[src]
pub fn tile_set_name(&mut self, id: i64, name: GodotString)
pub fn tile_get_name(&self, id: i64) -> GodotString
[src]
pub fn tile_get_name(&self, id: i64) -> GodotString
pub fn tile_set_texture(&mut self, id: i64, texture: Option<Texture>)
[src]
pub fn tile_set_texture(&mut self, id: i64, texture: Option<Texture>)
pub fn tile_get_texture(&self, id: i64) -> Option<Texture>
[src]
pub fn tile_get_texture(&self, id: i64) -> Option<Texture>
pub fn tile_set_normal_map(&mut self, id: i64, normal_map: Option<Texture>)
[src]
pub fn tile_set_normal_map(&mut self, id: i64, normal_map: Option<Texture>)
pub fn tile_get_normal_map(&self, id: i64) -> Option<Texture>
[src]
pub fn tile_get_normal_map(&self, id: i64) -> Option<Texture>
pub fn tile_set_material(&mut self, id: i64, material: Option<ShaderMaterial>)
[src]
pub fn tile_set_material(&mut self, id: i64, material: Option<ShaderMaterial>)
pub fn tile_get_material(&self, id: i64) -> Option<ShaderMaterial>
[src]
pub fn tile_get_material(&self, id: i64) -> Option<ShaderMaterial>
pub fn tile_set_texture_offset(&mut self, id: i64, texture_offset: Vector2)
[src]
pub fn tile_set_texture_offset(&mut self, id: i64, texture_offset: Vector2)
pub fn tile_get_texture_offset(&self, id: i64) -> Vector2
[src]
pub fn tile_get_texture_offset(&self, id: i64) -> Vector2
pub fn tile_set_region(&mut self, id: i64, region: Rect2)
[src]
pub fn tile_set_region(&mut self, id: i64, region: Rect2)
pub fn tile_get_region(&self, id: i64) -> Rect2
[src]
pub fn tile_get_region(&self, id: i64) -> Rect2
pub fn tile_set_shape(&mut self, id: i64, shape_id: i64, shape: Option<Shape2D>)
[src]
pub fn tile_set_shape(&mut self, id: i64, shape_id: i64, shape: Option<Shape2D>)
pub fn tile_get_shape(&self, id: i64, shape_id: i64) -> Option<Shape2D>
[src]
pub fn tile_get_shape(&self, id: i64, shape_id: i64) -> Option<Shape2D>
pub fn tile_set_shape_transform(
&mut self,
id: i64,
shape_id: i64,
shape_transform: Transform2D
)
[src]
pub fn tile_set_shape_transform(
&mut 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_get_shape_transform(&self, id: i64, shape_id: i64) -> Transform2D
pub fn tile_set_shape_one_way(&mut self, id: i64, shape_id: i64, one_way: bool)
[src]
pub fn tile_set_shape_one_way(&mut self, id: i64, shape_id: i64, one_way: bool)
pub fn tile_get_shape_one_way(&self, id: i64, shape_id: i64) -> bool
[src]
pub fn tile_get_shape_one_way(&self, id: i64, shape_id: i64) -> bool
pub fn tile_add_shape(
&mut self,
id: i64,
shape: Option<Shape2D>,
shape_transform: Transform2D,
one_way: bool,
autotile_coord: Vector2
)
[src]
pub fn tile_add_shape(
&mut self,
id: i64,
shape: Option<Shape2D>,
shape_transform: Transform2D,
one_way: bool,
autotile_coord: Vector2
)
pub fn tile_get_shape_count(&self, id: i64) -> i64
[src]
pub fn tile_get_shape_count(&self, id: i64) -> i64
pub fn tile_set_shapes(&mut self, id: i64, shapes: VariantArray)
[src]
pub fn tile_set_shapes(&mut self, id: i64, shapes: VariantArray)
pub fn tile_get_shapes(&self, id: i64) -> VariantArray
[src]
pub fn tile_get_shapes(&self, id: i64) -> VariantArray
pub fn tile_set_light_occluder(
&mut self,
id: i64,
light_occluder: Option<OccluderPolygon2D>
)
[src]
pub fn tile_set_light_occluder(
&mut self,
id: i64,
light_occluder: Option<OccluderPolygon2D>
)
pub fn tile_get_light_occluder(&self, id: i64) -> Option<OccluderPolygon2D>
[src]
pub fn tile_get_light_occluder(&self, id: i64) -> Option<OccluderPolygon2D>
pub fn tile_set_occluder_offset(&mut self, id: i64, occluder_offset: Vector2)
[src]
pub fn tile_set_occluder_offset(&mut self, id: i64, occluder_offset: Vector2)
pub fn tile_get_occluder_offset(&self, id: i64) -> Vector2
[src]
pub fn tile_get_occluder_offset(&self, id: i64) -> Vector2
pub fn remove_tile(&mut self, id: i64)
[src]
pub fn remove_tile(&mut self, id: i64)
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
pub fn get_last_unused_tile_id(&self) -> i64
[src]
pub fn get_last_unused_tile_id(&self) -> i64
pub fn find_tile_by_name(&self, name: GodotString) -> i64
[src]
pub fn find_tile_by_name(&self, name: GodotString) -> i64
pub fn get_tiles_ids(&self) -> VariantArray
[src]
pub fn get_tiles_ids(&self) -> VariantArray
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Resource>
pub fn as_reference(&self) -> Reference
[src]
pub fn as_reference(&self) -> Reference
Up-cast.
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn _setup_local_to_scene(&mut self)
[src]
pub fn _setup_local_to_scene(&mut self)
pub fn set_path(&mut self, path: GodotString)
[src]
pub fn set_path(&mut self, path: GodotString)
pub fn take_over_path(&mut self, path: GodotString)
[src]
pub fn take_over_path(&mut self, path: GodotString)
pub fn get_path(&self) -> GodotString
[src]
pub fn get_path(&self) -> GodotString
pub fn set_name(&mut self, name: GodotString)
[src]
pub fn set_name(&mut self, name: GodotString)
pub fn get_name(&self) -> GodotString
[src]
pub fn get_name(&self) -> GodotString
pub fn get_rid(&self) -> Rid
[src]
pub fn get_rid(&self) -> Rid
pub fn set_local_to_scene(&mut self, enable: bool)
[src]
pub fn set_local_to_scene(&mut self, enable: bool)
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn is_local_to_scene(&self) -> bool
pub fn get_local_scene(&self) -> Option<Node>
[src]
pub fn get_local_scene(&self) -> Option<Node>
pub fn setup_local_to_scene(&mut self)
[src]
pub fn setup_local_to_scene(&mut self)
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
[src]
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for TileSet
[src]
impl GodotObject for TileSet
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for TileSet
[src]
impl Deref for TileSet
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for TileSet
[src]
impl DerefMut for TileSet
impl Drop for TileSet
[src]
impl Drop for TileSet