#[on_string_table]Expand description
A method wrapped with #[on_string_table] macro is called when string table is updated.
ยงExamples
#[on_string_table] // Will be called when any string table is updated
fn string_table(&mut self, ctx: &Context, table: &StringTable, modified: &[i32]) -> ObserverResult {
Ok(())
}#[on_string_table("EntityNames")] // Will be called when "EntityNames" table is updated
fn string_table(&mut self, ctx: &Context, table: &StringTable, modified: &[i32]) -> ObserverResult {
Ok(())
}#[on_string_table]
fn string_table(&mut self, table: &StringTable, modified: &[i32]) -> ObserverResult {
Ok(())
}