Traits would be useful for large projects and libraries.
Suggested syntax:
trait MyTrait {
player somePlayerStat: int = 123;
global someGlobalStat: int = 123;
handle Join {
player.somePlayerStat = player.somePlayerStat + 1;
}
}
house MyHouse with MyTrait {
// this house already includes everything from MyTrait
handle Quit {
player.somePlayerStat = player.somePlayerStat - 1;
}
}
However, we need to think about way to process overlapping handlers
Traits would be useful for large projects and libraries.
Suggested syntax:
However, we need to think about way to process overlapping handlers