mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-11 22:50:08 +00:00
Reflect::first_field_ref/mut_of_type
This commit is contained in:
@@ -662,12 +662,12 @@ impl Reflect for Node {
|
||||
Some(Box::new(self.clone()))
|
||||
}
|
||||
|
||||
fn get_field_direct_ref(&self, index: usize) -> Option<FieldRef> {
|
||||
self.0.deref().get_field_direct_ref(index)
|
||||
fn field_direct_ref(&self, index: usize) -> Option<FieldRef> {
|
||||
self.0.deref().field_direct_ref(index)
|
||||
}
|
||||
|
||||
fn get_field_direct_mut(&mut self, index: usize) -> Option<FieldMut> {
|
||||
self.0.deref_mut().get_field_direct_mut(index)
|
||||
fn field_direct_mut(&mut self, index: usize) -> Option<FieldMut> {
|
||||
self.0.deref_mut().field_direct_mut(index)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -812,12 +812,12 @@ impl Reflect for Script {
|
||||
Some(Box::new(self.clone()))
|
||||
}
|
||||
|
||||
fn get_field_direct_ref(&self, index: usize) -> Option<FieldRef> {
|
||||
self.instance.deref().get_field_direct_ref(index)
|
||||
fn field_direct_ref(&self, index: usize) -> Option<FieldRef> {
|
||||
self.instance.deref().field_direct_ref(index)
|
||||
}
|
||||
|
||||
fn get_field_direct_mut(&mut self, index: usize) -> Option<FieldMut> {
|
||||
self.instance.deref_mut().get_field_direct_mut(index)
|
||||
fn field_direct_mut(&mut self, index: usize) -> Option<FieldMut> {
|
||||
self.instance.deref_mut().field_direct_mut(index)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user