248 Commits

Author SHA1 Message Date
JohnCorby
4d339df9db sync all persistent conditions 2022-03-27 00:24:07 -07:00
JohnCorby
6f8d367b95 move DebugLog.DebugWrite 2022-03-14 05:13:12 -07:00
JohnCorby
ece4ee3c86 RequestInitialStatesMessage: put try around SendInitialState 2022-03-14 05:12:08 -07:00
JohnCorby
611ecec4a3 world object link: use for eote stuff, also make abstract class impls for convenience 2022-03-14 03:22:44 -07:00
Mister_Nebula
24cc63012a fix it 2022-03-14 01:52:49 -07:00
JohnCorby
6dcce3da84 world object link: improve api 2022-03-14 01:52:49 -07:00
Mister_Nebula
9e166b34fe change some stuff aaaaa (extract out init code into QSBWorldSync) 2022-03-13 21:44:04 +00:00
Mister_Nebula
ff001cc8c8 AAAAA (world object variable syncers) 2022-03-13 16:14:22 +00:00
JohnCorby
ff3d139ac7 WorldObjectManager: DlcOnly flag 2022-03-11 10:04:11 -08:00
JohnCorby
ad2c84acb2 Revert "use GetType() instead of GetType().Name in strings, since they return the same thing"
This reverts commit c3e77d24
2022-03-11 00:58:14 -08:00
JohnCorby
014ee9dfeb oops 2022-03-07 17:38:22 -08:00
JohnCorby
c3e77d2449 use GetType() instead of GetType().Name in strings, since they return the same thing 2022-03-06 01:37:30 -08:00
JohnCorby
e4da50a656 solution-wide: file-scoped namespaces 2022-03-02 19:46:33 -08:00
JohnCorby
a8fba743f6 Revert "solution wide: use file-scoped namespace" 2022-02-27 05:25:39 -08:00
JohnCorby
adbeef6caf QSBWorldSync: cancel tasks after checking dictionaries 2022-02-25 23:18:51 -08:00
JohnCorby
3d7a1ed6af comment 2022-02-25 23:18:50 -08:00
JohnCorby
9b94f54a45 WorldObjectType -> WorldObjectScene 2022-02-25 23:18:47 -08:00
JohnCorby
182678c4bc solution wide: use file-scoped namespace 2022-02-25 23:18:46 -08:00
JohnCorby
9e5e7bb6a1 initial state:
- always send from the host
- QSBNetworkBehaviour will store last known data in an array and send that, since real data will be wrong if no authority
2022-02-16 19:22:21 -08:00
JohnCorby
6fb47ffd35 QSBWorldSync: check _cts == null after awaiting tasks, since that means it's been cancelled so we should stop stop working 2022-02-16 18:14:40 -08:00
JohnCorby
1441dc4a32 Revert "Revert "QSBNetworkBehaviour: SendInitialState""
This reverts commit 6eb8b144b3b0bfe906b3b69a4475823842d9b7db.
2022-02-04 14:17:23 -08:00
JohnCorby
4f12462f82 Manager -> IAddComponentOnStart 2022-02-01 14:24:21 -08:00
Mister_Nebula
19d72dffee add manager stuff 2022-02-01 08:58:52 +00:00
JohnCorby
806438b324 remove a space 2022-01-31 11:38:53 -08:00
Will Corby
c30624fb1f
Update RequestInitialStatesMessage.cs 2022-01-31 11:31:23 -08:00
Mister_Nebula
1991c681eb cleanup qsb 2022-01-31 14:23:50 +00:00
JohnCorby
0cb8b48b71 make everything in QSBWorldSync readonly, just for fun 2022-01-29 15:33:33 -08:00
Mister_Nebula
3c88bc7072 fix dialogue condition funkiness 2022-01-29 20:41:12 +00:00
JohnCorby
2895e54083 rename 2022-01-29 01:29:02 -08:00
JohnCorby
c9321fff84 rename 2022-01-29 01:26:28 -08:00
JohnCorby
e42aec8bae move everything over to UnityEvents 2022-01-29 01:24:15 -08:00
JohnCorby
abf4cb5ceb rename 2022-01-28 23:22:13 -08:00
JohnCorby
c73591d5c6 - only await for the tasks that dont finish instantly
- warn about still-running tasks in RemoveWorldObjects
2022-01-28 23:05:42 -08:00
JohnCorby
bcc87190a3 make AllObjectsAdded and AllObjectsReady non-computed again 2022-01-28 21:56:39 -08:00
JohnCorby
835f495247 oops forgot to use Try in BuildWorldObjects 2022-01-28 21:40:26 -08:00
JohnCorby
d706ffd998 check _cts before building/removing world objects 2022-01-28 21:17:59 -08:00
JohnCorby
8a67003196 AllObjectsAdded and AllObjectsReady just means no more tasks are running 2022-01-28 21:09:14 -08:00
JohnCorby
cb3b851ecf make BuildWorldObjects async, truly 2022-01-28 21:05:04 -08:00
JohnCorby
edf469d3e4 rename 2022-01-28 20:50:34 -08:00
JohnCorby
2f99dec87f make BuildWorldObjects async 2022-01-28 20:49:07 -08:00
JohnCorby
81ff327509 - tweaks
- clear cache on start scene load
- wait until Start to set the parent so we don't mess with sibling indexes
- patch before scene load and unpatch when world objects ready
2022-01-27 15:58:33 -08:00
JohnCorby
7d50e7b510 debug logging 2022-01-26 19:43:40 -08:00
JohnCorby
f240b532fe debug logging 2022-01-26 19:21:18 -08:00
JohnCorby
0e1f7f180b deterministic manager 2022-01-26 18:54:50 -08:00
JohnCorby
091d1f2988 Merge branch 'dev' into vendor-compatibility 2022-01-26 16:04:39 -08:00
JohnCorby
8aaeeb8463 rename IWorldObject.ReturnObject to AttachedObject 2022-01-26 00:59:59 -08:00
JohnCorby
b309f117df rename IWorldObject.ReturnObject to AttachedObject 2022-01-26 00:55:47 -08:00
JohnCorby
141ed5c13c request initial states EVERY time world objects are ready, goofus 2022-01-26 00:12:44 -08:00
JohnCorby
a2660d6a54 send initial states less often and not in RequestStateResyncMessage 2022-01-26 00:12:44 -08:00
JohnCorby
1800e6f21f make SendResyncInfo abstract to make sure we handle resyncs 2022-01-25 21:08:04 -08:00