Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed verb syncing to work closer like IThingHolder
One of the changes I've proposed in rwmt#411, without any API implementation. List of changes: - `VerbOwnerType` enum was removed and replaced by `supportedVerbOwnerTypes` array - The array includes `typeof(Thing)` in stead of `typeof(Pawn)` for increased compatibility - `IVerbOwner` sync worker entry was added - `Verb` sync worker entry was modified to sync the owner as `IVerbOwner` Those changes should result in greater compatibility, as new supported `IVerbOwner` types can now be added to the array and synced using their own sync workers. This should also end up simplifying `Verb` sync worker going forward, as we won't have to expand it anymore in the future - only the array of supported types. Things that I did not include, but we may want to potentially consider: - Add more vanilla types to the list of supported verb owners, which could include: - `HediffComp` (specifically for `HediffComp_VerbGiver`) - however, in vanilla RW they don't have gizmos, but a mod could add a comp that adds one - `Pawn_MeleeVerbs_TerrainSource` - likely will never gizmos, probably will be completely pointless to include - `Pawn_NativeVerbs` - same as above - Automatically including all subtypes of `IVerbOwner` which have an explicit sync worker - Would simplify mod compat, as mods would (likely) never need to modify the list of supported verb owners - Could have potentially unintended consequences?
- Loading branch information