branchwiseguys/main/IPlayercancel
63 Commits over 0 Days - ∞cph!
Move local character static getters from WiseguysUser into PCWorldEntityUser
BuildingUnitOwner is a component
No more errors when disconnecting. Will do some more thorough testing tomorrow.
Moved WorldEntityUser and Allies out into separate PlayerComponents. Major cleanup of WiseguysUser moving a lot of junk out - should make it easier for Bill to port down into NetworkUser. Still some tidying up that could be done and testing to do. Some NREs on disconnection that I'll look at later this evening, gotta go now.
Fixed gang member dependency order
User allies cache the ally list. Simplified player label updates and removed the need for the complicated event checking.
Fix criminal script on NPCs
Fixed UserStats not serializing
Updated scoreboard to use the new ReadyPlayerSelections synced to the client. Team selections aren't working though
Making PCUserAllies into an optional component script that only Whacky Races uses at the moment. Added ally checking methods to WiseguysUser, and a new IAllyComponent interface, so any IPlayerComponent can implement a custom ally system for a particular game mode.
Add bill_b_test_map to the build settings at its new location
Added a param to NetworkUser to mark if it's initial creation or just a reconnect. Only calling creation stuff when it's actually first created.
Remove remaining PersistentPerson references
Created all boilerplate for game mode specific user components
Removed gang references from IInteractor
Slight cleanup looking through character selections
Removed all instanced of persistentperson string
Fixed a couple of gang issues,
Added a compoent for HH game mode
Fixed a bug with RPC cache where it wasn't caching private methods.
Fixed GameMode dependencies not getting cleaned up when quitting as client.
Fixed PlayerComponents getting added multiple times when a player reconnects.
Added folders etc. to be able to start adding asmdef to all seperate game modes.
Fixed some init order issues that were breaking things once another player joined
Fixed criminal init issues
Fixed PlayerComponent adds properly
Getting PCCriminal working
Made a base PlayerComponent class. Don't need IPlayerComponent anymore since we can reference PlayerComponent instead. Still need to finish sorting out PCCriminal.
Remove spammy debug prints
Fixed the missing checkpoint arrow shader
Fixed some issues and NREs
Removed criminal references, character property is now abstract
Set up criminal as a component
Fixed issues with how Entities find their dependencies. Keep an eye on this, it could blow up.!
Finished conversion of PCUserStats. Stats now serialize to the client.
Reverted my changes to PlayerTick, as it won't actually work if unreliable messages are lost.
Added simple SerializeTemplate example class
Moving and renaming classes files only, no actual changes here. Give IPlayerComponents a "PC" prefix
UserStats SerializableStruct
Converted allies component
IPlayerComponents are resolved on clients
Added helper methods for calling some event method on all IPlayerComponents of the appropriate type
New ICharacterEvents that can be optionally called on IPlayerComponents. Also shuffled some things around.
Move scripts to different folder