pub struct TileLink { /* private fields */ }Expand description
A link definition connecting tiles within the terrain system.
Tile links define how tiles connect to and blend with other tiles in link sets. They specify position, blending parameters, and entry points for tile transitions.
Implementations§
Source§impl TileLink
impl TileLink
Sourcepub fn serialise_version(&self) -> &u16
pub fn serialise_version(&self) -> &u16
Serialization version for this structure.
Sourcepub fn blend_quads(&self) -> &Vec<u32>
pub fn blend_quads(&self) -> &Vec<u32>
Blend quad indices for texture blending.
Sourcepub fn blend_size(&self) -> &u32
pub fn blend_size(&self) -> &u32
Size of the blend area.
Sourcepub fn no_offline_blend(&self) -> &bool
pub fn no_offline_blend(&self) -> &bool
If true, disables offline blending for this link.
Source§impl TileLink
impl TileLink
Sourcepub fn serialise_version_mut(&mut self) -> &mut u16
pub fn serialise_version_mut(&mut self) -> &mut u16
Serialization version for this structure.
Sourcepub fn link_set_mut(&mut self) -> &mut String
pub fn link_set_mut(&mut self) -> &mut String
Name of the link set this tile link belongs to.
Sourcepub fn base_x_mut(&mut self) -> &mut i32
pub fn base_x_mut(&mut self) -> &mut i32
Base X coordinate for the link origin.
Sourcepub fn base_y_mut(&mut self) -> &mut i32
pub fn base_y_mut(&mut self) -> &mut i32
Base Y coordinate for the link origin.
Sourcepub fn is_entry_mut(&mut self) -> &mut bool
pub fn is_entry_mut(&mut self) -> &mut bool
Whether this link serves as an entry point.
Sourcepub fn blend_quads_mut(&mut self) -> &mut Vec<u32>
pub fn blend_quads_mut(&mut self) -> &mut Vec<u32>
Blend quad indices for texture blending.
Sourcepub fn blend_size_mut(&mut self) -> &mut u32
pub fn blend_size_mut(&mut self) -> &mut u32
Size of the blend area.
Sourcepub fn no_offline_blend_mut(&mut self) -> &mut bool
pub fn no_offline_blend_mut(&mut self) -> &mut bool
If true, disables offline blending for this link.
Source§impl TileLink
impl TileLink
Sourcepub fn set_serialise_version(&mut self, val: u16) -> &mut Self
pub fn set_serialise_version(&mut self, val: u16) -> &mut Self
Serialization version for this structure.
Sourcepub fn set_link_set(&mut self, val: String) -> &mut Self
pub fn set_link_set(&mut self, val: String) -> &mut Self
Name of the link set this tile link belongs to.
Sourcepub fn set_base_x(&mut self, val: i32) -> &mut Self
pub fn set_base_x(&mut self, val: i32) -> &mut Self
Base X coordinate for the link origin.
Sourcepub fn set_base_y(&mut self, val: i32) -> &mut Self
pub fn set_base_y(&mut self, val: i32) -> &mut Self
Base Y coordinate for the link origin.
Sourcepub fn set_is_entry(&mut self, val: bool) -> &mut Self
pub fn set_is_entry(&mut self, val: bool) -> &mut Self
Whether this link serves as an entry point.
Sourcepub fn set_blend_quads(&mut self, val: Vec<u32>) -> &mut Self
pub fn set_blend_quads(&mut self, val: Vec<u32>) -> &mut Self
Blend quad indices for texture blending.
Sourcepub fn set_blend_size(&mut self, val: u32) -> &mut Self
pub fn set_blend_size(&mut self, val: u32) -> &mut Self
Size of the blend area.
Sourcepub fn set_no_offline_blend(&mut self, val: bool) -> &mut Self
pub fn set_no_offline_blend(&mut self, val: bool) -> &mut Self
If true, disables offline blending for this link.
Trait Implementations§
Source§impl Decodeable for TileLink
impl Decodeable for TileLink
Source§impl<'de> Deserialize<'de> for TileLink
impl<'de> Deserialize<'de> for TileLink
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Encodeable for TileLink
impl Encodeable for TileLink
Source§fn encode<W: WriteBytes>(
&mut self,
buffer: &mut W,
extra_data: &Option<EncodeableExtraData<'_>>,
) -> Result<()>
fn encode<W: WriteBytes>( &mut self, buffer: &mut W, extra_data: &Option<EncodeableExtraData<'_>>, ) -> Result<()>
impl StructuralPartialEq for TileLink
Auto Trait Implementations§
impl Freeze for TileLink
impl RefUnwindSafe for TileLink
impl Send for TileLink
impl Sync for TileLink
impl Unpin for TileLink
impl UnsafeUnpin for TileLink
impl UnwindSafe for TileLink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.