Need help creating equality metamethod
Posted: Thu Sep 06, 2018 2:43 pm
Hi everyone,
I am using a file I found online to implement OOP in my game. This class file uses a metatable when defining a new class type.
I have a vector class that uses this and I am wondering how I can setup equality checking of two vectors together. I am not exactly keen on how metamethods work in order to figure this out on my own. Am I out of luck with the metatable being used already?
I am using a file I found online to implement OOP in my game. This class file uses a metatable when defining a new class type.
I have a vector class that uses this and I am wondering how I can setup equality checking of two vectors together. I am not exactly keen on how metamethods work in order to figure this out on my own. Am I out of luck with the metatable being used already?