branchwiseguys/main/GameModeFeaturescancel
16 Commits over 0 Days - ∞cph!
Events work, refactoring/cleanup
Make Client/Server separate work
Fixes, mainly extra checks to stop NREs when quitting in editor due to the unpredictable order everything gets destroyed in.
Fix some event bugs. Remove WeakEvent due to a couple of issues.
Crime events for characters+ other tweaks
Merge the latest from Main into my branch
Removed welfaremanager and welfare payment support. This is something that can be integrated into a specific game mode rather than being a general feature.
Major overhaul where I try to clean up some singletons, especially NetSCSingleton and MonoSCSingleton which were trying to be singletons and also handle the fact that listen servers would have two copies - one for the server side, and one for the client. I've now managed to remove those classes entirely. All shared managers etc that are per-level, like CharacterManager and ItemManager, instead of being singletons, are now referenced via the NetworkPeer object in the same way that NetworkUserManager etc are (though note they may not exist right away when NetworkPeer is created). Thus a lot of server/client checking code has been removed and replaced with simple NetworkPeer or NetworkClient/NetworkServer references.
Game modes can decide if they support shops or not. Also added some standard colour definitions to keep things consistent through the project.
Finish off removing the hack on UI text. Make it work nicely with the new system.