We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 647eaa8 commit 8a86c50Copy full SHA for 8a86c50
crates/byondapi-rs/src/value/functions.rs
@@ -115,6 +115,12 @@ impl ByondValue {
115
Ok(())
116
}
117
118
+ /// Replaces whatever is currently in this value with a string that's pointed to by the stringid
119
+ /// # DO NOT PASS STRINGIDS THAT ARE NOT RETURNED BY [`crate::byond_string::str_id_of`]
120
+ pub fn set_strid(&mut self, strid: u4c) {
121
+ unsafe { byond().ByondValue_SetStrId(&mut self.0, strid) }
122
+ }
123
+
124
/// Replaces whatever is currently in this value with a ref
125
pub fn set_ref(&mut self, type_: ByondValueType, ref_: u4c) {
126
unsafe { byond().ByondValue_SetRef(&mut self.0, type_, ref_) }
0 commit comments