Hello! How may I access (in code) if a class is implementing a specific trait?
For instance:
if (Car.hasTrait(FastEngine)){
Car.DriveFast();
}
I was also just wondering if this is stable enough to use in a full project, thanks! : ) 👍
Edit:Sorry I don't know markdown to make that code look pretty! 😟
Hello! How may I access (in code) if a class is implementing a specific trait?
For instance:
if (Car.hasTrait(FastEngine)){
Car.DriveFast();
}
I was also just wondering if this is stable enough to use in a full project, thanks! : ) 👍
Edit:Sorry I don't know markdown to make that code look pretty! 😟