BannerlordCoop
BannerlordCoop copied to clipboard
Town Sync
Town interactions need to be synchronized via RPC and value persistence. Look into what other sync might be needed and implement.
The following fields will need to be synchronized
- [ ] _wallLevel
- [ ] _isCastle
- [ ] GarrisonAutoRecruitmentIsEnabled
- [ ] _ownerClan
- [ ] _security
- [ ] _loyalty
- [ ] Building (adding and deletion)
- [ ] BuildingsInProgress (adding and deletion)
- [ ] BoostBuildingProcess
- [ ] _marketData
- [ ] _tradeTax
- [ ] InRebelliousStat
- [ ] _governor
- [ ] _soldItems
The following methods will be disabled on all clients
- [ ] TickCurrentBuilding
- [ ] DailyGarrisonAdjustment
- [ ] DesertOneTroopFromGarrison
- [ ] RepairWallsOfSettlementDaily
- [ ] HandleMilitiaAndGarrisonOfSettlementDaily
- [ ] DailyTick
See https://github.com/Bannerlord-Coop-Team/BannerlordCoop/blob/development/source/Coop/Mod/Persistence/Party/EventPartyMoveTo.cs. We use Railgun for RPC, https://github.com/araex/RailgunNet/blob/master/RailgunNet/Logic/RailEvent.cs