I want to make an base script/class that can be called from other script like this
base class person{
eat(){
console.log("eat")
}
}
sub class bob extends person{}
sub class rolland extends person{}
eaterclass(){
initialize(){
this.entity.person.eat();
}
}
on this.entity
would be an bob script
how can I do this?