mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
Move source path function to Reflect trait
This commit is contained in:
@@ -42,6 +42,10 @@ macro_rules! define_two_args_node {
|
||||
}
|
||||
|
||||
impl<T:EntityId> Reflect for $name<T> {
|
||||
fn source_path() -> &'static str {
|
||||
file!()
|
||||
}
|
||||
|
||||
fn type_name(&self) -> &'static str {
|
||||
type_name::<Self>()
|
||||
}
|
||||
@@ -184,6 +188,10 @@ impl<T: EntityId> Visit for NotNode<T> {
|
||||
}
|
||||
|
||||
impl<T: EntityId> Reflect for NotNode<T> {
|
||||
fn source_path() -> &'static str {
|
||||
file!()
|
||||
}
|
||||
|
||||
fn type_name(&self) -> &'static str {
|
||||
type_name::<Self>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user