Anybody knows "Object-oriented programming"?

05/03/2014 17:16 [uLow]Beni#1
Hello lovely Metin2-Community!
We are working on a new project and you will be able to add python-scripts to control it.
From the binary it calls functions if something happen, there are two possibilities how i will make it.

First: via a simple call
Code:
def SomethingHappen():
    # do something
    return

WhenSomething(SomethingHappen)
Second: via method overriding
Code:
class AClass(Callbacker):
    def WhenSomething(self):
        # usually call to Callbacker.WhenSomething
        # do something
        return
Which would you like to use?