From 4df88c2efd3811281a3e0e24bbab388df71fe771 Mon Sep 17 00:00:00 2001 From: asya Date: Tue, 21 Apr 2026 23:13:29 +0300 Subject: [PATCH 1/6] added gitignore log --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index e897663..fce10c5 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,8 @@ ExportedObj/ *.opendb *.VC.db +*.log + # Unity3D generated meta files *.pidb.meta *.pdb.meta From c5b2710ea257609f5ad663569fc57d0a40f07976 Mon Sep 17 00:00:00 2001 From: asya Date: Tue, 14 Jul 2026 22:08:37 +0300 Subject: [PATCH 2/6] updated to rc3 and fix for names issue --- 2.2.rs.logs.txt | 194 + Assets/9-Sliced.prefab | 238 + .../slugs.json.meta => 9-Sliced.prefab.meta} | 4 +- .../SelectionHighlight/HighlightOutline.mat | 4 +- .../LiberationSans SDF - Fallback.asset | 7 +- Assets/Prefabs/Characters/KeeperRobot.prefab | 441 +- Assets/Prefabs/Characters/Player.prefab | 793 +- .../Burnables/Base_BurnableObject.prefab | 149 +- Assets/Prefabs/Interactive/Campfire.prefab | 836 +- Assets/Prefabs/Interactive/Tree.prefab | 181 +- .../{2.1.0.meta => 2.2.0-pre.3.meta} | 2 +- .../{2.1.0 => 2.2.0-pre.3}/Worlds UI.meta | 2 +- .../Worlds UI/ConnectDialogWorldView.cs | 0 .../Worlds UI/ConnectDialogWorldView.cs.meta | 0 .../Worlds UI/SpinnerAnimWorlds.anim | 0 .../Worlds UI/SpinnerAnimWorlds.anim.meta | 0 .../Worlds UI/SpinnerAnimWorlds.controller | 0 .../SpinnerAnimWorlds.controller.meta | 0 .../Worlds UI/World Connection Dialog.prefab | 0 .../World Connection Dialog.prefab.meta | 0 .../Worlds UI/WorldDialogUI.cs | 6 +- .../Worlds UI/WorldDialogUI.cs.meta | 0 .../Worlds UI/Worlds UI.unity | 0 .../Worlds UI/Worlds UI.unity.meta | 0 .../WorldsInputFieldTextFontSetter.cs | 0 .../WorldsInputFieldTextFontSetter.cs.meta | 0 Assets/Scenes/Main.unity | 1 + Assets/Scripts/UI/PlayerNameUI.cs | 18 +- .../CoherenceSyncConfigRegistry.asset | 23 +- .../CoherenceSyncConfigs/9-Sliced.asset | 34 + .../9-Sliced.asset.meta} | 6 +- Assets/coherence/Gathered.schema | 292 +- Assets/coherence/RuntimeSettings.asset | 20 +- Assets/coherence/SimulatorSlugs.asset | 24 + ...ink.xml.meta => SimulatorSlugs.asset.meta} | 5 +- Assets/coherence/Temp/link.xml | 11 - Assets/coherence/baked/Archetypes.cs | 72 - Assets/coherence/baked/BakeInfo.cs | 22 + .../{Archetypes.cs.meta => BakeInfo.cs.meta} | 2 +- ...ceSync_0109999de4f6d45bb8c13493b504dee7.cs | 309 +- ...ceSync_0d27e1ad6d8e5ba4abca3216a92298f7.cs | 309 +- ...ceSync_3889a458e94666d4784df30d8dd06d7d.cs | 387 +- ...ceSync_3d92447627afdfc419ceeb6b26251a87.cs | 239 +- ...ceSync_451e73a8eddd14b2daf891b5ee6c2308.cs | 309 +- ...ceSync_7455a9685d292b843b28465a4faffd05.cs | 169 +- ...ceSync_7eef8177eb732314fb850470094a70c9.cs | 169 +- ...ceSync_89bb435d615753b4f86caa89fd2a5d9d.cs | 309 +- ...ceSync_8d0ae98c8cb2746df8fa6b7fef5ee166.cs | 309 +- ...ceSync_91ccee2338d92624a8021fda1c91e47c.cs | 169 +- ...ceSync_9ea9c7ad1465c4769a67e80391f1158b.cs | 229 +- ...ceSync_a857fd6c221f7f04fa9ed500e317642a.cs | 454 +- ...ceSync_b222c7ad94d9f44beb6d7a92a631da26.cs | 133 +- ...ceSync_b7bb309cd508641d3887ec91696ac623.cs | 601 - ...eSync_be191a041747c4eaeafee21d0cdcc2f9.cs} | 79 +- ..._be191a041747c4eaeafee21d0cdcc2f9.cs.meta} | 2 +- ...ceSync_c76bd173fbfcfba44982ec0a19f9c897.cs | 309 +- ...ceSync_cd9bcc1feead9419fac0c5981ce85c23.cs | 883 +- ...ceSync_e74854605b68b435280bc0ac73fef6c1.cs | 309 +- ...ceSync_ec47cd7906b7749f4853524abf78e799.cs | 267 +- ...ceSync_f446f3c484ae048c4ba11ef7b8642420.cs | 309 +- .../coherence/baked/CommandsFor_Campfire.cs | 80 + ...4.cs.meta => CommandsFor_Campfire.cs.meta} | 2 +- Assets/coherence/baked/CommandsFor_Chair.cs | 32 + ...tion.cs.meta => CommandsFor_Chair.cs.meta} | 2 +- Assets/coherence/baked/CommandsFor_Chat.cs | 32 + .../coherence/baked/CommandsFor_Chat.cs.meta | 11 + .../coherence/baked/CommandsFor_ChopAction.cs | 32 + .../baked/CommandsFor_ChopAction.cs.meta | 11 + .../baked/CommandsFor_ChoppableTree.cs | 64 + .../baked/CommandsFor_ChoppableTree.cs.meta | 11 + Assets/coherence/baked/CommandsFor_Emotes.cs | 64 + .../baked/CommandsFor_Emotes.cs.meta | 11 + .../coherence/baked/CommandsFor_GrabAction.cs | 48 + .../baked/CommandsFor_GrabAction.cs.meta | 11 + .../baked/CommandsFor_KeeperRobot.cs | 80 + .../baked/CommandsFor_KeeperRobot.cs.meta | 11 + .../baked/CommandsFor_ObjectAnchor.cs | 32 + .../baked/CommandsFor_ObjectAnchor.cs.meta | 11 + .../baked/CommandsFor_PositionedObject.cs | 32 + .../CommandsFor_PositionedObject.cs.meta | 11 + .../coherence/baked/CommandsFor_SitAction.cs | 32 + .../baked/CommandsFor_SitAction.cs.meta | 11 + .../baked/CommandsFor_UnityEngine_Animator.cs | 32 + .../CommandsFor_UnityEngine_Animator.cs.meta | 11 + Assets/coherence/baked/Definition.cs | 965 -- Assets/coherence/baked/ImplBridge.cs | 121 - Assets/coherence/baked/ImplBridge.cs.meta | 11 - Assets/coherence/baked/ImplGlobalQuery.cs | 38 - .../coherence/baked/ImplGlobalQuery.cs.meta | 11 - Assets/coherence/baked/ImplLiveQuery.cs | 48 - Assets/coherence/baked/ImplLiveQuery.cs.meta | 11 - Assets/coherence/baked/ImplSync.cs | 150 - Assets/coherence/baked/ImplSync.cs.meta | 11 - Assets/coherence/baked/ImplTagQuery.cs | 45 - Assets/coherence/baked/ImplTagQuery.cs.meta | 11 - Assets/coherence/baked/Interop.meta | 8 - .../_b7bb309cd508641d3887ec91696ac623.cs | 107 - .../_b7bb309cd508641d3887ec91696ac623.cs.meta | 11 - .../coherence/baked/Interop/baked_commands.cs | 3154 ----- .../baked/Interop/baked_commands.cs.meta | 11 - .../baked/Interop/baked_components.cs | 10490 ---------------- .../baked/Interop/baked_components.cs.meta | 11 - .../baked_stubs.meta} | 2 +- .../baked_stubs/CommandsFor_Campfire_Stub.cs | 33 + .../CommandsFor_Campfire_Stub.cs.meta | 11 + .../baked_stubs/CommandsFor_Chair_Stub.cs | 21 + .../CommandsFor_Chair_Stub.cs.meta | 11 + .../baked_stubs/CommandsFor_Chat_Stub.cs | 21 + .../baked_stubs/CommandsFor_Chat_Stub.cs.meta | 11 + .../CommandsFor_ChopAction_Stub.cs | 21 + .../CommandsFor_ChopAction_Stub.cs.meta | 11 + .../CommandsFor_ChoppableTree_Stub.cs | 29 + .../CommandsFor_ChoppableTree_Stub.cs.meta | 11 + .../baked_stubs/CommandsFor_Emotes_Stub.cs | 29 + .../CommandsFor_Emotes_Stub.cs.meta | 11 + .../CommandsFor_GrabAction_Stub.cs | 25 + .../CommandsFor_GrabAction_Stub.cs.meta | 11 + .../CommandsFor_KeeperRobot_Stub.cs | 33 + .../CommandsFor_KeeperRobot_Stub.cs.meta | 11 + .../CommandsFor_ObjectAnchor_Stub.cs | 21 + .../CommandsFor_ObjectAnchor_Stub.cs.meta | 11 + .../CommandsFor_PositionedObject_Stub.cs | 21 + .../CommandsFor_PositionedObject_Stub.cs.meta | 11 + .../baked_stubs/CommandsFor_SitAction_Stub.cs | 21 + .../CommandsFor_SitAction_Stub.cs.meta | 11 + .../CommandsFor_UnityEngine_Animator_Stub.cs | 21 + ...mandsFor_UnityEngine_Animator_Stub.cs.meta | 11 + Assets/coherence/slugs.json | 1 - Packages/manifest.json | 2 +- Packages/packages-lock.json | 13 +- ProjectSettings/CoherenceSettings.asset | 547 +- ProjectSettings/ProjectSettings.asset | 2 +- 132 files changed, 5745 insertions(+), 20778 deletions(-) create mode 100644 2.2.rs.logs.txt create mode 100644 Assets/9-Sliced.prefab rename Assets/{coherence/slugs.json.meta => 9-Sliced.prefab.meta} (62%) rename Assets/Samples/coherence/{2.1.0.meta => 2.2.0-pre.3.meta} (77%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI.meta (77%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/ConnectDialogWorldView.cs (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/ConnectDialogWorldView.cs.meta (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/SpinnerAnimWorlds.anim (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/SpinnerAnimWorlds.anim.meta (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/SpinnerAnimWorlds.controller (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/SpinnerAnimWorlds.controller.meta (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/World Connection Dialog.prefab (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/World Connection Dialog.prefab.meta (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/WorldDialogUI.cs (99%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/WorldDialogUI.cs.meta (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/Worlds UI.unity (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/Worlds UI.unity.meta (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/WorldsInputFieldTextFontSetter.cs (100%) rename Assets/Samples/coherence/{2.1.0 => 2.2.0-pre.3}/Worlds UI/WorldsInputFieldTextFontSetter.cs.meta (100%) create mode 100644 Assets/coherence/CoherenceSyncConfigs/9-Sliced.asset rename Assets/coherence/{Temp.meta => CoherenceSyncConfigs/9-Sliced.asset.meta} (52%) create mode 100644 Assets/coherence/SimulatorSlugs.asset rename Assets/coherence/{Temp/link.xml.meta => SimulatorSlugs.asset.meta} (52%) delete mode 100644 Assets/coherence/Temp/link.xml delete mode 100644 Assets/coherence/baked/Archetypes.cs create mode 100644 Assets/coherence/baked/BakeInfo.cs rename Assets/coherence/baked/{Archetypes.cs.meta => BakeInfo.cs.meta} (83%) delete mode 100644 Assets/coherence/baked/CoherenceSync_b7bb309cd508641d3887ec91696ac623.cs rename Assets/coherence/baked/{CoherenceSync_e88772ebcad1c4705a70788841635af4.cs => CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9.cs} (57%) rename Assets/coherence/baked/{CoherenceSync_b7bb309cd508641d3887ec91696ac623.cs.meta => CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9.cs.meta} (83%) create mode 100644 Assets/coherence/baked/CommandsFor_Campfire.cs rename Assets/coherence/baked/{CoherenceSync_e88772ebcad1c4705a70788841635af4.cs.meta => CommandsFor_Campfire.cs.meta} (83%) create mode 100644 Assets/coherence/baked/CommandsFor_Chair.cs rename Assets/coherence/baked/{Definition.cs.meta => CommandsFor_Chair.cs.meta} (83%) create mode 100644 Assets/coherence/baked/CommandsFor_Chat.cs create mode 100644 Assets/coherence/baked/CommandsFor_Chat.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_ChopAction.cs create mode 100644 Assets/coherence/baked/CommandsFor_ChopAction.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_ChoppableTree.cs create mode 100644 Assets/coherence/baked/CommandsFor_ChoppableTree.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_Emotes.cs create mode 100644 Assets/coherence/baked/CommandsFor_Emotes.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_GrabAction.cs create mode 100644 Assets/coherence/baked/CommandsFor_GrabAction.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_KeeperRobot.cs create mode 100644 Assets/coherence/baked/CommandsFor_KeeperRobot.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_ObjectAnchor.cs create mode 100644 Assets/coherence/baked/CommandsFor_ObjectAnchor.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_PositionedObject.cs create mode 100644 Assets/coherence/baked/CommandsFor_PositionedObject.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_SitAction.cs create mode 100644 Assets/coherence/baked/CommandsFor_SitAction.cs.meta create mode 100644 Assets/coherence/baked/CommandsFor_UnityEngine_Animator.cs create mode 100644 Assets/coherence/baked/CommandsFor_UnityEngine_Animator.cs.meta delete mode 100644 Assets/coherence/baked/Definition.cs delete mode 100644 Assets/coherence/baked/ImplBridge.cs delete mode 100644 Assets/coherence/baked/ImplBridge.cs.meta delete mode 100644 Assets/coherence/baked/ImplGlobalQuery.cs delete mode 100644 Assets/coherence/baked/ImplGlobalQuery.cs.meta delete mode 100644 Assets/coherence/baked/ImplLiveQuery.cs delete mode 100644 Assets/coherence/baked/ImplLiveQuery.cs.meta delete mode 100644 Assets/coherence/baked/ImplSync.cs delete mode 100644 Assets/coherence/baked/ImplSync.cs.meta delete mode 100644 Assets/coherence/baked/ImplTagQuery.cs delete mode 100644 Assets/coherence/baked/ImplTagQuery.cs.meta delete mode 100644 Assets/coherence/baked/Interop.meta delete mode 100644 Assets/coherence/baked/Interop/_b7bb309cd508641d3887ec91696ac623.cs delete mode 100644 Assets/coherence/baked/Interop/_b7bb309cd508641d3887ec91696ac623.cs.meta delete mode 100644 Assets/coherence/baked/Interop/baked_commands.cs delete mode 100644 Assets/coherence/baked/Interop/baked_commands.cs.meta delete mode 100644 Assets/coherence/baked/Interop/baked_components.cs delete mode 100644 Assets/coherence/baked/Interop/baked_components.cs.meta rename Assets/{StreamingAssets.meta => coherence/baked_stubs.meta} (77%) create mode 100644 Assets/coherence/baked_stubs/CommandsFor_Campfire_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_Campfire_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_Chair_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_Chair_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_Chat_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_Chat_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_ChopAction_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_ChopAction_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_ChoppableTree_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_ChoppableTree_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_Emotes_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_Emotes_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_GrabAction_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_GrabAction_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_KeeperRobot_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_KeeperRobot_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_ObjectAnchor_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_ObjectAnchor_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_PositionedObject_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_PositionedObject_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_SitAction_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_SitAction_Stub.cs.meta create mode 100644 Assets/coherence/baked_stubs/CommandsFor_UnityEngine_Animator_Stub.cs create mode 100644 Assets/coherence/baked_stubs/CommandsFor_UnityEngine_Animator_Stub.cs.meta delete mode 100644 Assets/coherence/slugs.json diff --git a/2.2.rs.logs.txt b/2.2.rs.logs.txt new file mode 100644 index 0000000..22a7351 --- /dev/null +++ b/2.2.rs.logs.txt @@ -0,0 +1,194 @@ +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-06-26T16:29:09.907+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T19:34:55.587+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T20:41:04.231+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T21:07:36.398+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":3,"sampledFrequency":165.01195,"expectedFrequency":60,"newFrequency":48,"throttlingStep":1,"logId":12,"time":"2026-07-14T21:08:45.724+03:00","message":"connection throttled"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":3,"sampledFrequency":12.5421,"expectedFrequency":48,"newFrequency":60,"throttlingStep":0,"logId":12,"time":"2026-07-14T21:08:50.88+03:00","message":"connection throttled"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":4,"sampledFrequency":66.31726,"expectedFrequency":60,"newFrequency":48,"throttlingStep":1,"logId":12,"time":"2026-07-14T21:08:54+03:00","message":"connection throttled"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":4,"sampledFrequency":30.206232,"expectedFrequency":48,"newFrequency":60,"throttlingStep":0,"logId":12,"time":"2026-07-14T21:08:57.116+03:00","message":"connection throttled"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":3,"sampledFrequency":74.27611,"expectedFrequency":60,"newFrequency":48,"throttlingStep":1,"logId":12,"time":"2026-07-14T21:08:57.732+03:00","message":"connection throttled"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":3,"sampledFrequency":47.608143,"expectedFrequency":48,"newFrequency":60,"throttlingStep":0,"logId":12,"time":"2026-07-14T21:09:00.724+03:00","message":"connection throttled"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T21:11:46.098+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID f82815781cf52082105f0efcae641befc7123b0e expected 7c473a4d81b4dc8c150889c8bb8be96f97723afb","logId":122,"time":"2026-07-14T21:11:54.191+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID f82815781cf52082105f0efcae641befc7123b0e expected 7c473a4d81b4dc8c150889c8bb8be96f97723afb","logId":122,"time":"2026-07-14T21:12:00.48+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID f82815781cf52082105f0efcae641befc7123b0e expected 7c473a4d81b4dc8c150889c8bb8be96f97723afb","logId":122,"time":"2026-07-14T21:12:03.123+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID f82815781cf52082105f0efcae641befc7123b0e expected 7c473a4d81b4dc8c150889c8bb8be96f97723afb","logId":122,"time":"2026-07-14T21:12:19.224+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID f82815781cf52082105f0efcae641befc7123b0e expected 7c473a4d81b4dc8c150889c8bb8be96f97723afb","logId":122,"time":"2026-07-14T21:12:25.446+03:00","message":"run error"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":8,"sampledFrequency":68.04981,"expectedFrequency":60,"newFrequency":48,"throttlingStep":1,"logId":12,"time":"2026-07-14T21:13:53.59+03:00","message":"connection throttled"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":8,"sampledFrequency":47.607353,"expectedFrequency":48,"newFrequency":60,"throttlingStep":0,"logId":12,"time":"2026-07-14T21:13:56.59+03:00","message":"connection throttled"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T21:17:05.739+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"error","logAlert":1,"error":"could not run with log : network init: WEB server setup: web muxer setup error: error when starting webrtc udp port : listen udp 127.0.0.1:32003: bind: address already in use ","exit_code":10,"logId":8,"time":"2026-07-14T21:17:05.741+03:00","message":"error with exit code"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T21:17:15.114+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","project-id":"local","logger":"briskMgr","logger":"briskServerConn","cid":3,"sampledFrequency":84.55007,"expectedFrequency":60,"newFrequency":48,"throttlingStep":1,"logId":12,"time":"2026-07-14T21:37:48.007+03:00","message":"connection throttled"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.153+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.154+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.154+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.154+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.154+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.154+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.175+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.463+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.464+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.465+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.465+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.465+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.465+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.465+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.506+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.506+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.561+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.561+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.561+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.608+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.608+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.608+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.608+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.608+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.609+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.61+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.64+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.64+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.64+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.642+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.642+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.642+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.642+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.642+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.706+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.706+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.708+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.708+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.708+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.708+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.715+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.715+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.715+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.717+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.717+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.717+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.719+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.719+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.719+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.722+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.724+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.724+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.724+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.724+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.725+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.725+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.725+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.725+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.726+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.726+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.726+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.726+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.728+03:00","message":"message receiver not found"} +{"level":"warn","project-id":"local","logger":"netMgr","receiver":3,"messageType":"entitymanager.AuthorityRequestRejectionMessage","logId":46,"time":"2026-07-14T21:37:49.728+03:00","message":"message receiver not found"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID f03a91f57911909e3fe43b8f59584c86691ff2a2 expected 7c473a4d81b4dc8c150889c8bb8be96f97723afb","logId":122,"time":"2026-07-14T21:39:00.528+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID f03a91f57911909e3fe43b8f59584c86691ff2a2 expected 7c473a4d81b4dc8c150889c8bb8be96f97723afb","logId":122,"time":"2026-07-14T21:39:05.118+03:00","message":"run error"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T21:54:04.549+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T22:06:17.081+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"panic","error":"web signalling start: listen tcp 127.0.0.1:32002: bind: address already in use","time":"2026-07-14T22:06:17.083+03:00","message":"failed to start web signalling"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T22:06:28.068+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} diff --git a/Assets/9-Sliced.prefab b/Assets/9-Sliced.prefab new file mode 100644 index 0000000..c7014b5 --- /dev/null +++ b/Assets/9-Sliced.prefab @@ -0,0 +1,238 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &792170185805854058 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3618301581890830759} + - component: {fileID: 5045304821950319630} + - component: {fileID: 7762912490808243201} + m_Layer: 0 + m_Name: 9-Sliced + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3618301581890830759 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 792170185805854058} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &5045304821950319630 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 792170185805854058} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: -5177388603050735206, guid: 8884154dfe85442a3a3578be807dbcdf, + type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 2 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!114 &7762912490808243201 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 792170185805854058} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ff62c046a053f416a8dc48ad6483a25e, type: 3} + m_Name: + m_EditorClassIdentifier: + OnAuthorityRequest: + m_PersistentCalls: + m_Calls: [] + OnNetworkedInstantiation: + m_PersistentCalls: + m_Calls: [] + OnBeforeNetworkedInstantiation: + m_PersistentCalls: + m_Calls: [] + OnNetworkedDestruction: + m_PersistentCalls: + m_Calls: [] + OnStateRemote: + m_PersistentCalls: + m_Calls: [] + OnInputRemote: + m_PersistentCalls: + m_Calls: [] + OnStateAuthority: + m_PersistentCalls: + m_Calls: [] + OnInputAuthority: + m_PersistentCalls: + m_Calls: [] + OnAuthorityRequestRejected: + m_PersistentCalls: + m_Calls: [] + OnAuthTransferComplete: + m_PersistentCalls: + m_Calls: [] + OnNetworkedParentChanged: + m_PersistentCalls: + m_Calls: [] + OnInputSimulatorConnected: + m_PersistentCalls: + m_Calls: [] + OnRigidbody2DPositionUpdate: + m_PersistentCalls: + m_Calls: [] + OnRigidbody3DPositionUpdate: + m_PersistentCalls: + m_Calls: [] + OnRigidbody2DRotationUpdate: + m_PersistentCalls: + m_Calls: [] + OnRigidbody3DRotationUpdate: + m_PersistentCalls: + m_Calls: [] + coherenceSyncConfig: {fileID: 11400000, guid: 66cbae6d1eebc4ed19aafb3a59b597c7, + type: 2} + archetype: + lodLevels: + - distance: 0 + boundComponents: + - component: {fileID: 3618301581890830759} + lodStepsActive: 1 + - component: {fileID: 5045304821950319630} + lodStepsActive: 1 + GeneratesArchetypeDefinition: 0 + interpolationLocation: 1 + RigidbodyUpdateMode: 0 + bakedScriptType: Coherence.Generated.CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9, + Assembly-CSharp + isGlobal: 0 + synchronizeParent: 1 + approveAuthorityTransferRequests: 1 + simulationType: 0 + authorityTransferConfig: -1 + orphanedBehavior: 0 + lifetimeType: 0 + uniquenessType: 0 + replacementStrategy: 0 + unsyncedNetworkEntityPriority: 0 + preserveChildren: 0 + bindings: + - rid: 464123148303597609 + scenePrefabInstanceUUID: + coherenceUUID: + assetVersion: + coherenceTag: + componentActions: [] + floatingOriginMode: 0 + floatingOriginParentedMode: 1 + synchronizationChannel: Default + references: + version: 2 + RefIds: + - rid: -2 + type: {class: , ns: , asm: } + - rid: 464123148303597609 + type: {class: PositionBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, + asm: Coherence.Toolkit} + data: + descriptor: + rid: 464123148303597610 + routing: 0 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: 9ba2b7305f854aadbbff8f6796ee38b5 + archetypeData: + type: 7 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: + - type: 7 + bits: 32 + precision: 0.001 + floatCompression: 0 + unityComponent: {fileID: 3618301581890830759} + coherenceSync: {fileID: 7762912490808243201} + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + type: 2} + - rid: 464123148303597610 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: position + monoAssemblyType: UnityEngine.Vector3, UnityEngine + required: 1 + enforcesLODingWhenFieldsOverriden: 1 + valueSyncCallbackName: + memberType: 64 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: UnityEngine.Transform, UnityEngine.CoreModule, Version=0.0.0.0, + Culture=neutral, PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.TransformBindings.PositionBinding, + Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 diff --git a/Assets/coherence/slugs.json.meta b/Assets/9-Sliced.prefab.meta similarity index 62% rename from Assets/coherence/slugs.json.meta rename to Assets/9-Sliced.prefab.meta index 2f26fda..ae5fac2 100644 --- a/Assets/coherence/slugs.json.meta +++ b/Assets/9-Sliced.prefab.meta @@ -1,6 +1,6 @@ fileFormatVersion: 2 -guid: c04c929ee89d0456481b92f5c0f4a7e9 -TextScriptImporter: +guid: be191a041747c4eaeafee21d0cdcc2f9 +PrefabImporter: externalObjects: {} userData: assetBundleName: diff --git a/Assets/Art/Effects/SelectionHighlight/HighlightOutline.mat b/Assets/Art/Effects/SelectionHighlight/HighlightOutline.mat index 2c4452a..67dac42 100644 --- a/Assets/Art/Effects/SelectionHighlight/HighlightOutline.mat +++ b/Assets/Art/Effects/SelectionHighlight/HighlightOutline.mat @@ -8,7 +8,7 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: HighlightOutline - m_Shader: {fileID: -6465566751694194690, guid: abcf3ae5e7fa4422da83e0d051f08dea, + m_Shader: {fileID: -6465566751694194690, guid: da929e4a5ec894e5da78762c53a465d3, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 @@ -65,7 +65,7 @@ Material: - _Strength_t: 1 - _Strength_w: 1 - _Surface: 0 - - _Thickness: 0.4 + - _Thickness: 0.8 - _World_space_Variation: 3 - _ZTest: 8 - _ZWrite: 1 diff --git a/Assets/Art/UI/TextMeshPro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset b/Assets/Art/UI/TextMeshPro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset index 4d263ab..ac0fcd0 100644 --- a/Assets/Art/UI/TextMeshPro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset +++ b/Assets/Art/UI/TextMeshPro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset @@ -9,6 +9,8 @@ Material: m_PrefabAsset: {fileID: 0} m_Name: LiberationSans SDF Material m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 m_ValidKeywords: [] m_InvalidKeywords: [] m_LightmapFlags: 1 @@ -17,6 +19,7 @@ Material: m_CustomRenderQueue: -1 stringTagMap: {} disabledShaderPasses: [] + m_LockedProperties: m_SavedProperties: serializedVersion: 3 m_TexEnvs: @@ -178,6 +181,7 @@ MonoBehaviour: m_StyleName: Regular m_PointSize: 86 m_Scale: 1 + m_UnitsPerEM: 0 m_LineHeight: 98.8916 m_AscentLine: 77.853516 m_CapLine: 59 @@ -327,7 +331,8 @@ Texture2D: m_MipCount: 1 m_IsReadable: 1 m_IsPreProcessed: 0 - m_IgnoreMasterTextureLimit: 0 + m_IgnoreMipmapLimit: 0 + m_MipmapLimitGroupName: m_StreamingMipmaps: 0 m_StreamingMipmapsPriority: 0 m_VTOnly: 0 diff --git a/Assets/Prefabs/Characters/KeeperRobot.prefab b/Assets/Prefabs/Characters/KeeperRobot.prefab index 5fda9ed..1625c8a 100644 --- a/Assets/Prefabs/Characters/KeeperRobot.prefab +++ b/Assets/Prefabs/Characters/KeeperRobot.prefab @@ -26,6 +26,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 118496468477875266} + serializedVersion: 2 m_LocalRotation: {x: -0, y: 0.70710665, z: -0, w: 0.70710695} m_LocalPosition: {x: 0, y: 0.39899993, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -33,7 +34,6 @@ Transform: m_Children: - {fileID: 2659856684815926954} m_Father: {fileID: 6342975798731359634} - m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &8984313321826824917 MonoBehaviour: @@ -59,9 +59,17 @@ BoxCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 118496468477875266} m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 m_IsTrigger: 1 + m_ProvidesContacts: 0 m_Enabled: 1 - serializedVersion: 2 + serializedVersion: 3 m_Size: {x: 2, y: 2, z: 2} m_Center: {x: 0, y: -0.42, z: 0} --- !u!114 &8551261703447512967 @@ -102,13 +110,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 258220021027912687} + serializedVersion: 2 m_LocalRotation: {x: 0.000000029802322, y: 0.000000029802322, z: -0.7071067, w: 0.70710695} m_LocalPosition: {x: 1.39, y: -0.65, z: -0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6342975798731359634} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90} --- !u!1 &5133252935554715310 GameObject: @@ -136,6 +144,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5133252935554715310} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 5, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -144,7 +153,6 @@ Transform: - {fileID: 6342975798731359634} - {fileID: 7901216971521108104} m_Father: {fileID: 0} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &5450002341135503407 MonoBehaviour: @@ -301,6 +309,7 @@ MonoBehaviour: bakedScriptType: Coherence.Generated.CoherenceSync_a857fd6c221f7f04fa9ed500e317642a, Assembly-CSharp isGlobal: 0 + synchronizeParent: 1 approveAuthorityTransferRequests: 1 simulationType: 2 authorityTransferConfig: 2 @@ -312,15 +321,15 @@ MonoBehaviour: preserveChildren: 0 bindings: - rid: 8975625062529892391 - - rid: 8975625062529892393 - - rid: 8975625062529892395 - - rid: 8975625062529892397 - rid: 8975625062529892401 - rid: 8975625062529892404 - rid: 8975625062529892406 - - rid: 8975625202164826113 - rid: 3041628591939387454 - rid: 3041628591939387480 + - rid: 464123148303597568 + - rid: 464123148303597569 + - rid: 464123148303597570 + - rid: 464123148303597571 scenePrefabInstanceUUID: coherenceUUID: keeper-robot assetVersion: 20 @@ -336,61 +345,56 @@ MonoBehaviour: RefIds: - rid: -2 type: {class: , ns: , asm: } - - rid: 3041628591939387454 - type: {class: BoolBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} + - rid: 464123148303597568 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 3041628591939387455 - routing: 0 + rid: 464123148303597572 + routing: 1 syncMode: 0 isPredicted: 0 predictionMode: 0 - guid: 0174ef8a52ab48e6aee788bea243f7f5 + guid: ab045865e78d4e8c9562d53fcea0a199 archetypeData: - type: 3 + type: 0 minRange: 0 maxRange: 0 sampleRate: 20 floatCompression: 0 - fields: - - type: 3 - bits: 1 - precision: 0 - floatCompression: 0 - unityComponent: {fileID: 8551261703447512967} - coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 3041628591939387455 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + fields: [] + unityComponent: {fileID: 5450002341135503407} + coherenceSync: {fileID: -3359619185253440237} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597569 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: - name: isBusy - monoAssemblyType: System.Boolean, mscorlib - required: 1 - enforcesLODingWhenFieldsOverriden: 1 - valueSyncCallbackName: - memberType: 4 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: Chair, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.ValueBindings.BoolBinding, - Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] - - rid: 3041628591939387480 + descriptor: + rid: 464123148303597573 + routing: 1 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: efd5ed06a339416b8819ea9524e35db8 + archetypeData: + type: 0 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: [] + unityComponent: {fileID: 5450002341135503407} + coherenceSync: {fileID: -3359619185253440237} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597570 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 3041628591939387481 - routing: 0 + rid: 464123148303597574 + routing: 1 syncMode: 0 isPredicted: 0 predictionMode: 0 - guid: 7f3e0b9e3ab247f68ebb0067b5b4b6c4 + guid: eee23e58897b48f7ba844e115ca6978e archetypeData: type: 0 minRange: 0 @@ -398,22 +402,41 @@ MonoBehaviour: sampleRate: 20 floatCompression: 0 fields: [] - unityComponent: {fileID: 8551261703447512967} - coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 3041628591939387481 + unityComponent: {fileID: 5450002341135503407} + coherenceSync: {fileID: -3359619185253440237} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597571 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + descriptor: + rid: 464123148303597575 + routing: 1 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: d982f989b8ee4d79b39706515c828726 + archetypeData: + type: 0 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: [] + unityComponent: {fileID: 5450002341135503407} + coherenceSync: {fileID: -3359619185253440237} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597572 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: - name: ChangeState + name: PlayHumSound monoAssemblyType: required: 1 enforcesLODingWhenFieldsOverriden: 0 valueSyncCallbackName: memberType: 8 - parameterAssemblyTypes: - - System.Boolean, mscorlib + parameterAssemblyTypes: [] ownerType: - assemblyQualifiedName: Chair, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + assemblyQualifiedName: KeeperRobot, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null defaultSyncMode: 0 CustomData: @@ -423,104 +446,134 @@ MonoBehaviour: Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] - - rid: 8975625062529892391 - type: {class: PositionBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, - asm: Coherence.Toolkit} + methodCompatible: 1 + defaultRouting: 1 + - rid: 464123148303597573 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: - descriptor: - rid: 8975625062529892392 - routing: 0 - syncMode: 0 - isPredicted: 0 - predictionMode: 0 - guid: aa3341ec45d847e3a6334d365bb6e8f6 - archetypeData: - type: 7 - minRange: 0 - maxRange: 0 - sampleRate: 20 - floatCompression: 0 - fields: - - type: 7 - bits: 32 - precision: 0.001 - floatCompression: 0 - unityComponent: {fileID: 844632473942023379} - coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, - type: 2} - - rid: 8975625062529892392 + name: PlayVoiceSound + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: KeeperRobot, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 464123148303597574 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: - name: position - monoAssemblyType: UnityEngine.Vector3, UnityEngine + name: PlayConjure + monoAssemblyType: required: 1 - enforcesLODingWhenFieldsOverriden: 1 + enforcesLODingWhenFieldsOverriden: 0 valueSyncCallbackName: - memberType: 64 + memberType: 8 parameterAssemblyTypes: [] ownerType: - assemblyQualifiedName: UnityEngine.Transform, UnityEngine.CoreModule, Version=0.0.0.0, - Culture=neutral, PublicKeyToken=null + assemblyQualifiedName: KeeperRobot, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null defaultSyncMode: 0 CustomData: rid: -2 bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.TransformBindings.PositionBinding, - Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] - - rid: 8975625062529892393 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + methodCompatible: 1 + defaultRouting: 1 + - rid: 464123148303597575 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayAppear + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: KeeperRobot, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 3041628591939387454 + type: {class: BoolBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975625062529892394 - routing: 1 + rid: 3041628591939387455 + routing: 0 syncMode: 0 isPredicted: 0 predictionMode: 0 - guid: a08cbf1b7c0b489e9d34a142c88514c8 + guid: 0174ef8a52ab48e6aee788bea243f7f5 archetypeData: - type: 0 + type: 3 minRange: 0 maxRange: 0 sampleRate: 20 floatCompression: 0 - fields: [] - unityComponent: {fileID: 5450002341135503407} + fields: + - type: 3 + bits: 1 + precision: 0 + floatCompression: 0 + unityComponent: {fileID: 8551261703447512967} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625062529892394 + _interpolationSettings: {fileID: 0} + - rid: 3041628591939387455 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: - name: PlayVoiceSound - monoAssemblyType: + name: isBusy + monoAssemblyType: System.Boolean, mscorlib required: 1 - enforcesLODingWhenFieldsOverriden: 0 + enforcesLODingWhenFieldsOverriden: 1 valueSyncCallbackName: - memberType: 8 + memberType: 4 parameterAssemblyTypes: [] ownerType: - assemblyQualifiedName: KeeperRobot, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + assemblyQualifiedName: Chair, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null defaultSyncMode: 0 CustomData: rid: -2 bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + assemblyQualifiedName: Coherence.Toolkit.Bindings.ValueBindings.BoolBinding, + Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] - - rid: 8975625062529892395 + methodCompatible: 0 + defaultRouting: 0 + - rid: 3041628591939387480 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975625062529892396 - routing: 1 + rid: 3041628591939387481 + routing: 0 syncMode: 0 isPredicted: 0 predictionMode: 0 - guid: e584959f421448c0b118bf28bd4867b2 + guid: 7f3e0b9e3ab247f68ebb0067b5b4b6c4 archetypeData: type: 0 minRange: 0 @@ -528,21 +581,22 @@ MonoBehaviour: sampleRate: 20 floatCompression: 0 fields: [] - unityComponent: {fileID: 5450002341135503407} + unityComponent: {fileID: 8551261703447512967} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625062529892396 + _interpolationSettings: {fileID: 0} + - rid: 3041628591939387481 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: - name: PlayConjure + name: ChangeState monoAssemblyType: required: 1 enforcesLODingWhenFieldsOverriden: 0 valueSyncCallbackName: memberType: 8 - parameterAssemblyTypes: [] + parameterAssemblyTypes: + - System.Boolean, mscorlib ownerType: - assemblyQualifiedName: KeeperRobot, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + assemblyQualifiedName: Chair, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null defaultSyncMode: 0 CustomData: @@ -552,47 +606,57 @@ MonoBehaviour: Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] - - rid: 8975625062529892397 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + methodCompatible: 0 + defaultRouting: 0 + - rid: 8975625062529892391 + type: {class: PositionBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, + asm: Coherence.Toolkit} data: descriptor: - rid: 8975625062529892398 - routing: 1 + rid: 8975625062529892392 + routing: 0 syncMode: 0 isPredicted: 0 predictionMode: 0 - guid: 0f10acf8439d449385dbd33450d1f0fb + guid: aa3341ec45d847e3a6334d365bb6e8f6 archetypeData: - type: 0 + type: 7 minRange: 0 maxRange: 0 sampleRate: 20 floatCompression: 0 - fields: [] - unityComponent: {fileID: 5450002341135503407} + fields: + - type: 7 + bits: 32 + precision: 0.001 + floatCompression: 0 + unityComponent: {fileID: 844632473942023379} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625062529892398 + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + type: 2} + - rid: 8975625062529892392 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: - name: PlayAppear - monoAssemblyType: + name: position + monoAssemblyType: UnityEngine.Vector3, UnityEngine required: 1 - enforcesLODingWhenFieldsOverriden: 0 + enforcesLODingWhenFieldsOverriden: 1 valueSyncCallbackName: - memberType: 8 + memberType: 64 parameterAssemblyTypes: [] ownerType: - assemblyQualifiedName: KeeperRobot, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null + assemblyQualifiedName: UnityEngine.Transform, UnityEngine.CoreModule, Version=0.0.0.0, + Culture=neutral, PublicKeyToken=null defaultSyncMode: 0 CustomData: rid: -2 bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + assemblyQualifiedName: Coherence.Toolkit.Bindings.TransformBindings.PositionBinding, + Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 8975625062529892401 type: {class: RotationBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -617,7 +681,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 844632473942023379} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 8975625062529892402 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -640,6 +704,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 8975625062529892403 type: {class: DisableBehaviourComponentAction, ns: Coherence.Toolkit.ComponentActions, asm: Coherence.Toolkit} @@ -669,7 +735,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 4667129514690375174} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 8975625062529892405 type: {class: AnimatorDescriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -691,6 +757,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 parameterHash: -1573153294 - rid: 8975625062529892406 type: {class: BoolAnimatorParameterBinding, ns: Coherence.Toolkit.Bindings, @@ -716,7 +784,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 4667129514690375174} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 8975625062529892407 type: {class: AnimatorDescriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -738,53 +806,14 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 parameterHash: 2126089053 - rid: 8975625202164826112 type: {class: DisableBehaviourComponentAction, ns: Coherence.Toolkit.ComponentActions, asm: Coherence.Toolkit} data: component: {fileID: 3148885012630880913} - - rid: 8975625202164826113 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - descriptor: - rid: 8975625202164826114 - routing: 1 - syncMode: 0 - isPredicted: 0 - predictionMode: 0 - guid: e86b8c2ff539476e96c5792baaad07d6 - archetypeData: - type: 0 - minRange: 0 - maxRange: 0 - sampleRate: 20 - floatCompression: 0 - fields: [] - unityComponent: {fileID: 5450002341135503407} - coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625202164826114 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayHumSound - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: KeeperRobot, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] --- !u!195 &3148885012630880913 NavMeshAgent: m_ObjectHideFlags: 0 @@ -830,13 +859,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5609846739691108691} + serializedVersion: 2 m_LocalRotation: {x: -0, y: 0.9253529, z: -0, w: 0.37910697} m_LocalPosition: {x: 0.441, y: 0.843, z: -0.582} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 9173246137270503472} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 135.443, z: 0} --- !u!1 &8481490009137765611 GameObject: @@ -863,13 +892,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8481490009137765611} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 844632473942023379} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!82 &8616105651080933863 AudioSource: @@ -985,6 +1014,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6342975798731359634} m_Modifications: - target: {fileID: -8679921383154817045, guid: 273da6808809bed4687514875c3096d7, @@ -1058,6 +1088,9 @@ PrefabInstance: value: objectReference: {fileID: 2100000, guid: b292368e01bf7054c9fb2f38d2fea452, type: 2} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 273da6808809bed4687514875c3096d7, type: 3} --- !u!4 &716587355426130216 stripped Transform: @@ -1088,6 +1121,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6342975798731359634} m_Modifications: - target: {fileID: -8679921383154817045, guid: 29124e5471b90604c984f1f609d660ff, @@ -1161,6 +1195,9 @@ PrefabInstance: value: objectReference: {fileID: 2100000, guid: 34293d0076f087841b212c3b1c35382a, type: 2} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 29124e5471b90604c984f1f609d660ff, type: 3} --- !u!33 &1004110871619724765 stripped MeshFilter: @@ -1191,6 +1228,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 844632473942023379} m_Modifications: - target: {fileID: -8679921383154817045, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, @@ -1279,6 +1317,37 @@ PrefabInstance: value: objectReference: {fileID: 2100000, guid: 34293d0076f087841b212c3b1c35382a, type: 2} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: + - targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, + type: 3} + insertIndex: -1 + addedObject: {fileID: 4905534418964468302} + - targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, + type: 3} + insertIndex: -1 + addedObject: {fileID: 716587355426130216} + - targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, + type: 3} + insertIndex: -1 + addedObject: {fileID: 7192210636250522378} + - targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, + type: 3} + insertIndex: -1 + addedObject: {fileID: 8693188804916679657} + - targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, + type: 3} + insertIndex: -1 + addedObject: {fileID: 9173246137270503472} + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, + type: 3} + insertIndex: -1 + addedObject: {fileID: 2961422939109578538} + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, + type: 3} + insertIndex: -1 + addedObject: {fileID: 4667129514690375174} m_SourcePrefab: {fileID: 100100000, guid: fc9bfcf4fd832af4eb9f6f3a8cfb9303, type: 3} --- !u!4 &560288793512968899 stripped Transform: @@ -1318,9 +1387,17 @@ BoxCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6002478400419667752} m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 m_IsTrigger: 0 + m_ProvidesContacts: 0 m_Enabled: 1 - serializedVersion: 2 + serializedVersion: 3 m_Size: {x: 2, y: 2, z: 2} m_Center: {x: 0, y: 0, z: 0} --- !u!95 &4667129514690375174 @@ -1355,6 +1432,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6342975798731359634} m_Modifications: - target: {fileID: -8679921383154817045, guid: 29124e5471b90604c984f1f609d660ff, @@ -1438,6 +1516,9 @@ PrefabInstance: value: objectReference: {fileID: 2100000, guid: 34293d0076f087841b212c3b1c35382a, type: 2} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 29124e5471b90604c984f1f609d660ff, type: 3} --- !u!23 &1059530868633019359 stripped MeshRenderer: diff --git a/Assets/Prefabs/Characters/Player.prefab b/Assets/Prefabs/Characters/Player.prefab index b1d161d..8f1f776 100644 --- a/Assets/Prefabs/Characters/Player.prefab +++ b/Assets/Prefabs/Characters/Player.prefab @@ -35,7 +35,6 @@ RectTransform: - {fileID: 1931320573891411202} - {fileID: 7635730674442425912} m_Father: {fileID: 6479936979813500109} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} @@ -127,13 +126,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 329807123352759108} + serializedVersion: 2 m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1169785079388365061} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!137 &3882252432098779467 SkinnedMeshRenderer: @@ -215,13 +214,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 885742216989833092} + serializedVersion: 2 m_LocalRotation: {x: -0.19689642, y: -0, z: -0, w: 0.9804243} m_LocalPosition: {x: 0.032999992, y: 0.13210642, z: 0.61982346} m_LocalScale: {x: 1.1181808, y: 1.1181808, z: 1.1181809} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1688241323898935642} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -115.817, y: 90, z: 0} --- !u!33 &4612542048970578722 MeshFilter: @@ -297,13 +296,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 991241747536804555} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6621220932995602478} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &2341686121031281792 MonoBehaviour: @@ -356,13 +355,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1375940075901072894} + serializedVersion: 2 m_LocalRotation: {x: 0.032620966, y: 0.99302876, z: -0.09376545, w: 0.06354481} m_LocalPosition: {x: -0.14, y: -0.078, z: 0.404} m_LocalScale: {x: 1.1326, y: 1.1326, z: 1.1326} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8826199108323715944} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 10.974, y: 172.974, z: 3.087} --- !u!33 &3538355361666019067 MeshFilter: @@ -439,13 +438,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1610678711886831590} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0, y: -0.046000004, z: -0.101} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6301120708123736386} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &6577031152136026984 ParticleSystem: @@ -665,6 +664,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -694,6 +694,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -1015,6 +1016,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -1811,6 +1813,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -1840,6 +1843,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -4060,6 +4064,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -4089,6 +4094,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -4466,6 +4472,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -4508,6 +4515,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -4537,6 +4545,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -4624,6 +4633,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -4653,6 +4663,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -4691,6 +4702,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -4720,6 +4732,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -4973,6 +4986,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -5002,6 +5016,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -5277,13 +5292,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -5328,7 +5345,6 @@ RectTransform: - {fileID: 792676273306308861} - {fileID: 2425316080372924596} m_Father: {fileID: 6069734519752221224} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} @@ -5438,13 +5454,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2009464993433001255} + serializedVersion: 2 m_LocalRotation: {x: 0.02090645, y: -0.10598585, z: 0.008755983, w: -0.9941093} m_LocalPosition: {x: -0.014, y: -0.052999847, z: 0.076} m_LocalScale: {x: 1.1326, y: 1.1326, z: 1.1326} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3529489199186566274} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -2.276, y: 372.196, z: -1.252} --- !u!33 &4896712425797266128 MeshFilter: @@ -5521,6 +5537,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2165935640631037007} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -5528,7 +5545,6 @@ Transform: m_Children: - {fileID: 7153170325645033625} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &2749668658660389249 MeshFilter: @@ -5605,6 +5621,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2267540570045909827} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -5612,7 +5629,6 @@ Transform: m_Children: - {fileID: 8975101884698594441} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 16 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &1887049792566114455 MeshFilter: @@ -5687,13 +5703,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2536395887463310663} + serializedVersion: 2 m_LocalRotation: {x: -0.4028114, y: 0.57827485, z: 0.3784497, w: 0.60009754} m_LocalPosition: {x: -0.042, y: 0.902, z: -0.027} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8746357563404958246} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: -67.095, y: 89.016, z: -1.716} --- !u!1 &2857891268289667284 GameObject: @@ -5720,13 +5736,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2857891268289667284} + serializedVersion: 2 m_LocalRotation: {x: -0.000000089406946, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7650078148949313813} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &3758167534876514758 MeshFilter: @@ -5811,7 +5827,6 @@ RectTransform: m_Children: - {fileID: 6069734519752221224} m_Father: {fileID: 6621220932995602478} - m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -5837,6 +5852,7 @@ Canvas: m_SortingBucketNormalizedSize: 0 m_VertexColorAlwaysGammaSpace: 1 m_AdditionalShaderChannelsFlag: 25 + m_UpdateRectTransformForStandalone: 0 m_SortingLayerID: 0 m_SortingOrder: 0 m_TargetDisplay: 0 @@ -5900,13 +5916,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3077538763942719956} + serializedVersion: 2 m_LocalRotation: {x: 0.032620966, y: 0.99302876, z: -0.09376545, w: 0.06354481} m_LocalPosition: {x: -0.14, y: -0.078, z: 0.404} m_LocalScale: {x: 1.1326, y: 1.1326, z: 1.1326} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8476878202410904504} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 10.974, y: 172.974, z: 3.087} --- !u!33 &8407998204637389126 MeshFilter: @@ -5983,6 +5999,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3637340717930495686} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -5990,7 +6007,6 @@ Transform: m_Children: - {fileID: 1301117949858024069} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &152592642718612372 MeshFilter: @@ -6067,13 +6083,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3833954380482548935} + serializedVersion: 2 m_LocalRotation: {x: -0.000000014901159, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.16460006, y: 0, z: -0.00000011920929} m_LocalScale: {x: 0.11859751, y: 0.11859753, z: 0.07618581} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 5700050028550231762} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &6045933509865579604 MeshFilter: @@ -6150,6 +6166,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3845005624040221584} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -6157,7 +6174,6 @@ Transform: m_Children: - {fileID: 8657116382605578814} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &8389966099262098069 MeshFilter: @@ -6234,13 +6250,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3868525409738935016} + serializedVersion: 2 m_LocalRotation: {x: -0.19689642, y: -0, z: -0, w: 0.9804243} m_LocalPosition: {x: 0.032999992, y: 0.13210642, z: 0.61982346} m_LocalScale: {x: 1.1181808, y: 1.1181808, z: 1.1181809} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 2840726289199332020} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -115.817, y: 90, z: 0} --- !u!33 &4112897167939442608 MeshFilter: @@ -6316,13 +6332,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3900501153428463511} + serializedVersion: 2 m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1169785079388365061} - m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!137 &7903381092673038404 SkinnedMeshRenderer: @@ -6404,13 +6420,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3927006739014013917} + serializedVersion: 2 m_LocalRotation: {x: -0.19689643, y: -0, z: -0, w: 0.98042434} m_LocalPosition: {x: 0.033, y: -0.048, z: 0.673} m_LocalScale: {x: 1.1181808, y: 1.1181808, z: 1.1181809} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3285745237158959132} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -115.817, y: 90, z: 0} --- !u!33 &6216030319065806017 MeshFilter: @@ -6487,13 +6503,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4310330430110049965} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &2688479474867376759 MeshFilter: @@ -6570,6 +6586,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4436706471888233377} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -6577,7 +6594,6 @@ Transform: m_Children: - {fileID: 114474432599720135} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 17 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &3283327122779302580 MeshFilter: @@ -6654,13 +6670,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4667643759055086486} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &8732213966658723503 MeshFilter: @@ -6737,13 +6753,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4845145751604078779} + serializedVersion: 2 m_LocalRotation: {x: -0.000000014901159, y: -0, z: -0, w: 1} m_LocalPosition: {x: -0.16460006, y: 0, z: 0.00000011920929} m_LocalScale: {x: 0.11859751, y: 0.11859753, z: 0.07618581} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 5700050028550231762} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &529688238939116957 MeshFilter: @@ -6824,6 +6840,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4857080948001388202} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -6838,7 +6855,6 @@ Transform: - {fileID: 6479936979813500109} - {fileID: 2421762694500550441} m_Father: {fileID: 0} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!54 &3628122136474199586 Rigidbody: @@ -6847,10 +6863,21 @@ Rigidbody: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4857080948001388202} - serializedVersion: 2 + serializedVersion: 4 m_Mass: 1 m_Drag: 0 m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 m_UseGravity: 0 m_IsKinematic: 0 m_Interpolate: 0 @@ -6864,8 +6891,17 @@ CapsuleCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4857080948001388202} m_Material: {fileID: 13400000, guid: 8ca1f19989cea784198b2eda570932cc, type: 2} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 m_IsTrigger: 0 + m_ProvidesContacts: 0 m_Enabled: 1 + serializedVersion: 2 m_Radius: 0.6 m_Height: 1.7 m_Direction: 1 @@ -7443,6 +7479,7 @@ MonoBehaviour: bakedScriptType: Coherence.Generated.CoherenceSync_cd9bcc1feead9419fac0c5981ce85c23, Assembly-CSharp isGlobal: 0 + synchronizeParent: 1 approveAuthorityTransferRequests: 1 simulationType: 0 authorityTransferConfig: 0 @@ -7508,7 +7545,7 @@ MonoBehaviour: type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 134368417253949441 + rid: 3859271854062305419 routing: 1 syncMode: 0 isPredicted: 0 @@ -7523,30 +7560,8 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 176131441763086322} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - - rid: 134368417253949441 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: SetTrigger - monoAssemblyType: - required: 0 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: - - System.String, mscorlib - ownerType: - assemblyQualifiedName: UnityEngine.Animator, UnityEngine.AnimationModule, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] - rid: 134368417253949443 type: {class: IntBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -7570,7 +7585,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 8520998716179763618} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 134368417253949444 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -7592,6 +7607,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 134368417253949445 type: {class: IntBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -7615,7 +7632,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 8520998716179763618} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 134368417253949446 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -7637,6 +7654,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 134368417253949448 type: {class: FloatAnimatorParameterBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -7661,7 +7680,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 176131441763086322} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 134368417253949449 type: {class: AnimatorDescriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -7684,6 +7703,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 parameterHash: 526065662 - rid: 134368417253949450 type: {class: BoolAnimatorParameterBinding, ns: Coherence.Toolkit.Bindings, @@ -7709,7 +7730,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 176131441763086322} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 134368417253949451 type: {class: AnimatorDescriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -7731,6 +7752,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 parameterHash: 862969536 - rid: 134368417253949454 type: {class: BoolAnimatorParameterBinding, ns: Coherence.Toolkit.Bindings, @@ -7756,7 +7779,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 176131441763086322} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 134368417253949455 type: {class: AnimatorDescriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -7778,6 +7801,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 parameterHash: -400069451 - rid: 134368417253949456 type: {class: BoolAnimatorParameterBinding, ns: Coherence.Toolkit.Bindings, @@ -7803,7 +7828,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 176131441763086322} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 134368417253949457 type: {class: AnimatorDescriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -7825,6 +7850,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 parameterHash: 1403110177 - rid: 134368550202900508 type: {class: DisableBehaviourComponentAction, ns: Coherence.Toolkit.ComponentActions, @@ -7875,7 +7902,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 176131441763086322} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 134368711051051055 type: {class: AnimatorDescriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -7897,6 +7924,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 parameterHash: 209758592 - rid: 1745157150437539842 type: {class: DisableBehaviourComponentAction, ns: Coherence.Toolkit.ComponentActions, @@ -7936,7 +7965,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 8520998716179763618} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 2368829912872124496 type: {class: IntBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -7960,7 +7989,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 8520998716179763618} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 2368829912872124497 type: {class: PositionBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -7985,7 +8014,7 @@ MonoBehaviour: floatCompression: 2 unityComponent: {fileID: 6621220932995602478} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 2368829912872124505 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -8008,6 +8037,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 2368829912872124506 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -8029,6 +8060,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 2368829912872124507 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -8050,6 +8083,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 2368830072080302090 type: {class: StringBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -8073,7 +8108,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 3184128103638100181} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 2368830072080302091 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -8095,6 +8130,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 2368830094440660994 type: {class: RotationBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -8119,7 +8156,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 6621220932995602478} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 2368830094440660995 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -8142,6 +8179,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3041628591939387412 type: {class: StringBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -8165,7 +8204,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 4874302885197676216} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 3041628591939387413 type: {class: IntBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -8189,7 +8228,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 4874302885197676216} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 3041628591939387414 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -8211,6 +8250,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3041628591939387415 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -8232,6 +8273,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3041628591939387495 type: {class: ScaleBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -8256,7 +8299,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 6621220932995602478} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 3041628591939387496 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -8279,6 +8322,217 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 + - rid: 3859271854062305419 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: SetTrigger + monoAssemblyType: + required: 0 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: + - System.String, mscorlib + ownerType: + assemblyQualifiedName: UnityEngine.Animator, UnityEngine.AnimationModule, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 3859271854062305420 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayChopSound + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: ChopAction, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 2 + - rid: 3859271854062305421 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlaySitSound + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: SitAction, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 2 + - rid: 3859271854062305422 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayYesSound + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: Emotes, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 3859271854062305423 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayNoSound + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: Emotes, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 3859271854062305424 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayHeySound + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: Emotes, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 3859271854062305425 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayPickUpSound + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: GrabAction, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 3859271854062305426 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayDropSound + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: GrabAction, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 3859271854062305427 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: SendChatMessage + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: + - System.Byte[], mscorlib + ownerType: + assemblyQualifiedName: Chat, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 2 - rid: 5551134440486600705 type: {class: KinematicRigidbodyComponentAction, ns: Coherence.Toolkit.ComponentActions, asm: Coherence.Toolkit} @@ -8319,7 +8573,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 8520998716179763618} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 7887415022261371022 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -8341,11 +8595,13 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 8975624654701461555 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975624654701461556 + rid: 3859271854062305420 routing: 2 syncMode: 0 isPredicted: 0 @@ -8360,33 +8616,12 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 1748873619980024861} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975624654701461556 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayChopSound - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: ChopAction, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + _interpolationSettings: {fileID: 0} - rid: 8975624654701461557 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975624654701461558 + rid: 3859271854062305421 routing: 2 syncMode: 0 isPredicted: 0 @@ -8401,33 +8636,12 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 3783066338582091569} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975624654701461558 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlaySitSound - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: SitAction, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + _interpolationSettings: {fileID: 0} - rid: 8975624908920849399 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975624908920849400 + rid: 3859271854062305422 routing: 1 syncMode: 0 isPredicted: 0 @@ -8442,33 +8656,12 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 2341686121031281792} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975624908920849400 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayYesSound - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: Emotes, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + _interpolationSettings: {fileID: 0} - rid: 8975624908920849401 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975624908920849402 + rid: 3859271854062305423 routing: 1 syncMode: 0 isPredicted: 0 @@ -8483,33 +8676,12 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 2341686121031281792} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975624908920849402 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayNoSound - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: Emotes, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + _interpolationSettings: {fileID: 0} - rid: 8975624972854099968 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975624972854099969 + rid: 3859271854062305424 routing: 1 syncMode: 0 isPredicted: 0 @@ -8524,28 +8696,7 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 2341686121031281792} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975624972854099969 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayHeySound - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: Emotes, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + _interpolationSettings: {fileID: 0} - rid: 8975624978862964767 type: {class: DisableBehaviourComponentAction, ns: Coherence.Toolkit.ComponentActions, asm: Coherence.Toolkit} @@ -8555,7 +8706,7 @@ MonoBehaviour: type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975624978862964807 + rid: 3859271854062305425 routing: 1 syncMode: 0 isPredicted: 0 @@ -8570,33 +8721,12 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 808631227725563711} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975624978862964807 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayPickUpSound - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: GrabAction, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + _interpolationSettings: {fileID: 0} - rid: 8975624978862964808 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975624978862964809 + rid: 3859271854062305426 routing: 1 syncMode: 0 isPredicted: 0 @@ -8611,33 +8741,12 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 808631227725563711} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975624978862964809 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayDropSound - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: GrabAction, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + _interpolationSettings: {fileID: 0} - rid: 8975625154910224444 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: descriptor: - rid: 8975625154910224445 + rid: 3859271854062305427 routing: 2 syncMode: 0 isPredicted: 0 @@ -8652,29 +8761,7 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 5277398249615818877} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625154910224445 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: SendChatMessage - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: - - System.Byte[], mscorlib - ownerType: - assemblyQualifiedName: Chat, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + _interpolationSettings: {fileID: 0} - rid: 9164619131893317722 type: {class: DeepPositionBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -8699,7 +8786,7 @@ MonoBehaviour: floatCompression: 2 unityComponent: {fileID: 4998465150839130408} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 9164619131893317723 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -8722,6 +8809,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 --- !u!114 &4874302885197676216 MonoBehaviour: m_ObjectHideFlags: 0 @@ -8759,6 +8848,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4891341931576368789} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -8769,7 +8859,6 @@ Transform: - {fileID: 189260676817378313} - {fileID: 8984134137737446924} m_Father: {fileID: 6621220932995602478} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &5045984729358284688 GameObject: @@ -8796,13 +8885,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5045984729358284688} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &3702582932947333888 MeshFilter: @@ -8885,7 +8974,6 @@ RectTransform: m_ConstrainProportionsScale: 1 m_Children: [] m_Father: {fileID: 7635730674442425912} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -9015,6 +9103,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5521326048237701866} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -9022,7 +9111,6 @@ Transform: m_Children: - {fileID: 5346392886914059967} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 21 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &7781600540315033200 MeshFilter: @@ -9099,13 +9187,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5716993824594408634} + serializedVersion: 2 m_LocalRotation: {x: 0.02090645, y: -0.10598585, z: 0.008755983, w: -0.9941093} m_LocalPosition: {x: -0.014, y: -0.052999847, z: 0.076} m_LocalScale: {x: 1.1326, y: 1.1326, z: 1.1326} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6515674271681635254} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -2.276, y: 372.196, z: -1.252} --- !u!33 &8218852869072868245 MeshFilter: @@ -9189,7 +9277,6 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 7635730674442425912} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: -180} m_AnchorMin: {x: 0.5, y: 0} m_AnchorMax: {x: 0.5, y: 0} @@ -9280,13 +9367,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5894676268837241704} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 12 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &5936650995542216757 MeshFilter: @@ -9364,6 +9451,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6102050058328527654} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: -1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -9371,7 +9459,6 @@ Transform: m_Children: - {fileID: 1169785079388365061} m_Father: {fileID: 6621220932995602478} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &2832551573335709684 MonoBehaviour: @@ -9530,13 +9617,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6435964613414340227} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6621220932995602478} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &5277398249615818877 MonoBehaviour: @@ -9593,7 +9680,6 @@ RectTransform: m_ConstrainProportionsScale: 1 m_Children: [] m_Father: {fileID: 6069734519752221224} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -9726,13 +9812,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6585756435382521036} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6621220932995602478} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &4497820690531778001 MonoBehaviour: @@ -9814,8 +9900,17 @@ CapsuleCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6585756435382521036} m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 m_IsTrigger: 1 + m_ProvidesContacts: 0 m_Enabled: 1 + serializedVersion: 2 m_Radius: 0.65871096 m_Height: 2.7371578 m_Direction: 1 @@ -9845,13 +9940,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6610301763928777929} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: -0.5, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6621220932995602478} - m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!82 &5657173711034383557 AudioSource: @@ -9987,13 +10082,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6780478846079061736} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 18 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &4135677319950760593 MeshFilter: @@ -10070,6 +10165,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6903391402023175144} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -10077,7 +10173,6 @@ Transform: m_Children: - {fileID: 1955157568112781793} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &3675172607836159116 MeshFilter: @@ -10154,13 +10249,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7203123434899017590} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 14 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &1679404082795834139 MeshFilter: @@ -10237,13 +10332,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7399771111024331760} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 19 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &7351585043104129747 MeshFilter: @@ -10318,6 +10413,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7516632731179652086} + serializedVersion: 2 m_LocalRotation: {x: -0.5133682, y: 0.48626444, z: 0.5133682, w: 0.48626444} m_LocalPosition: {x: -0.08755097, y: 0.263866, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -10326,7 +10422,6 @@ Transform: - {fileID: 1913603355859210594} - {fileID: 1637940972728221725} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 15 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &7527464780680857807 GameObject: @@ -10353,13 +10448,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7527464780680857807} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 13 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &8375314310829249235 MeshFilter: @@ -10436,6 +10531,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8016589907023720767} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -10443,7 +10539,6 @@ Transform: m_Children: - {fileID: 8250316179817241177} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 20 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &633534041592486618 MeshFilter: @@ -10520,6 +10615,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8351999563265823787} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -10527,7 +10623,6 @@ Transform: m_Children: - {fileID: 5130581042082805812} m_Father: {fileID: 3217486551322112011} - m_RootOrder: 11 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &7437087220626028720 MeshFilter: @@ -10604,13 +10699,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8357078475155886405} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &2214951214097130375 MeshFilter: @@ -10687,13 +10782,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8623470355687494045} + serializedVersion: 2 m_LocalRotation: {x: -0.000000089406946, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 2429290720039019014} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &5555480445690481980 MeshFilter: @@ -10770,13 +10865,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8810647864765341631} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &3224104426513580437 MeshFilter: @@ -10853,13 +10948,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8922897811346422532} + serializedVersion: 2 m_LocalRotation: {x: -0.5133681, y: 0.48626453, z: 0.5133681, w: 0.48626453} m_LocalPosition: {x: 1.3554988, y: 0.049245726, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3217486551322112011} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &2355567404966037994 MeshFilter: @@ -10916,6 +11011,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6301120708123736386} m_Modifications: - target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b, @@ -10979,6 +11075,9 @@ PrefabInstance: value: WalkParticle objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: f8a6e96eef53e5a4686f9a85a72fe73b, type: 3} --- !u!4 &189260676817378313 stripped Transform: @@ -11003,6 +11102,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 8719459572617440777} m_Modifications: - target: {fileID: -8778117477519202838, guid: 21861642d9faa4ea6977a16537917868, @@ -11576,6 +11676,125 @@ PrefabInstance: value: -2.6730103 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: + - targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 1106479308741263317} + - targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 3456987241706604412} + - targetCorrespondingSourceObject: {fileID: -1238456961107870520, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 4492309843593273682} + - targetCorrespondingSourceObject: {fileID: -1238456961107870520, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 8702763050478991834} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 329828684144653334} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 336017826313957466} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 889128224968996459} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 1688241323898935642} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 1699200002830561285} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 2072909789258432231} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 2083008835262974314} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 2429290720039019014} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 2840726289199332020} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 3285745237158959132} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 3529489199186566274} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 4483379148950309350} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 4785682139633871460} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 4893618620021420903} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 5700050028550231762} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 6515674271681635254} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 7650078148949313813} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 7877952161382833814} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 8111235625295845390} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 8476878202410904504} + - targetCorrespondingSourceObject: {fileID: -4965325442729560347, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 8826199108323715944} + - targetCorrespondingSourceObject: {fileID: 1539781974115159673, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 7546472786715280518} + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 176131441763086322} + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 157260095937895497} + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 21861642d9faa4ea6977a16537917868, + type: 3} + insertIndex: -1 + addedObject: {fileID: 7960092125721772247} m_SourcePrefab: {fileID: 100100000, guid: 21861642d9faa4ea6977a16537917868, type: 3} --- !u!4 &211448891876083863 stripped Transform: @@ -11919,6 +12138,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 8746357563404958246} m_Modifications: - target: {fileID: -8679921383154817045, guid: 7add1f05dc41c5e49944798661cff15d, @@ -12022,6 +12242,9 @@ PrefabInstance: value: objectReference: {fileID: 2100000, guid: 48a6a175f77d7584a97c48206c45a195, type: 2} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 7add1f05dc41c5e49944798661cff15d, type: 3} --- !u!1 &3826991700907031528 stripped GameObject: @@ -12064,6 +12287,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6301120708123736386} m_Modifications: - target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9, @@ -12132,6 +12356,9 @@ PrefabInstance: value: 1 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9, type: 3} --- !u!199 &3796868546895251927 stripped ParticleSystemRenderer: @@ -12156,6 +12383,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6621220932995602478} m_Modifications: - target: {fileID: 3129766074022126719, guid: 9ab9e7e959e10154c8441c8e055ca38d, @@ -12229,6 +12457,9 @@ PrefabInstance: value: objectReference: {fileID: 7465127074696027023} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 9ab9e7e959e10154c8441c8e055ca38d, type: 3} --- !u!4 &392613447409461771 stripped Transform: @@ -12325,6 +12556,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 211448891876083863} m_Modifications: - target: {fileID: 1108715864566828788, guid: 411551278aa644e41aea6b8df0092564, @@ -12393,6 +12625,9 @@ PrefabInstance: value: 122.693 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 411551278aa644e41aea6b8df0092564, type: 3} --- !u!33 &1954086845848425260 stripped MeshFilter: @@ -12441,6 +12676,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 6301120708123736386} m_Modifications: - target: {fileID: 1331107967620109782, guid: 5bf7aeff6af6cad4ba9c19219c9841db, @@ -12509,6 +12745,9 @@ PrefabInstance: value: 1 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 5bf7aeff6af6cad4ba9c19219c9841db, type: 3} --- !u!199 &2420498562722012429 stripped ParticleSystemRenderer: diff --git a/Assets/Prefabs/Interactive/Burnables/Base_BurnableObject.prefab b/Assets/Prefabs/Interactive/Burnables/Base_BurnableObject.prefab index 8771aea..003c475 100644 --- a/Assets/Prefabs/Interactive/Burnables/Base_BurnableObject.prefab +++ b/Assets/Prefabs/Interactive/Burnables/Base_BurnableObject.prefab @@ -25,13 +25,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1269269562991978131} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1498616242359619048} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!136 &4620371565644370732 CapsuleCollider: @@ -41,8 +41,17 @@ CapsuleCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1269269562991978131} m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 m_IsTrigger: 1 + m_ProvidesContacts: 0 m_Enabled: 1 + serializedVersion: 2 m_Radius: 0.68447167 m_Height: 2.3003566 m_Direction: 0 @@ -92,6 +101,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2272056274626123602} + serializedVersion: 2 m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -102,7 +112,6 @@ Transform: - {fileID: 5477664959342397225} - {fileID: 1806475306694297030} m_Father: {fileID: 0} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!54 &8111638725544808720 Rigidbody: @@ -111,10 +120,21 @@ Rigidbody: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2272056274626123602} - serializedVersion: 2 + serializedVersion: 4 m_Mass: 4 m_Drag: 0.1 m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 m_UseGravity: 1 m_IsKinematic: 0 m_Interpolate: 0 @@ -284,6 +304,7 @@ MonoBehaviour: bakedScriptType: Coherence.Generated.CoherenceSync_8833df0ce8b904a2c930b33acfa5fd13, Assembly-CSharp isGlobal: 0 + synchronizeParent: 1 approveAuthorityTransferRequests: 0 simulationType: 0 authorityTransferConfig: 1 @@ -300,8 +321,8 @@ MonoBehaviour: - rid: 3472946656693190773 - rid: 3472946656693190774 - rid: 134368550202900516 - - rid: 8975625062529892426 - rid: 8975625062529892549 + - rid: 464123148303597586 scenePrefabInstanceUUID: coherenceUUID: assetVersion: 20 @@ -340,7 +361,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 1240127558968939656} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 134368550202900517 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -362,11 +383,56 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 134368709440962560 type: {class: DisableBehaviourComponentAction, ns: Coherence.Toolkit.ComponentActions, asm: Coherence.Toolkit} data: component: {fileID: 4956315802915571190} + - rid: 464123148303597586 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + descriptor: + rid: 464123148303597587 + routing: 1 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: 1d97e8b68da1419a9d8bbf2023980031 + archetypeData: + type: 0 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: [] + unityComponent: {fileID: 4956315802915571190} + coherenceSync: {fileID: 6375189795360318608} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597587 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayReappearShaderEffect + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: PositionedObject, Assembly-CSharp, Version=0.0.0.0, + Culture=neutral, PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 - rid: 3472946656693190763 type: {class: PositionBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -391,7 +457,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 1498616242359619048} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 3472946656693190764 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -414,6 +480,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3472946656693190765 type: {class: RotationBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -438,7 +506,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 1498616242359619048} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 3472946656693190766 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} @@ -461,6 +529,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3472946656693190767 type: {class: ScaleBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -485,7 +555,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 1498616242359619048} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 3472946656693190768 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -507,6 +577,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3472946656693190772 type: {class: DisableBehaviourComponentAction, ns: Coherence.Toolkit.ComponentActions, asm: Coherence.Toolkit} @@ -535,7 +607,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 1610091049627114431} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 3472946656693190774 type: {class: IntBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -559,7 +631,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 1610091049627114431} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 3472946656693190775 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -581,6 +653,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3472946656693190776 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -602,47 +676,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] - - rid: 8975625062529892426 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - descriptor: - rid: 8975625062529892427 - routing: 1 - syncMode: 0 - isPredicted: 0 - predictionMode: 0 - guid: ad9e635638034d88b0c6dcd8a9c83286 - archetypeData: - type: 0 - minRange: 0 - maxRange: 0 - sampleRate: 20 - floatCompression: 0 - fields: [] - unityComponent: {fileID: 4956315802915571190} - coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625062529892427 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayReappearShaderEffect - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: PositionedObject, Assembly-CSharp, Version=0.0.0.0, - Culture=neutral, PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 8975625062529892549 type: {class: ReferenceBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} @@ -667,7 +702,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 4956315802915571190} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 8975625062529892550 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -689,6 +724,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 --- !u!114 &1610091049627114431 MonoBehaviour: m_ObjectHideFlags: 0 @@ -744,13 +781,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2694923458204196241} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: -0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1498616242359619048} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!33 &3382381305466872356 MeshFilter: @@ -845,13 +882,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5640495392823266360} + serializedVersion: 2 m_LocalRotation: {x: -0, y: 0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 1498616242359619048} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!82 &4868421963353815200 AudioSource: @@ -967,6 +1004,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 1498616242359619048} m_Modifications: - target: {fileID: 3129766074022126719, guid: 9ab9e7e959e10154c8441c8e055ca38d, @@ -1035,6 +1073,9 @@ PrefabInstance: value: objectReference: {fileID: 7164931542136375948} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 9ab9e7e959e10154c8441c8e055ca38d, type: 3} --- !u!4 &738376647610722319 stripped Transform: diff --git a/Assets/Prefabs/Interactive/Campfire.prefab b/Assets/Prefabs/Interactive/Campfire.prefab index 3b44136..c541004 100644 --- a/Assets/Prefabs/Interactive/Campfire.prefab +++ b/Assets/Prefabs/Interactive/Campfire.prefab @@ -25,13 +25,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 430958339} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.18, y: 0.669, z: -0.23000002} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8979440835089238673} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &430958341 Light: @@ -111,10 +111,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!1 &535553509 GameObject: m_ObjectHideFlags: 0 @@ -140,13 +143,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 535553509} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8251579126772371467} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &535553512 ParticleSystem: @@ -366,6 +369,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -395,6 +399,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -716,6 +721,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -1445,6 +1451,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -1474,6 +1481,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -3694,6 +3702,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -3723,6 +3732,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -4100,6 +4110,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -4142,6 +4153,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -4171,6 +4183,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -4258,6 +4271,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -4287,6 +4301,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -4325,6 +4340,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -4354,6 +4370,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -4607,6 +4624,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -4636,6 +4654,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -4912,13 +4931,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -4953,13 +4974,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1277694092} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 2969320339376906504} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &1277694095 ParticleSystem: @@ -5179,6 +5200,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -5208,6 +5230,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -5529,6 +5552,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -6258,6 +6282,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -6287,6 +6312,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -8507,6 +8533,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -8536,6 +8563,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -8913,6 +8941,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -8955,6 +8984,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -8984,6 +9014,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -9071,6 +9102,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -9100,6 +9132,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -9138,6 +9171,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -9167,6 +9201,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -9420,6 +9455,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -9449,6 +9485,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -9724,13 +9761,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -9765,13 +9804,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1318344665} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6340208841483787474} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &1318344667 ParticleSystem: @@ -9991,6 +10030,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -10020,6 +10060,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -10341,6 +10382,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -11070,6 +11112,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -11099,6 +11142,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -13319,6 +13363,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -13348,6 +13393,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -13725,6 +13771,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -13767,6 +13814,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -13796,6 +13844,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -13883,6 +13932,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -13912,6 +13962,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -13950,6 +14001,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -13979,6 +14031,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -14232,6 +14285,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -14261,6 +14315,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -14536,13 +14591,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -14577,13 +14634,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1642583949} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 2969320339376906504} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &1642583952 ParticleSystem: @@ -14803,6 +14860,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -14832,6 +14890,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -15153,6 +15212,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -15940,6 +16000,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -15969,6 +16030,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -18189,6 +18251,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -18218,6 +18281,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -18595,6 +18659,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -18637,6 +18702,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -18666,6 +18732,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -18753,6 +18820,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -18782,6 +18850,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -18820,6 +18889,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -18849,6 +18919,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -19102,6 +19173,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -19131,6 +19203,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -19406,13 +19479,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -19447,13 +19522,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1769527214} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0.030000001, y: -0.73, z: 0.13899994} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8194615409723942283} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &1769527217 ParticleSystem: @@ -19673,6 +19748,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -19702,6 +19778,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -20023,6 +20100,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -20752,6 +20830,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -20781,6 +20860,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -23001,6 +23081,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -23030,6 +23111,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -23407,6 +23489,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -23449,6 +23532,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -23478,6 +23562,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -23565,6 +23650,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -23594,6 +23680,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -23632,6 +23719,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -23661,6 +23749,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -23914,6 +24003,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -23943,6 +24033,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -24219,13 +24310,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -24260,13 +24353,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1944909676} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6340208841483787474} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &1944909678 ParticleSystem: @@ -24486,6 +24579,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -24515,6 +24609,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -24836,6 +24931,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -25565,6 +25661,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -25594,6 +25691,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -27814,6 +27912,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -27843,6 +27942,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -28220,6 +28320,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -28262,6 +28363,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -28291,6 +28393,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -28378,6 +28481,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -28407,6 +28511,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -28445,6 +28550,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -28474,6 +28580,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -28727,6 +28834,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -28756,6 +28864,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -29031,13 +29140,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -29072,13 +29183,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2123380452} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0.1, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8194615409723942283} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &2123380455 Light: @@ -29158,10 +29269,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!1 &108698677287088238 GameObject: m_ObjectHideFlags: 0 @@ -29187,13 +29301,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 108698677287088238} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0.030000001, y: -0.73, z: 0.13899994} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8251579126772371467} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &5587317366300469589 ParticleSystem: @@ -29413,6 +29527,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -29442,6 +29557,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -29763,6 +29879,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -30492,6 +30609,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -30521,6 +30639,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -32741,6 +32860,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -32770,6 +32890,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -33147,6 +33268,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -33189,6 +33311,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -33218,6 +33341,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -33305,6 +33429,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -33334,6 +33459,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -33372,6 +33498,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -33401,6 +33528,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -33654,6 +33782,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -33683,6 +33812,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -33959,13 +34089,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -34000,13 +34132,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 342775766479302277} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0.030000001, y: -0.73, z: 0.13899994} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3235319438330382741} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &357919257904425974 ParticleSystem: @@ -34226,6 +34358,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -34255,6 +34388,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -34576,6 +34710,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -35305,6 +35440,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -35334,6 +35470,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -37554,6 +37691,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -37583,6 +37721,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -37960,6 +38099,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -38002,6 +38142,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -38031,6 +38172,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -38118,6 +38260,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -38147,6 +38290,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -38185,6 +38329,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -38214,6 +38359,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -38467,6 +38613,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -38496,6 +38643,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -38772,13 +38920,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -38813,13 +38963,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 650350673206996786} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: -0.24, y: 0.6689999, z: 0.157} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8979440835089238673} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &2819511562786408698 Light: @@ -38899,10 +39049,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!1 &914350446560120789 GameObject: m_ObjectHideFlags: 0 @@ -38928,6 +39081,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 914350446560120789} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} @@ -38936,7 +39090,6 @@ Transform: - {fileID: 1642583950} - {fileID: 1277694093} m_Father: {fileID: 8979440835089238673} - m_RootOrder: 5 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &6575132355096067487 ParticleSystem: @@ -39156,6 +39309,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -39185,6 +39339,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -39506,6 +39661,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -40293,6 +40449,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -40322,6 +40479,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -42542,6 +42700,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -42571,6 +42730,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -42948,6 +43108,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -42990,6 +43151,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -43019,6 +43181,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -43106,6 +43269,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -43135,6 +43299,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -43173,6 +43338,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -43202,6 +43368,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -43455,6 +43622,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -43484,6 +43652,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -43759,13 +43928,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -43800,13 +43971,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1079722779315356198} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8251579126772371467} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &356263838202149592 ParticleSystem: @@ -44026,6 +44197,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -44055,6 +44227,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -44376,6 +44549,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -45105,6 +45279,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -45134,6 +45309,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -47354,6 +47530,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -47383,6 +47560,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -47760,6 +47938,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -47802,6 +47981,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -47831,6 +48011,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -47918,6 +48099,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -47947,6 +48129,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -47985,6 +48168,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -48014,6 +48198,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -48267,6 +48452,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -48296,6 +48482,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -48571,13 +48758,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -48613,13 +48802,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1124266377900333908} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.18, y: 1.03, z: -0.48} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 5165382618848854321} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &5924948744922363093 Light: @@ -48699,10 +48888,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!95 &5507545041022789260 Animator: serializedVersion: 5 @@ -48748,6 +48940,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1777580946748886650} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -48756,7 +48949,6 @@ Transform: - {fileID: 2123380456} - {fileID: 1769527215} m_Father: {fileID: 8979440835089238673} - m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &2095455122 MonoBehaviour: @@ -48801,6 +48993,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1830394954118801574} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -48813,7 +49006,6 @@ Transform: - {fileID: 6900907575315347682} - {fileID: 1381765234225753133} m_Father: {fileID: 8979440835089238673} - m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &8008549966657990297 MonoBehaviour: @@ -48940,13 +49132,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2479332322381329049} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.433, y: 0.6689999, z: -0.062} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8979440835089238673} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &3959661152116251819 Light: @@ -49026,10 +49218,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!1 &2607300057157635171 GameObject: m_ObjectHideFlags: 0 @@ -49055,13 +49250,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2607300057157635171} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3235319438330382741} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &611842978197534986 ParticleSystem: @@ -49281,6 +49476,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -49310,6 +49506,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -49631,6 +49828,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -50360,6 +50558,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -50389,6 +50588,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -52609,6 +52809,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -52638,6 +52839,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -53015,6 +53217,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -53057,6 +53260,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -53086,6 +53290,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -53173,6 +53378,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -53202,6 +53408,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -53240,6 +53447,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -53269,6 +53477,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -53522,6 +53731,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -53551,6 +53761,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -53826,13 +54037,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -53868,13 +54081,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2768254515148328569} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.18, y: 1.03, z: -0.48000002} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8251579126772371467} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &4545358586272199 Light: @@ -53954,10 +54167,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!95 &1271223980439244779 Animator: serializedVersion: 5 @@ -54004,13 +54220,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3335132672061994217} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.18, y: 1.03, z: -0.48000002} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8979440835089238673} - m_RootOrder: 12 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!82 &7806988428094465347 AudioSource: @@ -54146,13 +54362,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3387038583892748746} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0.248, y: 0.64, z: 0.166} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 5165382618848854321} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &7052467737602897282 ParticleSystem: @@ -54372,6 +54588,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -54401,6 +54618,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -54722,6 +54940,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -55451,6 +55670,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -55480,6 +55700,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -57700,6 +57921,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -57729,6 +57951,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -58106,6 +58329,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -58148,6 +58372,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -58177,6 +58402,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -58264,6 +58490,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -58293,6 +58520,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -58331,6 +58559,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -58360,6 +58589,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -58613,6 +58843,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -58642,6 +58873,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -58917,13 +59149,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -58958,13 +59192,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3710306741211460573} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8979440835089238673} - m_RootOrder: 11 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &2584117008378223959 MonoBehaviour: @@ -59100,13 +59334,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3898575222287101228} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3235319438330382741} - m_RootOrder: 5 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &4599886721433827521 ParticleSystem: @@ -59326,6 +59560,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -59355,6 +59590,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -59676,6 +59912,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -60405,6 +60642,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -60434,6 +60672,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -62654,6 +62893,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -62683,6 +62923,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -63060,6 +63301,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -63102,6 +63344,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -63131,6 +63374,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -63218,6 +63462,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -63247,6 +63492,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -63285,6 +63531,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -63314,6 +63561,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -63567,6 +63815,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -63596,6 +63845,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -63872,13 +64122,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -63911,6 +64163,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4118558774719935146} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -63920,7 +64173,6 @@ Transform: - {fileID: 4489944967951149894} - {fileID: 3632625823944554878} m_Father: {fileID: 8979440835089238673} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &4221380637615493898 GameObject: @@ -63947,13 +64199,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4221380637615493898} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 5165382618848854321} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &23376831385280217 ParticleSystem: @@ -64173,6 +64425,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -64202,6 +64455,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -64523,6 +64777,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -65252,6 +65507,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -65281,6 +65537,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -67501,6 +67758,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -67530,6 +67788,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -67907,6 +68166,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -67949,6 +68209,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -67978,6 +68239,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -68065,6 +68327,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -68094,6 +68357,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -68132,6 +68396,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -68161,6 +68426,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -68414,6 +68680,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -68443,6 +68710,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -68718,13 +68986,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -68759,13 +69029,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4228661066810124479} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.18, y: 0.66899973, z: 0.1} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8979440835089238673} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &7001213924742048370 Light: @@ -68845,10 +69115,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!1 &4636562473383286241 GameObject: m_ObjectHideFlags: 0 @@ -68874,13 +69147,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4636562473383286241} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3235319438330382741} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &738197133964415770 ParticleSystem: @@ -69100,6 +69373,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -69129,6 +69403,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -69450,6 +69725,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -70179,6 +70455,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -70208,6 +70485,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -72428,6 +72706,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -72457,6 +72736,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -72834,6 +73114,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -72876,6 +73157,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -72905,6 +73187,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -72992,6 +73275,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -73021,6 +73305,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -73059,6 +73344,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -73088,6 +73374,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -73341,6 +73628,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -73370,6 +73658,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -73645,13 +73934,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -73686,13 +73977,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5390040515270656631} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0.030000001, y: -0.73, z: 0.13899994} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6340208841483787474} - m_RootOrder: 3 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &2992536100940826759 ParticleSystem: @@ -73912,6 +74203,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -73941,6 +74233,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -74262,6 +74555,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -74991,6 +75285,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -75020,6 +75315,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -77240,6 +77536,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -77269,6 +77566,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -77646,6 +77944,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -77688,6 +77987,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -77717,6 +78017,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -77804,6 +78105,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -77833,6 +78135,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -77871,6 +78174,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -77900,6 +78204,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -78153,6 +78458,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -78182,6 +78488,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -78458,13 +78765,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -78499,13 +78808,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6027699657858285789} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8251579126772371467} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &744760864803876976 ParticleSystem: @@ -78725,6 +79034,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -78754,6 +79064,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -79075,6 +79386,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -79804,6 +80116,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -79833,6 +80146,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -82053,6 +82367,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -82082,6 +82397,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -82459,6 +82775,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -82501,6 +82818,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -82530,6 +82848,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -82617,6 +82936,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -82646,6 +82966,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -82684,6 +83005,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -82713,6 +83035,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -82966,6 +83289,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -82995,6 +83319,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -83270,13 +83595,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -83310,6 +83637,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6896346992353510163} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -83321,7 +83649,6 @@ Transform: - {fileID: 7420446179954329416} - {fileID: 1717064064733376867} m_Father: {fileID: 8979440835089238673} - m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &2864290761897875125 MonoBehaviour: @@ -83447,6 +83774,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7229595355842950350} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -83457,7 +83785,6 @@ Transform: - {fileID: 1944909679} - {fileID: 6055611756733033693} m_Father: {fileID: 8979440835089238673} - m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &1652282240 MonoBehaviour: @@ -83585,13 +83912,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7659351834591783254} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.18, y: 1.03, z: -0.48} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 6340208841483787474} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &271522935085708124 Light: @@ -83671,10 +83998,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!95 &5849917057504768187 Animator: serializedVersion: 5 @@ -83721,13 +84051,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7724082419641088548} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3235319438330382741} - m_RootOrder: 2 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &774974296209670818 ParticleSystem: @@ -83947,6 +84277,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -83976,6 +84307,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -84297,6 +84629,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -85026,6 +85359,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -85055,6 +85389,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -87275,6 +87610,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -87304,6 +87640,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -87681,6 +88018,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -87723,6 +88061,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -87752,6 +88091,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -87839,6 +88179,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -87868,6 +88209,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -87906,6 +88248,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -87935,6 +88278,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -88188,6 +88532,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -88217,6 +88562,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -88492,13 +88838,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -88533,13 +88881,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7809015668753044903} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: -0.060000002, y: 0.64, z: -0.17000008} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 5165382618848854321} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &7756223096992256561 ParticleSystem: @@ -88759,6 +89107,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -88788,6 +89137,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -89109,6 +89459,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -89838,6 +90189,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -89867,6 +90219,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -92087,6 +92440,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -92116,6 +92470,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -92493,6 +92848,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -92535,6 +92891,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -92564,6 +92921,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -92651,6 +93009,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -92680,6 +93039,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -92718,6 +93078,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -92747,6 +93108,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -93000,6 +93362,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -93029,6 +93392,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -93304,13 +93668,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -93344,13 +93710,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7868559838237895895} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 3.89, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8979440835089238673} - m_RootOrder: 14 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!136 &1388249941696232540 CapsuleCollider: @@ -93360,8 +93726,17 @@ CapsuleCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7868559838237895895} m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 m_IsTrigger: 0 + m_ProvidesContacts: 0 m_Enabled: 1 + serializedVersion: 2 m_Radius: 0.5 m_Height: 10 m_Direction: 1 @@ -93390,6 +93765,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8339047944059550379} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -93401,7 +93777,6 @@ Transform: - {fileID: 7895479147495817271} - {fileID: 535553510} m_Father: {fileID: 8979440835089238673} - m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &1965428877 MonoBehaviour: @@ -93447,13 +93822,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8576804613094359069} + serializedVersion: 2 m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} m_LocalPosition: {x: 0.030000001, y: -0.73, z: 0.13899994} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 5165382618848854321} - m_RootOrder: 4 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!198 &2571897779639771172 ParticleSystem: @@ -93673,6 +94048,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -93702,6 +94078,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 startSize: @@ -94023,6 +94400,7 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 randomizeRotationDirection: 0 + gravitySource: 0 maxNumParticles: 1000 customEmitterVelocity: {x: 0, y: 0, z: 0} size3D: 0 @@ -94752,6 +95130,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -94781,6 +95160,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 UVModule: @@ -97001,6 +97381,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -97030,6 +97411,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 range: {x: 0, y: 1} @@ -97407,6 +97789,7 @@ ParticleSystem: m_RotationOrder: 4 minVertexDistance: 0.2 textureMode: 0 + textureScale: {x: 1, y: 1} ribbonCount: 1 shadowBias: 0.5 worldSpace: 0 @@ -97449,6 +97832,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 3 minGradient: @@ -97478,6 +97862,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 widthOverTrail: @@ -97565,6 +97950,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -97594,6 +97980,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 CustomDataModule: @@ -97632,6 +98019,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -97661,6 +98049,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel0: Color @@ -97914,6 +98303,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 minGradient: @@ -97943,6 +98333,7 @@ ParticleSystem: atime6: 0 atime7: 0 m_Mode: 0 + m_ColorSpace: -1 m_NumColorKeys: 2 m_NumAlphaKeys: 2 colorLabel1: Color @@ -98219,13 +98610,15 @@ ParticleSystemRenderer: m_RenderAlignment: 0 m_Pivot: {x: 0, y: 0, z: 0} m_Flip: {x: 0.5, y: 0, z: 0} - m_UseCustomVertexStreams: 0 m_EnableGPUInstancing: 1 m_ApplyActiveColorSpace: 1 m_AllowRoll: 1 m_FreeformStretching: 0 m_RotateWithStretchDirection: 1 + m_UseCustomVertexStreams: 0 m_VertexStreams: 00010304 + m_UseCustomTrailVertexStreams: 0 + m_TrailVertexStreams: 00010304 m_Mesh: {fileID: 0} m_Mesh1: {fileID: 0} m_Mesh2: {fileID: 0} @@ -98259,13 +98652,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8965523160207619159} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 8979440835089238673} - m_RootOrder: 13 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!135 &8506790380935074216 SphereCollider: @@ -98275,9 +98668,17 @@ SphereCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8965523160207619159} m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 m_IsTrigger: 0 + m_ProvidesContacts: 0 m_Enabled: 1 - serializedVersion: 2 + serializedVersion: 3 m_Radius: 1.28 m_Center: {x: 0, y: 0, z: 0} --- !u!1 &8979440835089238678 @@ -98306,6 +98707,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8979440835089238678} + serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} @@ -98327,7 +98729,6 @@ Transform: - {fileID: 8618502279967169163} - {fileID: 7771637596045348540} m_Father: {fileID: 0} - m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!136 &3434844016955537430 CapsuleCollider: @@ -98337,8 +98738,17 @@ CapsuleCollider: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8979440835089238678} m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 m_IsTrigger: 0 + m_ProvidesContacts: 0 m_Enabled: 1 + serializedVersion: 2 m_Radius: 0.93343085 m_Height: 3.8025358 m_Direction: 1 @@ -98704,6 +99114,7 @@ MonoBehaviour: bakedScriptType: Coherence.Generated.CoherenceSync_3889a458e94666d4784df30d8dd06d7d, Assembly-CSharp isGlobal: 0 + synchronizeParent: 1 approveAuthorityTransferRequests: 1 simulationType: 0 authorityTransferConfig: 2 @@ -98718,10 +99129,10 @@ MonoBehaviour: - rid: 8975625064436203521 - rid: 8975625064436203522 - rid: 8975625064436203523 - - rid: 8975625064436203524 - rid: 8975625064436203525 - - rid: 8975625064436203526 - - rid: 8975625064436203527 + - rid: 464123148303597580 + - rid: 464123148303597581 + - rid: 464123148303597582 scenePrefabInstanceUUID: coherenceUUID: fireplace assetVersion: 20 @@ -98735,6 +99146,140 @@ MonoBehaviour: RefIds: - rid: -2 type: {class: , ns: , asm: } + - rid: 464123148303597580 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + descriptor: + rid: 464123148303597583 + routing: 1 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: 83c0cdeb86f440ec8f561f6252d364cf + archetypeData: + type: 0 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: [] + unityComponent: {fileID: 6540142254599110064} + coherenceSync: {fileID: 6332315245591183809} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597581 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + descriptor: + rid: 464123148303597584 + routing: 1 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: 6bb7cc05523d48449228106aa066e6c2 + archetypeData: + type: 0 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: [] + unityComponent: {fileID: 6540142254599110064} + coherenceSync: {fileID: 6332315245591183809} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597582 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + descriptor: + rid: 464123148303597585 + routing: 1 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: dabc677c05d54fb792a72ed0ac4d342b + archetypeData: + type: 0 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: [] + unityComponent: {fileID: 6540142254599110064} + coherenceSync: {fileID: 6332315245591183809} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597583 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayInstantEffects + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: Campfire, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 464123148303597584 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: FireDiedDown + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: + - System.Int32, mscorlib + - System.Int32, mscorlib + ownerType: + assemblyQualifiedName: Campfire, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 + - rid: 464123148303597585 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: FireStateChanged + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: + - System.Int32, mscorlib + - System.Int32, mscorlib + - System.String, mscorlib + ownerType: + assemblyQualifiedName: Campfire, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, + PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 1 - rid: 8975625064436203520 type: {class: PositionBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -98759,7 +99304,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 8979440835089238673} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, + _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - rid: 8975625064436203521 type: {class: IntBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} @@ -98784,7 +99329,7 @@ MonoBehaviour: floatCompression: 0 unityComponent: {fileID: 6540142254599110064} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 8975625064436203522 type: {class: FloatBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -98808,7 +99353,7 @@ MonoBehaviour: floatCompression: 2 unityComponent: {fileID: 6540142254599110064} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 8975625064436203523 type: {class: FloatBinding, ns: Coherence.Toolkit.Bindings.ValueBindings, asm: Coherence.Toolkit} data: @@ -98832,27 +99377,7 @@ MonoBehaviour: floatCompression: 2 unityComponent: {fileID: 6540142254599110064} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625064436203524 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - descriptor: - rid: 8975625064436203532 - routing: 1 - syncMode: 0 - isPredicted: 0 - predictionMode: 0 - guid: 3738e04300d846dfa774ba252d8208db - archetypeData: - type: 0 - minRange: 0 - maxRange: 0 - sampleRate: 20 - floatCompression: 0 - fields: [] - unityComponent: {fileID: 6540142254599110064} - coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 8975625064436203525 type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -98872,47 +99397,7 @@ MonoBehaviour: fields: [] unityComponent: {fileID: 6540142254599110064} coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625064436203526 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - descriptor: - rid: 8975625064436203534 - routing: 1 - syncMode: 0 - isPredicted: 0 - predictionMode: 0 - guid: 3664e59fd3cd4dd28175902369f5bb38 - archetypeData: - type: 0 - minRange: 0 - maxRange: 0 - sampleRate: 20 - floatCompression: 0 - fields: [] - unityComponent: {fileID: 6540142254599110064} - coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} - - rid: 8975625064436203527 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - descriptor: - rid: 8975625064436203535 - routing: 1 - syncMode: 0 - isPredicted: 0 - predictionMode: 0 - guid: df8fe4d8a6104b7ab780e439afba5391 - archetypeData: - type: 0 - minRange: 0 - maxRange: 0 - sampleRate: 20 - floatCompression: 0 - fields: [] - unityComponent: {fileID: 6540142254599110064} - coherenceSync: {fileID: 0} - interpolationSettings: {fileID: 0} + _interpolationSettings: {fileID: 0} - rid: 8975625064436203528 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -98934,6 +99419,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 8975625064436203529 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -98955,6 +99442,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 8975625064436203530 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -98976,6 +99465,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 8975625064436203531 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -98997,27 +99488,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] - - rid: 8975625064436203532 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayInstantEffects - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: Campfire, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 8975625064436203533 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -99040,53 +99512,8 @@ MonoBehaviour: Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] - - rid: 8975625064436203534 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: FireDiedDown - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: - - System.Int32, mscorlib - - System.Int32, mscorlib - ownerType: - assemblyQualifiedName: Campfire, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] - - rid: 8975625064436203535 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: FireStateChanged - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: - - System.Int32, mscorlib - - System.Int32, mscorlib - - System.String, mscorlib - ownerType: - assemblyQualifiedName: Campfire, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, - PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 --- !u!1 &9079873833193935088 GameObject: m_ObjectHideFlags: 0 @@ -99113,13 +99540,13 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 9079873833193935088} + serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0.18, y: 1.03, z: -0.48000002} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 3235319438330382741} - m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!108 &3465903979110678445 Light: @@ -99199,10 +99626,13 @@ MonoBehaviour: m_UsePipelineSettings: 1 m_AdditionalLightsShadowResolutionTier: 2 m_LightLayerMask: 1 + m_RenderingLayers: 1 m_CustomShadowLayers: 0 m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 m_LightCookieSize: {x: 1, y: 1} m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 --- !u!95 &5862850427063908023 Animator: serializedVersion: 5 @@ -99229,6 +99659,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 4477362064404664542} m_Modifications: - target: {fileID: -8679921383154817045, guid: 3fb922d2d6fb3ca41bcf5bebf85cecc3, @@ -99327,6 +99758,9 @@ PrefabInstance: value: 2147483647 objectReference: {fileID: 0} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 3fb922d2d6fb3ca41bcf5bebf85cecc3, type: 3} --- !u!4 &774840823547092402 stripped Transform: @@ -99357,6 +99791,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 4477362064404664542} m_Modifications: - target: {fileID: -8679921383154817045, guid: f91aacf1b3230584f812b29368371ca0, @@ -99450,6 +99885,9 @@ PrefabInstance: value: objectReference: {fileID: 2100000, guid: 15bec77e0812cee449b98fc38888d946, type: 2} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: f91aacf1b3230584f812b29368371ca0, type: 3} --- !u!4 &4586666563262821947 stripped Transform: @@ -99480,6 +99918,7 @@ PrefabInstance: m_ObjectHideFlags: 0 serializedVersion: 2 m_Modification: + serializedVersion: 3 m_TransformParent: {fileID: 4477362064404664542} m_Modifications: - target: {fileID: -8679921383154817045, guid: 7693b3d66bba3764f860859b8edfd063, @@ -99568,6 +100007,9 @@ PrefabInstance: value: objectReference: {fileID: 2100000, guid: 15bec77e0812cee449b98fc38888d946, type: 2} m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 7693b3d66bba3764f860859b8edfd063, type: 3} --- !u!4 &4489944967951149894 stripped Transform: diff --git a/Assets/Prefabs/Interactive/Tree.prefab b/Assets/Prefabs/Interactive/Tree.prefab index 1801ddf..56dfeeb 100644 --- a/Assets/Prefabs/Interactive/Tree.prefab +++ b/Assets/Prefabs/Interactive/Tree.prefab @@ -318,8 +318,8 @@ MonoBehaviour: - rid: 3472946477026246698 - rid: 3472946478959820800 - rid: 3472946478959820801 - - rid: 3472946478959820802 - - rid: 8975624654701461546 + - rid: 464123148303597576 + - rid: 464123148303597577 scenePrefabInstanceUUID: coherenceUUID: assetVersion: 20 @@ -334,6 +334,93 @@ MonoBehaviour: RefIds: - rid: -2 type: {class: , ns: , asm: } + - rid: 464123148303597576 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + descriptor: + rid: 464123148303597578 + routing: 2 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: d1abac12daa945619882e28463e3e3ca + archetypeData: + type: 0 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: [] + unityComponent: {fileID: 1406947345458511524} + coherenceSync: {fileID: 5550105560061701257} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597577 + type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + descriptor: + rid: 464123148303597579 + routing: 2 + syncMode: 0 + isPredicted: 0 + predictionMode: 0 + guid: 4bd44a0c7fb3400db0d9719709cd4404 + archetypeData: + type: 0 + minRange: 0 + maxRange: 0 + sampleRate: 20 + floatCompression: 0 + fields: [] + unityComponent: {fileID: 1406947345458511524} + coherenceSync: {fileID: 5550105560061701257} + _interpolationSettings: {fileID: 0} + - rid: 464123148303597578 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: PlayChopEffect + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: [] + ownerType: + assemblyQualifiedName: ChoppableTree, Assembly-CSharp, Version=0.0.0.0, + Culture=neutral, PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 2 + - rid: 464123148303597579 + type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} + data: + name: ChangeState + monoAssemblyType: + required: 1 + enforcesLODingWhenFieldsOverriden: 0 + valueSyncCallbackName: + memberType: 8 + parameterAssemblyTypes: + - System.Boolean, mscorlib + ownerType: + assemblyQualifiedName: ChoppableTree, Assembly-CSharp, Version=0.0.0.0, + Culture=neutral, PublicKeyToken=null + defaultSyncMode: 0 + CustomData: + rid: -2 + bindingType: + assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, + Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + oldName: + oldParameterAssemblyTypes: [] + methodCompatible: 1 + defaultRouting: 2 - rid: 3472946477026246698 type: {class: PositionBinding, ns: Coherence.Toolkit.Bindings.TransformBindings, asm: Coherence.Toolkit} @@ -381,6 +468,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3472946477026246708 type: {class: DisableBehaviourComponentAction, ns: Coherence.Toolkit.ComponentActions, asm: Coherence.Toolkit} @@ -431,27 +520,6 @@ MonoBehaviour: coherenceSync: {fileID: 0} _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, type: 2} - - rid: 3472946478959820802 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - descriptor: - rid: 3472946478959820805 - routing: 2 - syncMode: 0 - isPredicted: 0 - predictionMode: 0 - guid: 64674b8d4999426fb995493ab95cb6d7 - archetypeData: - type: 0 - minRange: 0 - maxRange: 0 - sampleRate: 20 - floatCompression: 0 - fields: [] - unityComponent: {fileID: 1406947345458511524} - coherenceSync: {fileID: 0} - _interpolationSettings: {fileID: 11400000, guid: ae4419d1d9a8643709bf5f6b90c584a5, - type: 2} - rid: 3472946478959820803 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -473,6 +541,8 @@ MonoBehaviour: Coherence.Toolkit, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 - rid: 3472946478959820804 type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} data: @@ -494,69 +564,8 @@ MonoBehaviour: Version=0.0.0.0, Culture=neutral, PublicKeyToken=null oldName: oldParameterAssemblyTypes: [] - - rid: 3472946478959820805 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: ChangeState - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: - - System.Boolean, mscorlib - ownerType: - assemblyQualifiedName: ChoppableTree, Assembly-CSharp, Version=0.0.0.0, - Culture=neutral, PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] - - rid: 8975624654701461546 - type: {class: CommandBinding, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - descriptor: - rid: 8975624654701461547 - routing: 2 - syncMode: 0 - isPredicted: 0 - predictionMode: 0 - guid: 195171a3094b49ce9dc624b38e8a6b09 - archetypeData: - type: 0 - minRange: 0 - maxRange: 0 - sampleRate: 20 - floatCompression: 0 - fields: [] - unityComponent: {fileID: 1406947345458511524} - coherenceSync: {fileID: 0} - _interpolationSettings: {fileID: 0} - - rid: 8975624654701461547 - type: {class: Descriptor, ns: Coherence.Toolkit.Bindings, asm: Coherence.Toolkit} - data: - name: PlayChopEffect - monoAssemblyType: - required: 1 - enforcesLODingWhenFieldsOverriden: 0 - valueSyncCallbackName: - memberType: 8 - parameterAssemblyTypes: [] - ownerType: - assemblyQualifiedName: ChoppableTree, Assembly-CSharp, Version=0.0.0.0, - Culture=neutral, PublicKeyToken=null - defaultSyncMode: 0 - CustomData: - rid: -2 - bindingType: - assemblyQualifiedName: Coherence.Toolkit.Bindings.CommandBinding, Coherence.Toolkit, - Version=0.0.0.0, Culture=neutral, PublicKeyToken=null - oldName: - oldParameterAssemblyTypes: [] + methodCompatible: 0 + defaultRouting: 0 --- !u!1 &3483726896467991151 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Samples/coherence/2.1.0.meta b/Assets/Samples/coherence/2.2.0-pre.3.meta similarity index 77% rename from Assets/Samples/coherence/2.1.0.meta rename to Assets/Samples/coherence/2.2.0-pre.3.meta index e718f32..06f30de 100644 --- a/Assets/Samples/coherence/2.1.0.meta +++ b/Assets/Samples/coherence/2.2.0-pre.3.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8024598c962614560bcfa615a1b5af69 +guid: 0af7e2a1bade649a1b0d6694a28cdd0b folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI.meta b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI.meta similarity index 77% rename from Assets/Samples/coherence/2.1.0/Worlds UI.meta rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI.meta index 1b22398..6391424 100644 --- a/Assets/Samples/coherence/2.1.0/Worlds UI.meta +++ b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 0b4eed8efecb44f97847b5619300a1c8 +guid: dcedf31b7304f483a9c894f366e1d60e folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/ConnectDialogWorldView.cs b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/ConnectDialogWorldView.cs similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/ConnectDialogWorldView.cs rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/ConnectDialogWorldView.cs diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/ConnectDialogWorldView.cs.meta b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/ConnectDialogWorldView.cs.meta similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/ConnectDialogWorldView.cs.meta rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/ConnectDialogWorldView.cs.meta diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/SpinnerAnimWorlds.anim b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/SpinnerAnimWorlds.anim similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/SpinnerAnimWorlds.anim rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/SpinnerAnimWorlds.anim diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/SpinnerAnimWorlds.anim.meta b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/SpinnerAnimWorlds.anim.meta similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/SpinnerAnimWorlds.anim.meta rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/SpinnerAnimWorlds.anim.meta diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/SpinnerAnimWorlds.controller b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/SpinnerAnimWorlds.controller similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/SpinnerAnimWorlds.controller rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/SpinnerAnimWorlds.controller diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/SpinnerAnimWorlds.controller.meta b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/SpinnerAnimWorlds.controller.meta similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/SpinnerAnimWorlds.controller.meta rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/SpinnerAnimWorlds.controller.meta diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/World Connection Dialog.prefab b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/World Connection Dialog.prefab similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/World Connection Dialog.prefab rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/World Connection Dialog.prefab diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/World Connection Dialog.prefab.meta b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/World Connection Dialog.prefab.meta similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/World Connection Dialog.prefab.meta rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/World Connection Dialog.prefab.meta diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/WorldDialogUI.cs b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldDialogUI.cs similarity index 99% rename from Assets/Samples/coherence/2.1.0/Worlds UI/WorldDialogUI.cs rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldDialogUI.cs index e959e6c..70b20c3 100644 --- a/Assets/Samples/coherence/2.1.0/Worlds UI/WorldDialogUI.cs +++ b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldDialogUI.cs @@ -57,10 +57,10 @@ public class WorldDialogUI : MonoBehaviour #region Unity Events private void OnEnable() { - var eventSystems = FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None); - if (eventSystems.Length == 0) + var eventSystem = EventSystem.current; + if (!eventSystem) { - var eventSystem = new GameObject("EventSystem").AddComponent(); + eventSystem = new GameObject("EventSystem").AddComponent(); eventSystem.gameObject.AddComponent(); Debug.LogWarning("EventSystem not found on the scene. Adding one now.\nConsider creating an EventSystem yourself to forward UI input.", eventSystem); } diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/WorldDialogUI.cs.meta b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldDialogUI.cs.meta similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/WorldDialogUI.cs.meta rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldDialogUI.cs.meta diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/Worlds UI.unity b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/Worlds UI.unity similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/Worlds UI.unity rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/Worlds UI.unity diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/Worlds UI.unity.meta b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/Worlds UI.unity.meta similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/Worlds UI.unity.meta rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/Worlds UI.unity.meta diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/WorldsInputFieldTextFontSetter.cs b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldsInputFieldTextFontSetter.cs similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/WorldsInputFieldTextFontSetter.cs rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldsInputFieldTextFontSetter.cs diff --git a/Assets/Samples/coherence/2.1.0/Worlds UI/WorldsInputFieldTextFontSetter.cs.meta b/Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldsInputFieldTextFontSetter.cs.meta similarity index 100% rename from Assets/Samples/coherence/2.1.0/Worlds UI/WorldsInputFieldTextFontSetter.cs.meta rename to Assets/Samples/coherence/2.2.0-pre.3/Worlds UI/WorldsInputFieldTextFontSetter.cs.meta diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 7d4e7fa..c2db96b 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -14495,6 +14495,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 784c870e57f1c4b499b118f4e7cdfa81, type: 3} m_Name: m_EditorClassIdentifier: + helpExpanded: 0 extent: 0 buffer: 0 extentUpdateThreshold: 0.01 diff --git a/Assets/Scripts/UI/PlayerNameUI.cs b/Assets/Scripts/UI/PlayerNameUI.cs index 4d406b7..c18d7f0 100644 --- a/Assets/Scripts/UI/PlayerNameUI.cs +++ b/Assets/Scripts/UI/PlayerNameUI.cs @@ -1,15 +1,31 @@ +using Coherence.Toolkit; using TMPro; using UnityEngine; /// -/// Retrieves the player name from a static field on the script. +/// Retrieves the player name from a static field on the script, +/// and writes it into the networked so it syncs to other clients. +/// Only the locally-owned player should do this: remote players' is +/// driven by the incoming coherence sync value and must not be overwritten here. /// public class PlayerNameUI : MonoBehaviour { public TextMeshProUGUI textField; + private CoherenceSync _coherenceSync; + + private void Awake() + { + _coherenceSync = GetComponentInParent(); + } + private void Start() { + if (_coherenceSync != null && !_coherenceSync.HasStateAuthority) + { + return; + } + textField.text = PlayerNameFetcher.PLAYER_NAME; } } \ No newline at end of file diff --git a/Assets/coherence/CoherenceSyncConfigRegistry.asset b/Assets/coherence/CoherenceSyncConfigRegistry.asset index 3042986..29175b0 100644 --- a/Assets/coherence/CoherenceSyncConfigRegistry.asset +++ b/Assets/coherence/CoherenceSyncConfigRegistry.asset @@ -12,25 +12,4 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: fe206545a28be2142b8fa937387721e8, type: 3} m_Name: CoherenceSyncConfigRegistry m_EditorClassIdentifier: - storedConfigs: - - {fileID: 11400000, guid: 73960bab4eb0d4bf1ad6ad30e70c6b9d, type: 2} - - {fileID: 11400000, guid: 2cdaad91620c4439b92884967fde9f30, type: 2} - - {fileID: 11400000, guid: a9e2d0573cbae49d6be36bfb298d9958, type: 2} - - {fileID: 11400000, guid: 64dd145f654aa43de8f68215f7e339e5, type: 2} - - {fileID: 11400000, guid: e1cd0e32baf734c91a159ca7586cfaeb, type: 2} - - {fileID: 11400000, guid: 43e433ff3e74248ad95708db83f6a76f, type: 2} - - {fileID: 11400000, guid: 5699544c20e924fcb9f4a42cd6736e01, type: 2} - - {fileID: 11400000, guid: 441f392d9dc824482b4e13802385bfeb, type: 2} - - {fileID: 11400000, guid: 6a6db1bdba4ab487284b5319ff01dbc5, type: 2} - - {fileID: 11400000, guid: ca3e3f28028dc42ef9832ab73f60a906, type: 2} - - {fileID: 11400000, guid: 597f1a34caf1c47ac8f3effc95d11e6a, type: 2} - - {fileID: 11400000, guid: 4c3a77d27d3c1475391d6532d5882c37, type: 2} - - {fileID: 11400000, guid: ec6c7e2facb094da9afdf15dbe59aa68, type: 2} - - {fileID: 11400000, guid: 9e1456362c4b145bd91682fb336376a6, type: 2} - - {fileID: 11400000, guid: 1ce4da03b47594a0d8b365b6ddbefce9, type: 2} - - {fileID: 11400000, guid: 172c22d80c3634c1aa39fc596ce79d1c, type: 2} - - {fileID: 11400000, guid: 3cffc511327974263ab6e7b49d868f28, type: 2} - - {fileID: 11400000, guid: dbb25900ae86d4a2f844a0eaf3392530, type: 2} - - {fileID: 11400000, guid: af3c62f56471441d0a35ead5219bd1f2, type: 2} - - {fileID: 11400000, guid: 991950f3f62bc4395a755965b7bdf7b7, type: 2} - - {fileID: 11400000, guid: 091e0c25280f64294b00dd10422cc76a, type: 2} + storedConfigs: [] diff --git a/Assets/coherence/CoherenceSyncConfigs/9-Sliced.asset b/Assets/coherence/CoherenceSyncConfigs/9-Sliced.asset new file mode 100644 index 0000000..6be32c3 --- /dev/null +++ b/Assets/coherence/CoherenceSyncConfigs/9-Sliced.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 579f4a509fd2f994fa391c0c78ea3f11, type: 3} + m_Name: 9-Sliced + m_EditorClassIdentifier: + id: be191a041747c4eaeafee21d0cdcc2f9 + selfId: 66cbae6d1eebc4ed19aafb3a59b597c7 + editorTarget: {fileID: 792170185805854058, guid: be191a041747c4eaeafee21d0cdcc2f9, + type: 3} + includeInSchema: 1 + objectProvider: + rid: 464123148303597611 + objectInstantiator: + rid: 464123148303597612 + references: + version: 2 + RefIds: + - rid: 464123148303597611 + type: {class: DirectReferenceProvider, ns: Coherence.Toolkit, asm: Coherence.Toolkit} + data: + prefab: {fileID: 792170185805854058, guid: be191a041747c4eaeafee21d0cdcc2f9, + type: 3} + - rid: 464123148303597612 + type: {class: DefaultInstantiator, ns: Coherence.Toolkit, asm: Coherence.Toolkit} + data: diff --git a/Assets/coherence/Temp.meta b/Assets/coherence/CoherenceSyncConfigs/9-Sliced.asset.meta similarity index 52% rename from Assets/coherence/Temp.meta rename to Assets/coherence/CoherenceSyncConfigs/9-Sliced.asset.meta index 81651ff..2acbf9a 100644 --- a/Assets/coherence/Temp.meta +++ b/Assets/coherence/CoherenceSyncConfigs/9-Sliced.asset.meta @@ -1,8 +1,8 @@ fileFormatVersion: 2 -guid: 88cd89aafd6f34978a23b3448d2ea7cd -folderAsset: yes -DefaultImporter: +guid: 66cbae6d1eebc4ed19aafb3a59b597c7 +NativeFormatImporter: externalObjects: {} + mainObjectFileID: 11400000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/coherence/Gathered.schema b/Assets/coherence/Gathered.schema index 770827c..4e5b279 100644 --- a/Assets/coherence/Gathered.schema +++ b/Assets/coherence/Gathered.schema @@ -1,181 +1,178 @@ component _0109999de4f6d45bb8c13493b504dee7_1143969198414876421 [id "18"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] component _0109999de4f6d45bb8c13493b504dee7_616379459864002610 [id "19"] - isBeingCarried Bool [bits "1"] + isBeingCarried Bool component _0109999de4f6d45bb8c13493b504dee7_6732985197249073484 [id "20"] - objectAnchorSync Entity [bits "20", client-type "Coherence.Toolkit.CoherenceSync"] + objectAnchorSync Entity component _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932 [id "21"] - objectAnchorSync Entity [bits "20", client-type "Coherence.Toolkit.CoherenceSync"] + objectAnchorSync Entity component _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794 [id "22"] - isBeingCarried Bool [bits "1"] + isBeingCarried Bool component _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437 [id "23"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] component _3889a458e94666d4784df30d8dd06d7d_6540142254599110064 [id "24"] - activeFireEffect Int [bits "4", range-min "-1", range-max "10"] - fireTimer Float [bits "17", range-min "-5", range-max "100", compression "FixedPoint", precision "0.001"] - bigFireTimer Float [bits "17", range-min "-5", range-max "100", compression "FixedPoint", precision "0.001"] + activeFireEffect Int [range-min "-1", range-max "10"] + fireTimer Float [compression "FixedPoint", range-min "-5", range-max "100", precision "0.001", bits "17"] + bigFireTimer Float [compression "FixedPoint", range-min "-5", range-max "100", precision "0.001", bits "17"] component _3d92447627afdfc419ceeb6b26251a87_1406947345458511524 [id "25"] - energy Int [bits "32", range-min "-2147483648", range-max "2147483647"] + energy Int [range-min "-2147483648", range-max "2147483647"] component _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777 [id "26"] - objectAnchorSync Entity [bits "20", client-type "Coherence.Toolkit.CoherenceSync"] + objectAnchorSync Entity component _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519 [id "27"] - isBeingCarried Bool [bits "1"] + isBeingCarried Bool component _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368 [id "28"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] component _7455a9685d292b843b28465a4faffd05_4295192434143702777 [id "29"] - enabled Bool [bits "1"] + enabled Bool component _7455a9685d292b843b28465a4faffd05_486810980 [id "30"] - isBusy Bool [bits "1"] + isBusy Bool component _7eef8177eb732314fb850470094a70c9_468635231 [id "31"] - enabled Bool [bits "1"] + enabled Bool component _7eef8177eb732314fb850470094a70c9_468635232 [id "32"] - isBusy Bool [bits "1"] + isBusy Bool component _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761 [id "33"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] component _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198 [id "34"] - isBeingCarried Bool [bits "1"] + isBeingCarried Bool component _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224 [id "35"] - objectAnchorSync Entity [bits "20", client-type "Coherence.Toolkit.CoherenceSync"] + objectAnchorSync Entity component _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932 [id "36"] - objectAnchorSync Entity [bits "20", client-type "Coherence.Toolkit.CoherenceSync"] + objectAnchorSync Entity component _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794 [id "37"] - isBeingCarried Bool [bits "1"] + isBeingCarried Bool component _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437 [id "38"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] component _91ccee2338d92624a8021fda1c91e47c_1987083777327440787 [id "39"] - enabled Bool [bits "1"] + enabled Bool component _91ccee2338d92624a8021fda1c91e47c_4713251173614319484 [id "40"] - isBusy Bool [bits "1"] + isBusy Bool component _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970 [id "41"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] component _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429 [id "42"] - isBeingCarried Bool [bits "1"] + isBeingCarried Bool component _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174 [id "43"] - IsFlailing Bool [bits "1"] - IsCarrying Bool [bits "1"] + IsFlailing Bool + IsCarrying Bool component _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967 [id "44"] - isBusy Bool [bits "1"] + isBusy Bool -component _b7bb309cd508641d3887ec91696ac623_1406947345458511524 [id "45"] - energy Int [bits "32", range-min "-2147483648", range-max "2147483647"] +component _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932 [id "45"] + objectAnchorSync Entity -component _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932 [id "46"] - objectAnchorSync Entity [bits "20", client-type "Coherence.Toolkit.CoherenceSync"] +component _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794 [id "46"] + isBeingCarried Bool -component _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794 [id "47"] - isBeingCarried Bool [bits "1"] +component _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437 [id "47"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] -component _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437 [id "48"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] - -component _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 [id "49"] +component _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 [id "48"] MoveSpeed Float [sim-frames "true", compression "None"] - Grounded Bool [bits "1"] - CarryingBig Bool [bits "1"] - IsChopping Bool [bits "1"] - IsSitting Bool [bits "1"] + Grounded Bool + CarryingBig Bool + IsChopping Bool + IsSitting Bool -component _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 [id "50"] - text String [bits "6"] +component _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 [id "49"] + text String -component _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 [id "51"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] +component _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 [id "50"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] -component _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 [id "52"] - position Vector3 [bits "17", range-min "-100", range-max "600", compression "FixedPoint", precision "0.01", sim-frames "true"] +component _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 [id "51"] + position Vector3 [sim-frames "true", compression "FixedPoint", range-min "-100", range-max "600", precision "0.01", bits "17"] -component _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 [id "53"] - currentBackpack Int [bits "3", range-min "-2", range-max "3"] - currentSkinTone Int [bits "5", range-min "-2", range-max "20"] - currentClothes Int [bits "32", range-min "-2147483648", range-max "2147483647"] - currentBody Int [bits "32", range-min "-2147483648", range-max "2147483647"] - currentHairstyle Int [bits "32", range-min "-2147483648", range-max "2147483647"] +component _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 [id "52"] + currentBackpack Int [range-min "-2", range-max "3"] + currentSkinTone Int [range-min "-2", range-max "20"] + currentClothes Int [range-min "-2147483648", range-max "2147483647"] + currentBody Int [range-min "-2147483648", range-max "2147483647"] + currentHairstyle Int [range-min "-2147483648", range-max "2147483647"] -component _e74854605b68b435280bc0ac73fef6c1_6806255523165594879 [id "54"] - objectAnchorSync Entity [bits "20", client-type "Coherence.Toolkit.CoherenceSync"] +component _e74854605b68b435280bc0ac73fef6c1_6806255523165594879 [id "53"] + objectAnchorSync Entity -component _e74854605b68b435280bc0ac73fef6c1_831233887725647233 [id "55"] - isBeingCarried Bool [bits "1"] +component _e74854605b68b435280bc0ac73fef6c1_831233887725647233 [id "54"] + isBeingCarried Bool -component _e74854605b68b435280bc0ac73fef6c1_929081723536030390 [id "56"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] +component _e74854605b68b435280bc0ac73fef6c1_929081723536030390 [id "55"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] -component _ec47cd7906b7749f4853524abf78e799_432812263773753349 [id "57"] - holdingForUUID String [bits "6"] - isObjectPresent Bool [bits "1"] - syncConfigId String [bits "6"] +component _ec47cd7906b7749f4853524abf78e799_432812263773753349 [id "56"] + holdingForUUID String + isObjectPresent Bool + syncConfigId String -component _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761 [id "58"] - path String [bits "6"] - pathDirtyCounter Int [bits "32", range-min "-2147483648", range-max "2147483647"] +component _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761 [id "57"] + path String + pathDirtyCounter Int [range-min "-2147483648", range-max "2147483647"] -component _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198 [id "59"] - isBeingCarried Bool [bits "1"] +component _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198 [id "58"] + isBeingCarried Bool -component _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224 [id "60"] - objectAnchorSync Entity [bits "20", client-type "Coherence.Toolkit.CoherenceSync"] +component _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224 [id "59"] + objectAnchorSync Entity -command _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286 [id "6", routing "All"] +command _0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031 [id "6", routing "All"] -command _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286 [id "7", routing "All"] +command _0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031 [id "7", routing "All"] -command _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38 [id "8", routing "All"] - oldEffectID Int - newEffectID Int +command _3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2 [id "8", routing "All"] + oldEffectID Int [range-min "-2147483648", range-max "2147483647"] + newEffectID Int [range-min "-2147483648", range-max "2147483647"] -command _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db [id "9", routing "All"] +command _3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf [id "9", routing "All"] -command _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391 [id "10", routing "All"] - oldEffectID Int - newEffectID Int +command _3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b [id "10", routing "All"] + oldEffectID Int [range-min "-2147483648", range-max "2147483647"] + newEffectID Int [range-min "-2147483648", range-max "2147483647"] syncConfigID String command _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4 [id "11", routing "StateAuthorityOnly"] syncConfigID String -command _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09 [id "12", routing "Other"] - -command _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7 [id "13", routing "Other"] +command _3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404 [id "12", routing "Other"] toUp Bool +command _3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca [id "13", routing "Other"] + command _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6 [id "14", routing "StateAuthorityOnly"] -command _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286 [id "15", routing "All"] +command _451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031 [id "15", routing "All"] command _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff [id "16", routing "StateAuthorityOnly"] newBusyState Bool @@ -183,96 +180,87 @@ command _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff [id " command _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187 [id "17", routing "StateAuthorityOnly"] newBusyState Bool -command _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286 [id "18", routing "All"] +command _89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031 [id "18", routing "All"] -command _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286 [id "19", routing "All"] +command _8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031 [id "19", routing "All"] command _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9 [id "20", routing "StateAuthorityOnly"] newBusyState Bool -command _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb [id "21", routing "All"] - -command _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 [id "22", routing "StateAuthorityOnly"] +command _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 [id "21", routing "StateAuthorityOnly"] newBusyState Bool -command _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8 [id "23", routing "All"] +command _a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199 [id "22", routing "All"] -command _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2 [id "24", routing "All"] +command _a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726 [id "23", routing "All"] -command _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6 [id "25", routing "All"] - -command _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09 [id "26", routing "Other"] - -command _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7 [id "27", routing "Other"] - toUp Bool +command _a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e [id "24", routing "All"] -command _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6 [id "28", routing "StateAuthorityOnly"] +command _a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8 [id "25", routing "All"] -command _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286 [id "29", routing "All"] +command _c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031 [id "26", routing "All"] -command _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 [id "30", routing "All"] +command _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 [id "27", routing "All"] -command _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 [id "31", routing "All"] +command _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 [id "28", routing "All"] -command _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 [id "32", routing "All"] +command _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 [id "29", routing "All"] name String -command _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 [id "33", routing "Other"] +command _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 [id "30", routing "Other"] -command _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 [id "34", routing "Other"] +command _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 [id "31", routing "Other"] -command _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 [id "35", routing "All"] +command _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 [id "32", routing "All"] -command _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d [id "36", routing "All"] +command _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d [id "33", routing "All"] -command _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c [id "37", routing "All"] +command _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c [id "34", routing "All"] -command _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe [id "38", routing "Other"] +command _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe [id "35", routing "Other"] encodedMessage Bytes -command _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286 [id "39", routing "All"] +command _e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031 [id "36", routing "All"] -command _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d [id "40", routing "StateAuthorityOnly"] +command _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d [id "37", routing "StateAuthorityOnly"] newState Bool -command _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286 [id "41", routing "All"] +command _f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031 [id "38", routing "All"] archetype _3889a458e94666d4784df30d8dd06d7d [id "0"] lod 0 - WorldPosition [id "61", base-id "0"] + WorldPosition [id "60", base-id "0"] archetype_field value [sim-frames "true", compression "None"] - _3889a458e94666d4784df30d8dd06d7d_6540142254599110064 [id "62", base-id "24"] - archetype_field activeFireEffect [bits "4", range-min "-1", range-max "10"] - archetype_field fireTimer [bits "17", range-min "-5", range-max "100", compression "FixedPoint", precision "0.001"] - archetype_field bigFireTimer [bits "17", range-min "-5", range-max "100", compression "FixedPoint", precision "0.001"] + _3889a458e94666d4784df30d8dd06d7d_6540142254599110064 [id "61", base-id "24"] + archetype_field activeFireEffect [range-min "-1", range-max "10"] + archetype_field fireTimer [compression "FixedPoint", range-min "-5", range-max "100", precision "0.001", bits "17"] + archetype_field bigFireTimer [compression "FixedPoint", range-min "-5", range-max "100", precision "0.001", bits "17"] archetype _cd9bcc1feead9419fac0c5981ce85c23 [id "1"] lod 0 - WorldPosition [id "63", base-id "0"] - archetype_field value [bits "17", range-min "-100", range-max "600", compression "FixedPoint", precision "0.01", sim-frames "true"] - WorldOrientation [id "64", base-id "1"] - archetype_field value [bits "12", sim-frames "true"] - GenericScale [id "65", base-id "17"] + WorldPosition [id "62", base-id "0"] + archetype_field value [sim-frames "true", compression "FixedPoint", range-min "-100", range-max "600", precision "0.01", bits "17"] + WorldOrientation [id "63", base-id "1"] + archetype_field value [sim-frames "true", bits "12"] + GenericScale [id "64", base-id "17"] archetype_field value [sim-frames "true", compression "None"] - _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 [id "66", base-id "53"] - archetype_field currentBackpack [bits "3", range-min "-2", range-max "3"] - archetype_field currentSkinTone [bits "5", range-min "-2", range-max "20"] - archetype_field currentClothes [bits "32", range-min "-2147483648", range-max "2147483647"] - archetype_field currentBody [bits "32", range-min "-2147483648", range-max "2147483647"] - archetype_field currentHairstyle [bits "32", range-min "-2147483648", range-max "2147483647"] - _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 [id "67", base-id "50"] - archetype_field text [bits "6"] - _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 [id "68", base-id "52"] - archetype_field position [bits "17", range-min "-100", range-max "600", compression "FixedPoint", precision "0.01", sim-frames "true"] - _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 [id "69", base-id "49"] + _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 [id "65", base-id "52"] + archetype_field currentBackpack [range-min "-2", range-max "3"] + archetype_field currentSkinTone [range-min "-2", range-max "20"] + archetype_field currentClothes [range-min "-2147483648", range-max "2147483647"] + archetype_field currentBody [range-min "-2147483648", range-max "2147483647"] + archetype_field currentHairstyle [range-min "-2147483648", range-max "2147483647"] + _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 [id "66", base-id "49"] + archetype_field text + _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 [id "67", base-id "51"] + archetype_field position [sim-frames "true", compression "FixedPoint", range-min "-100", range-max "600", precision "0.01", bits "17"] + _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 [id "68", base-id "48"] archetype_field MoveSpeed [sim-frames "true", compression "None"] - archetype_field Grounded [bits "1"] - archetype_field CarryingBig [bits "1"] - archetype_field IsChopping [bits "1"] - archetype_field IsSitting [bits "1"] - _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 [id "70", base-id "51"] - archetype_field path [bits "6"] - archetype_field pathDirtyCounter [bits "32", range-min "-2147483648", range-max "2147483647"] - -input _b7bb309cd508641d3887ec91696ac623 [id "0"] + archetype_field Grounded + archetype_field CarryingBig + archetype_field IsChopping + archetype_field IsSitting + _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 [id "69", base-id "50"] + archetype_field path + archetype_field pathDirtyCounter [range-min "-2147483648", range-max "2147483647"] diff --git a/Assets/coherence/RuntimeSettings.asset b/Assets/coherence/RuntimeSettings.asset index 73d2bd3..1a27aeb 100644 --- a/Assets/coherence/RuntimeSettings.asset +++ b/Assets/coherence/RuntimeSettings.asset @@ -13,22 +13,22 @@ MonoBehaviour: m_Name: RuntimeSettings m_EditorClassIdentifier: logSettings: - EditorLogLevel: 2 - LogLevel: 2 + EditorLogLevel: 1 + LogLevel: 1 FilterMode: 0 LogStackTrace: 1 AddTimestamp: 1 Watermark: (coherence) - AddSourceType: 0 + AddSourceType: 1 SourceFilters: - LogToFile: 0 + LogToFile: 1 LogFilePath: Logs/player_logs.txt MigratedToSerializedObject: 1 - FileLogLevel: 1 - schemaID: 2bac603d48769f76c1269aff72746aabbbe980c3 + FileLogLevel: 0 + schemaID: d78538fde15005c2eb1b7f4538a3bdb028668df7 versionInfo: {fileID: 11400000, guid: 2191b6f902c97477baa32a7919010503, type: 2} - runtimeKey: 3f2154ade8334278aac056f46461c185 - simulatorSlug: apr 23 1.6.1_2 v1 + runtimeKey: dfd8f781fadc4c13bdbe782e793e52f1 + simulatorSlug: simulator-development localHost: 127.0.0.1 localWorldUDPPort: 32001 localWorldWebPort: 32002 @@ -42,8 +42,8 @@ MonoBehaviour: recvFrequency: 60 useDebugStreams: 0 organizationID: - projectID: cgqlbqlbo1hvlpolchog - projectName: Campfire tutorial + projectID: cke7octklouml7ml5lrg + projectName: campfire organizationName: transportType: 0 advancedSettings: diff --git a/Assets/coherence/SimulatorSlugs.asset b/Assets/coherence/SimulatorSlugs.asset new file mode 100644 index 0000000..0707da1 --- /dev/null +++ b/Assets/coherence/SimulatorSlugs.asset @@ -0,0 +1,24 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4c622e15937249e0a5a19bcd35a12c9c, type: 3} + m_Name: SimulatorSlugs + m_EditorClassIdentifier: + projectSlugs: + - ProjectId: cgqlbqlbo1hvlpolchog + UseSimulator: 1 + SimulatorSlug: apr 23 1.6.1_2 v1 + - ProjectId: cke7octklouml7ml5lrg + UseSimulator: 1 + SimulatorSlug: simulator-development + - ProjectId: d1sh0s9qpo2572df6bv0 + UseSimulator: 1 + SimulatorSlug: simulator-release diff --git a/Assets/coherence/Temp/link.xml.meta b/Assets/coherence/SimulatorSlugs.asset.meta similarity index 52% rename from Assets/coherence/Temp/link.xml.meta rename to Assets/coherence/SimulatorSlugs.asset.meta index ea2e97b..7dcdc9e 100644 --- a/Assets/coherence/Temp/link.xml.meta +++ b/Assets/coherence/SimulatorSlugs.asset.meta @@ -1,7 +1,8 @@ fileFormatVersion: 2 -guid: cf17aba3807e34293b1b64e121c04d87 -TextScriptImporter: +guid: 3680f4ef58ca745cbaf3ef70bd84729d +NativeFormatImporter: externalObjects: {} + mainObjectFileID: 11400000 userData: assetBundleName: assetBundleVariant: diff --git a/Assets/coherence/Temp/link.xml b/Assets/coherence/Temp/link.xml deleted file mode 100644 index 715b0df..0000000 --- a/Assets/coherence/Temp/link.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/Assets/coherence/baked/Archetypes.cs b/Assets/coherence/baked/Archetypes.cs deleted file mode 100644 index 9e7f570..0000000 --- a/Assets/coherence/baked/Archetypes.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using System.Collections.Generic; - using Coherence.ProtocolDef; - - public static class Archetypes - { - public const int _3889a458e94666d4784df30d8dd06d7dIndex = 0; - public const int _cd9bcc1feead9419fac0c5981ce85c23Index = 1; - - public static readonly EntityArchetype[] Definitions = - { - new EntityArchetype() // _3889a458e94666d4784df30d8dd06d7d - { - LODs = new EntityArchetypeLOD[] - { - new EntityArchetypeLOD - { - Level = 0, - Distance = 0f, - ComponentReplacement = new Dictionary - { - { 0, Definition.InternalArchetype_3889a458e94666d4784df30d8dd06d7d_WorldPosition_LOD0 }, - { 24, Definition.InternalArchetype_3889a458e94666d4784df30d8dd06d7d__3889a458e94666d4784df30d8dd06d7d_6540142254599110064_LOD0 }, - }, - ComponentsExcluded = new uint[] - { - }, - }, - }, - }, - new EntityArchetype() // _cd9bcc1feead9419fac0c5981ce85c23 - { - LODs = new EntityArchetypeLOD[] - { - new EntityArchetypeLOD - { - Level = 0, - Distance = 0f, - ComponentReplacement = new Dictionary - { - { 0, Definition.InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldPosition_LOD0 }, - { 1, Definition.InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldOrientation_LOD0 }, - { 17, Definition.InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_GenericScale_LOD0 }, - { 53, Definition.InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618_LOD0 }, - { 50, Definition.InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181_LOD0 }, - { 52, Definition.InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408_LOD0 }, - { 49, Definition.InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_176131441763086322_LOD0 }, - { 51, Definition.InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216_LOD0 }, - }, - ComponentsExcluded = new uint[] - { - }, - }, - }, - }, - }; - - public static Dictionary IndexForName = new Dictionary() - { - { "_3889a458e94666d4784df30d8dd06d7d", 0 }, - { "_cd9bcc1feead9419fac0c5981ce85c23", 1 }, - }; - } - -} diff --git a/Assets/coherence/baked/BakeInfo.cs b/Assets/coherence/baked/BakeInfo.cs new file mode 100644 index 0000000..209cf4c --- /dev/null +++ b/Assets/coherence/baked/BakeInfo.cs @@ -0,0 +1,22 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +namespace Coherence.Generated +{ + using UnityEngine; + using Coherence.Toolkit; + + [UnityEngine.Scripting.Preserve] + public class BakeInfo + { + [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] + static void OnRuntimeMethodLoad() + { + Impl.BakedDataSchemaID = "d78538fde15005c2eb1b7f4538a3bdb028668df7"; + } + } +} diff --git a/Assets/coherence/baked/Archetypes.cs.meta b/Assets/coherence/baked/BakeInfo.cs.meta similarity index 83% rename from Assets/coherence/baked/Archetypes.cs.meta rename to Assets/coherence/baked/BakeInfo.cs.meta index 7d5220c..9f96088 100644 --- a/Assets/coherence/baked/Archetypes.cs.meta +++ b/Assets/coherence/baked/BakeInfo.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9e083ae0911cb4385851ffa1659d0af7 +guid: f6b298164e3c645c4a166878821c93e3 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/coherence/baked/CoherenceSync_0109999de4f6d45bb8c13493b504dee7.cs b/Assets/coherence/baked/CoherenceSync_0109999de4f6d45bb8c13493b504dee7.cs index 10673d8..1c3b1eb 100644 --- a/Assets/coherence/baked/CoherenceSync_0109999de4f6d45bb8c13493b504dee7.cs +++ b/Assets/coherence/baked/CoherenceSync_0109999de4f6d45bb8c13493b504dee7.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0109999de4f6d45bb8c13493b504dee7_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0109999de4f6d45bb8c13493b504dee7_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0109999de4f6d45bb8c13493b504dee7_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0109999de4f6d45bb8c13493b504dee7_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_0109999de4f6d45bb8c13493b504dee7_1143969198414876421); - public override string CoherenceComponentName => "_0109999de4f6d45bb8c13493b504dee7_1143969198414876421"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 18; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_0109999de4f6d45bb8c13493b504dee7_1143969198414876421)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_0109999de4f6d45bb8c13493b504dee7_1143969198414876421)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_0109999de4f6d45bb8c13493b504dee7_1143969198414876421)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _0109999de4f6d45bb8c13493b504dee7_1143969198414876421(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0109999de4f6d45bb8c13493b504dee7_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_0109999de4f6d45bb8c13493b504dee7_1143969198414876421); - public override string CoherenceComponentName => "_0109999de4f6d45bb8c13493b504dee7_1143969198414876421"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 18; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_0109999de4f6d45bb8c13493b504dee7_1143969198414876421)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_0109999de4f6d45bb8c13493b504dee7_1143969198414876421)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_0109999de4f6d45bb8c13493b504dee7_1143969198414876421)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _0109999de4f6d45bb8c13493b504dee7_1143969198414876421(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0109999de4f6d45bb8c13493b504dee7_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_0109999de4f6d45bb8c13493b504dee7_616379459864002610); - public override string CoherenceComponentName => "_0109999de4f6d45bb8c13493b504dee7_616379459864002610"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 19; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_0109999de4f6d45bb8c13493b504dee7_616379459864002610)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_0109999de4f6d45bb8c13493b504dee7_616379459864002610)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_0109999de4f6d45bb8c13493b504dee7_616379459864002610)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _0109999de4f6d45bb8c13493b504dee7_616379459864002610(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0109999de4f6d45bb8c13493b504dee7_f2d1c22c30b044c8bb3dddc445e2c67a : ReferenceBinding @@ -340,46 +309,40 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::PositionedObject)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_0109999de4f6d45bb8c13493b504dee7_6732985197249073484); - public override string CoherenceComponentName => "_0109999de4f6d45bb8c13493b504dee7_6732985197249073484"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 20; + public override int FieldIndex => 0; public override Entity Value { - get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId(CastedUnityComponent.objectAnchorSync); } + get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId((ICoherenceSync)(CastedUnityComponent.objectAnchorSync)); } set { CastedUnityComponent.objectAnchorSync = coherenceSync.CoherenceBridge.EntityIdToCoherenceSync(value); } } - protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_0109999de4f6d45bb8c13493b504dee7_6732985197249073484)coherenceComponent).objectAnchorSync; + var field = coherenceComponent.GetField(0); + + var value = field.GetEntity(); - var simFrame = ((_0109999de4f6d45bb8c13493b504dee7_6732985197249073484)coherenceComponent).objectAnchorSyncSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_0109999de4f6d45bb8c13493b504dee7_6732985197249073484)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.objectAnchorSync = Value; + field.SetEntity(Value); } else { - update.objectAnchorSync = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetEntity(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.objectAnchorSyncSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _0109999de4f6d45bb8c13493b504dee7_6732985197249073484(); - } + } } [UnityEngine.Scripting.Preserve] @@ -388,7 +351,7 @@ public class CoherenceSync_0109999de4f6d45bb8c13493b504dee7 : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::PositionedObject _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + private global::PositionedObject _0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; private IClient client; @@ -409,7 +372,7 @@ public class CoherenceSync_0109999de4f6d45bb8c13493b504dee7 : CoherenceSyncBaked public CoherenceSync_0109999de4f6d45bb8c13493b504dee7() { - bakedCommandBindings.Add("ad9e635638034d88b0c6dcd8a9c83286", BakeCommandBinding__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286); + bakedCommandBindings.Add("1d97e8b68da1419a9d8bbf2023980031", BakeCommandBinding__0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031); } public override Binding BakeValueBinding(Binding valueBinding) @@ -430,87 +393,58 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + _0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + var _0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031_localTarget = (global::PositionedObject)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "PositionedObject.PlayReappearShaderEffect", "()", - SendCommand__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286, - ReceiveLocalCommand__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286, + SendCommand__0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031, + __args => ReceiveLocalCommand__0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031(__args, _0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031_localTarget), MessageTarget.All, - _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget, + _0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void SendCommand__0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs) { - var command = new _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(6, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs, global::PositionedObject target) { - var command = new _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286(command); + target.PlayReappearShaderEffect(); } - private void ReceiveCommand__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286(_0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286 command) + private void ReceiveCommand__0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031(CommandData command) { - var target = _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + var target = _0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; + + + command.Dispose(); + target.PlayReappearShaderEffect(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286 castedCommand: - ReceiveCommand__0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286(castedCommand); + case 6: + ReceiveCommand__0109999de4f6d45bb8c13493b504dee7_1d97e8b68da1419a9d8bbf2023980031(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_0109999de4f6d45bb8c13493b504dee7 Unhandled command: {command.GetType()}."); + $"CoherenceSync_0109999de4f6d45bb8c13493b504dee7 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -523,4 +457,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7.cs b/Assets/coherence/baked/CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7.cs index 652a76a..21dabae 100644 --- a/Assets/coherence/baked/CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7.cs +++ b/Assets/coherence/baked/CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0d27e1ad6d8e5ba4abca3216a92298f7_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0d27e1ad6d8e5ba4abca3216a92298f7_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0d27e1ad6d8e5ba4abca3216a92298f7_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0d27e1ad6d8e5ba4abca3216a92298f7_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437); - public override string CoherenceComponentName => "_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 23; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0d27e1ad6d8e5ba4abca3216a92298f7_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437); - public override string CoherenceComponentName => "_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 23; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0d27e1ad6d8e5ba4abca3216a92298f7_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794); - public override string CoherenceComponentName => "_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 22; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_0d27e1ad6d8e5ba4abca3216a92298f7_f2d1c22c30b044c8bb3dddc445e2c67a : ReferenceBinding @@ -340,46 +309,40 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::PositionedObject)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932); - public override string CoherenceComponentName => "_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 21; + public override int FieldIndex => 0; public override Entity Value { - get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId(CastedUnityComponent.objectAnchorSync); } + get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId((ICoherenceSync)(CastedUnityComponent.objectAnchorSync)); } set { CastedUnityComponent.objectAnchorSync = coherenceSync.CoherenceBridge.EntityIdToCoherenceSync(value); } } - protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932)coherenceComponent).objectAnchorSync; + var field = coherenceComponent.GetField(0); + + var value = field.GetEntity(); - var simFrame = ((_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932)coherenceComponent).objectAnchorSyncSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.objectAnchorSync = Value; + field.SetEntity(Value); } else { - update.objectAnchorSync = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetEntity(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.objectAnchorSyncSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932(); - } + } } [UnityEngine.Scripting.Preserve] @@ -388,7 +351,7 @@ public class CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7 : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::PositionedObject _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + private global::PositionedObject _0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; private IClient client; @@ -409,7 +372,7 @@ public class CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7 : CoherenceSyncBaked public CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7() { - bakedCommandBindings.Add("ad9e635638034d88b0c6dcd8a9c83286", BakeCommandBinding__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286); + bakedCommandBindings.Add("1d97e8b68da1419a9d8bbf2023980031", BakeCommandBinding__0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031); } public override Binding BakeValueBinding(Binding valueBinding) @@ -430,87 +393,58 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + _0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + var _0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031_localTarget = (global::PositionedObject)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "PositionedObject.PlayReappearShaderEffect", "()", - SendCommand__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286, - ReceiveLocalCommand__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286, + SendCommand__0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031, + __args => ReceiveLocalCommand__0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031(__args, _0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031_localTarget), MessageTarget.All, - _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget, + _0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void SendCommand__0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs) { - var command = new _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(7, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs, global::PositionedObject target) { - var command = new _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286(command); + target.PlayReappearShaderEffect(); } - private void ReceiveCommand__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286(_0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286 command) + private void ReceiveCommand__0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031(CommandData command) { - var target = _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + var target = _0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; + + + command.Dispose(); + target.PlayReappearShaderEffect(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286 castedCommand: - ReceiveCommand__0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286(castedCommand); + case 7: + ReceiveCommand__0d27e1ad6d8e5ba4abca3216a92298f7_1d97e8b68da1419a9d8bbf2023980031(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7 Unhandled command: {command.GetType()}."); + $"CoherenceSync_0d27e1ad6d8e5ba4abca3216a92298f7 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -523,4 +457,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_3889a458e94666d4784df30d8dd06d7d.cs b/Assets/coherence/baked/CoherenceSync_3889a458e94666d4784df30d8dd06d7d.cs index 80c7310..155d969 100644 --- a/Assets/coherence/baked/CoherenceSync_3889a458e94666d4784df30d8dd06d7d.cs +++ b/Assets/coherence/baked/CoherenceSync_3889a458e94666d4784df30d8dd06d7d.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_3889a458e94666d4784df30d8dd06d7d_05ba497e2c7b4bf99d98348ae880439b : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_3889a458e94666d4784df30d8dd06d7d_3d7b0de09c2348ebabdb8c4aa943ce3b : IntBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Campfire)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_3889a458e94666d4784df30d8dd06d7d_6540142254599110064); - public override string CoherenceComponentName => "_3889a458e94666d4784df30d8dd06d7d_6540142254599110064"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 24; + public override int FieldIndex => 0; public override System.Int32 Value { @@ -95,36 +91,31 @@ public override System.Int32 Value set { CastedUnityComponent.activeFireEffect = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent).activeFireEffect; + var field = coherenceComponent.GetField(0); + + var value = field.GetInt(); - var simFrame = ((_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent).activeFireEffectSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.activeFireEffect = Value; + field.SetInt(Value); } else { - update.activeFireEffect = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.activeFireEffectSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _3889a458e94666d4784df30d8dd06d7d_6540142254599110064(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_3889a458e94666d4784df30d8dd06d7d_f16a85076b0d47e8872375cb715fc67e : FloatBinding @@ -136,9 +127,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Campfire)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_3889a458e94666d4784df30d8dd06d7d_6540142254599110064); - public override string CoherenceComponentName => "_3889a458e94666d4784df30d8dd06d7d_6540142254599110064"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 24; + public override int FieldIndex => 1; public override System.Single Value { @@ -146,36 +136,31 @@ public override System.Single Value set { CastedUnityComponent.fireTimer = (System.Single)(value); } } - protected override (System.Single value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Single value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent).fireTimer; + var field = coherenceComponent.GetField(1); + + var value = field.GetFloat(); - var simFrame = ((_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent).fireTimerSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.fireTimer = Value; + field.SetFloat(Value); } else { - update.fireTimer = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetFloat(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.fireTimerSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _3889a458e94666d4784df30d8dd06d7d_6540142254599110064(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_3889a458e94666d4784df30d8dd06d7d_d8d012f4196145caa10c8e40b2bd3e06 : FloatBinding @@ -187,9 +172,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Campfire)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_3889a458e94666d4784df30d8dd06d7d_6540142254599110064); - public override string CoherenceComponentName => "_3889a458e94666d4784df30d8dd06d7d_6540142254599110064"; - public override uint FieldMask => 0b00000000000000000000000000000100; + public override uint CoherenceComponentID => 24; + public override int FieldIndex => 2; public override System.Single Value { @@ -197,36 +181,31 @@ public override System.Single Value set { CastedUnityComponent.bigFireTimer = (System.Single)(value); } } - protected override (System.Single value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Single value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent).bigFireTimer; + var field = coherenceComponent.GetField(2); + + var value = field.GetFloat(); - var simFrame = ((_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent).bigFireTimerSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)coherenceComponent; + var field = coherenceComponent.GetField(2); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.bigFireTimer = Value; + field.SetFloat(Value); } else { - update.bigFireTimer = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetFloat(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.bigFireTimerSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _3889a458e94666d4784df30d8dd06d7d_6540142254599110064(); - } + } } [UnityEngine.Scripting.Preserve] @@ -235,10 +214,10 @@ public class CoherenceSync_3889a458e94666d4784df30d8dd06d7d : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::Campfire _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db_CommandTarget; private global::Campfire _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_CommandTarget; - private global::Campfire _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38_CommandTarget; - private global::Campfire _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391_CommandTarget; + private global::Campfire _3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf_CommandTarget; + private global::Campfire _3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2_CommandTarget; + private global::Campfire _3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b_CommandTarget; private IClient client; @@ -256,10 +235,10 @@ public class CoherenceSync_3889a458e94666d4784df30d8dd06d7d : CoherenceSyncBaked public CoherenceSync_3889a458e94666d4784df30d8dd06d7d() { - bakedCommandBindings.Add("3738e04300d846dfa774ba252d8208db", BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db); bakedCommandBindings.Add("f8f688eb08cb493facb6d766417377d4", BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4); - bakedCommandBindings.Add("3664e59fd3cd4dd28175902369f5bb38", BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38); - bakedCommandBindings.Add("df8fe4d8a6104b7ab780e439afba5391", BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391); + bakedCommandBindings.Add("83c0cdeb86f440ec8f561f6252d364cf", BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf); + bakedCommandBindings.Add("6bb7cc05523d48449228106aa066e6c2", BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2); + bakedCommandBindings.Add("dabc677c05d54fb792a72ed0ac4d342b", BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b); } public override Binding BakeValueBinding(Binding valueBinding) @@ -280,231 +259,190 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db_CommandTarget = (global::Campfire)commandBinding.UnityComponent; + _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_CommandTarget = (global::Campfire)commandBinding.UnityComponent; + var _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_localTarget = (global::Campfire)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "Campfire.PlayInstantEffects", - "()", - SendCommand__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db, - ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db, - MessageTarget.All, - _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db_CommandTarget, + "Campfire.BurnObject", + "(System.String)", + SendCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4, + __args => ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(__args, _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_localTarget), + MessageTarget.StateAuthorityOnly, + _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db(GenericCommandRequestArgs requestArgs) + private void SendCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(GenericCommandRequestArgs requestArgs) { - var command = new _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(11, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); + command.GetField(0).SetString(((System.String)requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(GenericCommandRequestArgs requestArgs, global::Campfire target) { - var command = new _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db(command); + target.BurnObject((global::System.String)(requestArgs.Args[0])); } - private void ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db(_3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db command) + private void ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(CommandData command) { - var target = _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db_CommandTarget; - target.PlayInstantEffects(); + var target = _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_CommandTarget; + + var arg0 = (System.String)(command.GetField(0).GetString()); + + command.Dispose(); + + target.BurnObject(arg0); } - private void BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_CommandTarget = (global::Campfire)commandBinding.UnityComponent; + _3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf_CommandTarget = (global::Campfire)commandBinding.UnityComponent; + var _3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf_localTarget = (global::Campfire)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "Campfire.BurnObject", - "(System.String)", - SendCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4, - ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4, - MessageTarget.StateAuthorityOnly, - _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_CommandTarget, + "Campfire.PlayInstantEffects", + "()", + SendCommand__3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf, + __args => ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf(__args, _3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf_localTarget), + MessageTarget.All, + _3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(GenericCommandRequestArgs requestArgs) + private void SendCommand__3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf(GenericCommandRequestArgs requestArgs) { - var command = new _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(9, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.syncConfigID = (System.String)requestArgs.Args[0]; client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf(GenericCommandRequestArgs requestArgs, global::Campfire target) { - var command = new _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.syncConfigID = (System.String)requestArgs.Args[0]; - - ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(command); + target.PlayInstantEffects(); } - private void ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(_3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4 command) + private void ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf(CommandData command) { - var target = _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4_CommandTarget; - target.BurnObject((System.String)(command.syncConfigID)); + var target = _3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf_CommandTarget; + + + command.Dispose(); + + target.PlayInstantEffects(); } - private void BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38_CommandTarget = (global::Campfire)commandBinding.UnityComponent; + _3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2_CommandTarget = (global::Campfire)commandBinding.UnityComponent; + var _3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2_localTarget = (global::Campfire)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Campfire.FireDiedDown", "(System.Int32System.Int32)", - SendCommand__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38, - ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38, + SendCommand__3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2, + __args => ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2(__args, _3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2_localTarget), MessageTarget.All, - _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38_CommandTarget, + _3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38(GenericCommandRequestArgs requestArgs) + private void SendCommand__3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2(GenericCommandRequestArgs requestArgs) { - var command = new _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(8, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.oldEffectID = (System.Int32)requestArgs.Args[0]; - command.newEffectID = (System.Int32)requestArgs.Args[1]; + command.GetField(0).SetInt(((System.Int32)requestArgs.Args[0])); + command.GetField(1).SetInt(((System.Int32)requestArgs.Args[1])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2(GenericCommandRequestArgs requestArgs, global::Campfire target) { - var command = new _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.oldEffectID = (System.Int32)requestArgs.Args[0]; - command.newEffectID = (System.Int32)requestArgs.Args[1]; - - ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38(command); + target.FireDiedDown((global::System.Int32)(requestArgs.Args[0]), (global::System.Int32)(requestArgs.Args[1])); } - private void ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38(_3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38 command) + private void ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2(CommandData command) { - var target = _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38_CommandTarget; - target.FireDiedDown((System.Int32)(command.oldEffectID),(System.Int32)(command.newEffectID)); + var target = _3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2_CommandTarget; + + var arg0 = (System.Int32)(command.GetField(0).GetInt()); + var arg1 = (System.Int32)(command.GetField(1).GetInt()); + + command.Dispose(); + + target.FireDiedDown(arg0, arg1); } - private void BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391_CommandTarget = (global::Campfire)commandBinding.UnityComponent; + _3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b_CommandTarget = (global::Campfire)commandBinding.UnityComponent; + var _3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b_localTarget = (global::Campfire)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Campfire.FireStateChanged", "(System.Int32System.Int32System.String)", - SendCommand__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391, - ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391, + SendCommand__3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b, + __args => ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b(__args, _3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b_localTarget), MessageTarget.All, - _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391_CommandTarget, + _3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391(GenericCommandRequestArgs requestArgs) + private void SendCommand__3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b(GenericCommandRequestArgs requestArgs) { - var command = new _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(10, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.oldEffectID = (System.Int32)requestArgs.Args[0]; - command.newEffectID = (System.Int32)requestArgs.Args[1]; - command.syncConfigID = (System.String)requestArgs.Args[2]; + command.GetField(0).SetInt(((System.Int32)requestArgs.Args[0])); + command.GetField(1).SetInt(((System.Int32)requestArgs.Args[1])); + command.GetField(2).SetString(((System.String)requestArgs.Args[2])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b(GenericCommandRequestArgs requestArgs, global::Campfire target) { - var command = new _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.oldEffectID = (System.Int32)requestArgs.Args[0]; - command.newEffectID = (System.Int32)requestArgs.Args[1]; - command.syncConfigID = (System.String)requestArgs.Args[2]; - - ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391(command); + target.FireStateChanged((global::System.Int32)(requestArgs.Args[0]), (global::System.Int32)(requestArgs.Args[1]), (global::System.String)(requestArgs.Args[2])); } - private void ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391(_3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391 command) + private void ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b(CommandData command) { - var target = _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391_CommandTarget; - target.FireStateChanged((System.Int32)(command.oldEffectID),(System.Int32)(command.newEffectID),(System.String)(command.syncConfigID)); + var target = _3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b_CommandTarget; + + var arg0 = (System.Int32)(command.GetField(0).GetInt()); + var arg1 = (System.Int32)(command.GetField(1).GetInt()); + var arg2 = (System.String)(command.GetField(2).GetString()); + + command.Dispose(); + + target.FireStateChanged(arg0, arg1, arg2); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db castedCommand: - ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db(castedCommand); + case 11: + ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(command); break; - case _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4 castedCommand: - ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4(castedCommand); + case 9: + ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_83c0cdeb86f440ec8f561f6252d364cf(command); break; - case _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38 castedCommand: - ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38(castedCommand); + case 8: + ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_6bb7cc05523d48449228106aa066e6c2(command); break; - case _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391 castedCommand: - ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391(castedCommand); + case 10: + ReceiveCommand__3889a458e94666d4784df30d8dd06d7d_dabc677c05d54fb792a72ed0ac4d342b(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_3889a458e94666d4784df30d8dd06d7d Unhandled command: {command.GetType()}."); + $"CoherenceSync_3889a458e94666d4784df30d8dd06d7d Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -517,4 +455,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_3d92447627afdfc419ceeb6b26251a87.cs b/Assets/coherence/baked/CoherenceSync_3d92447627afdfc419ceeb6b26251a87.cs index c7f5d11..1c8cd95 100644 --- a/Assets/coherence/baked/CoherenceSync_3d92447627afdfc419ceeb6b26251a87.cs +++ b/Assets/coherence/baked/CoherenceSync_3d92447627afdfc419ceeb6b26251a87.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_3d92447627afdfc419ceeb6b26251a87_22b719ee1f9c41de9e3ec27a05a413a8 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_3d92447627afdfc419ceeb6b26251a87_a947e12913b64796ae924a538e3de89b : IntBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::ChoppableTree)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_3d92447627afdfc419ceeb6b26251a87_1406947345458511524); - public override string CoherenceComponentName => "_3d92447627afdfc419ceeb6b26251a87_1406947345458511524"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 25; + public override int FieldIndex => 0; public override System.Int32 Value { @@ -95,36 +91,31 @@ public override System.Int32 Value set { CastedUnityComponent.energy = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_3d92447627afdfc419ceeb6b26251a87_1406947345458511524)coherenceComponent).energy; + var field = coherenceComponent.GetField(0); + + var value = field.GetInt(); - var simFrame = ((_3d92447627afdfc419ceeb6b26251a87_1406947345458511524)coherenceComponent).energySimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_3d92447627afdfc419ceeb6b26251a87_1406947345458511524)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.energy = Value; + field.SetInt(Value); } else { - update.energy = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.energySimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _3d92447627afdfc419ceeb6b26251a87_1406947345458511524(); - } + } } [UnityEngine.Scripting.Preserve] @@ -134,8 +125,8 @@ public class CoherenceSync_3d92447627afdfc419ceeb6b26251a87 : CoherenceSyncBaked private Logger logger = Coherence.Log.Log.GetLogger(); private global::ChoppableTree _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6_CommandTarget; - private global::ChoppableTree _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7_CommandTarget; - private global::ChoppableTree _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09_CommandTarget; + private global::ChoppableTree _3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca_CommandTarget; + private global::ChoppableTree _3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404_CommandTarget; private IClient client; @@ -152,8 +143,8 @@ public class CoherenceSync_3d92447627afdfc419ceeb6b26251a87 : CoherenceSyncBaked public CoherenceSync_3d92447627afdfc419ceeb6b26251a87() { bakedCommandBindings.Add("e5df7db2535f410690edf553148f2ac6", BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6); - bakedCommandBindings.Add("64674b8d4999426fb995493ab95cb6d7", BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7); - bakedCommandBindings.Add("195171a3094b49ce9dc624b38e8a6b09", BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09); + bakedCommandBindings.Add("d1abac12daa945619882e28463e3e3ca", BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca); + bakedCommandBindings.Add("4bd44a0c7fb3400db0d9719709cd4404", BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404); } public override Binding BakeValueBinding(Binding valueBinding) @@ -177,174 +168,137 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH private void BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(CommandBinding commandBinding, CommandsHandler commandsHandler) { _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6_CommandTarget = (global::ChoppableTree)commandBinding.UnityComponent; + var _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6_localTarget = (global::ChoppableTree)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "ChoppableTree.Chop", "()", SendCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6, - ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6, + __args => ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(__args, _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6_localTarget), MessageTarget.StateAuthorityOnly, - _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6_CommandTarget, + _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6_localTarget, commandBinding.UsesMeta()); } private void SendCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(GenericCommandRequestArgs requestArgs) { - var command = new _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(14, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(GenericCommandRequestArgs requestArgs, global::ChoppableTree target) { - var command = new _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(command); + target.Chop(); } - private void ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(_3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6 command) + private void ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(CommandData command) { var target = _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6_CommandTarget; + + + command.Dispose(); + target.Chop(); } - private void BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7_CommandTarget = (global::ChoppableTree)commandBinding.UnityComponent; + _3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca_CommandTarget = (global::ChoppableTree)commandBinding.UnityComponent; + var _3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca_localTarget = (global::ChoppableTree)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "ChoppableTree.ChangeState", - "(System.Boolean)", - SendCommand__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7, - ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7, + "ChoppableTree.PlayChopEffect", + "()", + SendCommand__3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca, + __args => ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca(__args, _3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca_localTarget), MessageTarget.Other, - _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7_CommandTarget, + _3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7(GenericCommandRequestArgs requestArgs) + private void SendCommand__3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca(GenericCommandRequestArgs requestArgs) { - var command = new _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(13, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.toUp = (System.Boolean)requestArgs.Args[0]; client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca(GenericCommandRequestArgs requestArgs, global::ChoppableTree target) { - var command = new _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.toUp = (System.Boolean)requestArgs.Args[0]; - - ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7(command); + target.PlayChopEffect(); } - private void ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7(_3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7 command) + private void ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca(CommandData command) { - var target = _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7_CommandTarget; - target.ChangeState((System.Boolean)(command.toUp)); + var target = _3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca_CommandTarget; + + + command.Dispose(); + + target.PlayChopEffect(); } - private void BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09_CommandTarget = (global::ChoppableTree)commandBinding.UnityComponent; + _3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404_CommandTarget = (global::ChoppableTree)commandBinding.UnityComponent; + var _3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404_localTarget = (global::ChoppableTree)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "ChoppableTree.PlayChopEffect", - "()", - SendCommand__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09, - ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09, + "ChoppableTree.ChangeState", + "(System.Boolean)", + SendCommand__3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404, + __args => ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404(__args, _3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404_localTarget), MessageTarget.Other, - _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09_CommandTarget, + _3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09(GenericCommandRequestArgs requestArgs) + private void SendCommand__3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404(GenericCommandRequestArgs requestArgs) { - var command = new _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(12, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); + command.GetField(0).SetBool(((System.Boolean)requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404(GenericCommandRequestArgs requestArgs, global::ChoppableTree target) { - var command = new _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09(command); + target.ChangeState((global::System.Boolean)(requestArgs.Args[0])); } - private void ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09(_3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09 command) + private void ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404(CommandData command) { - var target = _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09_CommandTarget; - target.PlayChopEffect(); + var target = _3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404_CommandTarget; + + var arg0 = (System.Boolean)(command.GetField(0).GetBool()); + + command.Dispose(); + + target.ChangeState(arg0); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6 castedCommand: - ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(castedCommand); + case 14: + ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6(command); break; - case _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7 castedCommand: - ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7(castedCommand); + case 13: + ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_d1abac12daa945619882e28463e3e3ca(command); break; - case _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09 castedCommand: - ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09(castedCommand); + case 12: + ReceiveCommand__3d92447627afdfc419ceeb6b26251a87_4bd44a0c7fb3400db0d9719709cd4404(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_3d92447627afdfc419ceeb6b26251a87 Unhandled command: {command.GetType()}."); + $"CoherenceSync_3d92447627afdfc419ceeb6b26251a87 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -357,4 +311,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308.cs b/Assets/coherence/baked/CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308.cs index dfea52d..bf319a5 100644 --- a/Assets/coherence/baked/CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308.cs +++ b/Assets/coherence/baked/CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_451e73a8eddd14b2daf891b5ee6c2308_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_451e73a8eddd14b2daf891b5ee6c2308_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_451e73a8eddd14b2daf891b5ee6c2308_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_451e73a8eddd14b2daf891b5ee6c2308_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368); - public override string CoherenceComponentName => "_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 28; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_451e73a8eddd14b2daf891b5ee6c2308_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368); - public override string CoherenceComponentName => "_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 28; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_451e73a8eddd14b2daf891b5ee6c2308_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519); - public override string CoherenceComponentName => "_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 27; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_451e73a8eddd14b2daf891b5ee6c2308_f2d1c22c30b044c8bb3dddc445e2c67a : ReferenceBinding @@ -340,46 +309,40 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::PositionedObject)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777); - public override string CoherenceComponentName => "_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 26; + public override int FieldIndex => 0; public override Entity Value { - get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId(CastedUnityComponent.objectAnchorSync); } + get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId((ICoherenceSync)(CastedUnityComponent.objectAnchorSync)); } set { CastedUnityComponent.objectAnchorSync = coherenceSync.CoherenceBridge.EntityIdToCoherenceSync(value); } } - protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777)coherenceComponent).objectAnchorSync; + var field = coherenceComponent.GetField(0); + + var value = field.GetEntity(); - var simFrame = ((_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777)coherenceComponent).objectAnchorSyncSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.objectAnchorSync = Value; + field.SetEntity(Value); } else { - update.objectAnchorSync = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetEntity(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.objectAnchorSyncSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777(); - } + } } [UnityEngine.Scripting.Preserve] @@ -388,7 +351,7 @@ public class CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308 : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::PositionedObject _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + private global::PositionedObject _451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; private IClient client; @@ -409,7 +372,7 @@ public class CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308 : CoherenceSyncBaked public CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308() { - bakedCommandBindings.Add("ad9e635638034d88b0c6dcd8a9c83286", BakeCommandBinding__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286); + bakedCommandBindings.Add("1d97e8b68da1419a9d8bbf2023980031", BakeCommandBinding__451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031); } public override Binding BakeValueBinding(Binding valueBinding) @@ -430,87 +393,58 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + _451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + var _451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031_localTarget = (global::PositionedObject)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "PositionedObject.PlayReappearShaderEffect", "()", - SendCommand__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286, - ReceiveLocalCommand__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286, + SendCommand__451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031, + __args => ReceiveLocalCommand__451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031(__args, _451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031_localTarget), MessageTarget.All, - _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget, + _451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void SendCommand__451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs) { - var command = new _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(15, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs, global::PositionedObject target) { - var command = new _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286(command); + target.PlayReappearShaderEffect(); } - private void ReceiveCommand__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286(_451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286 command) + private void ReceiveCommand__451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031(CommandData command) { - var target = _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + var target = _451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; + + + command.Dispose(); + target.PlayReappearShaderEffect(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286 castedCommand: - ReceiveCommand__451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286(castedCommand); + case 15: + ReceiveCommand__451e73a8eddd14b2daf891b5ee6c2308_1d97e8b68da1419a9d8bbf2023980031(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308 Unhandled command: {command.GetType()}."); + $"CoherenceSync_451e73a8eddd14b2daf891b5ee6c2308 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -523,4 +457,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_7455a9685d292b843b28465a4faffd05.cs b/Assets/coherence/baked/CoherenceSync_7455a9685d292b843b28465a4faffd05.cs index bfd86cf..a541bf3 100644 --- a/Assets/coherence/baked/CoherenceSync_7455a9685d292b843b28465a4faffd05.cs +++ b/Assets/coherence/baked/CoherenceSync_7455a9685d292b843b28465a4faffd05.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_7455a9685d292b843b28465a4faffd05_04d4649847d341eaa3b40d6b6ca56901 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_7455a9685d292b843b28465a4faffd05_cee0b5920f58413ca75e511a8904cfe4 : BoolBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Chair)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_7455a9685d292b843b28465a4faffd05_486810980); - public override string CoherenceComponentName => "_7455a9685d292b843b28465a4faffd05_486810980"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 30; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -95,36 +91,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBusy = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_7455a9685d292b843b28465a4faffd05_486810980)coherenceComponent).isBusy; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_7455a9685d292b843b28465a4faffd05_486810980)coherenceComponent).isBusySimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_7455a9685d292b843b28465a4faffd05_486810980)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBusy = Value; + field.SetBool(Value); } else { - update.isBusy = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBusySimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _7455a9685d292b843b28465a4faffd05_486810980(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_7455a9685d292b843b28465a4faffd05_aa676c18977b4027ad16fcd14f36b407 : BoolBinding @@ -136,9 +127,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.CapsuleCollider)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_7455a9685d292b843b28465a4faffd05_4295192434143702777); - public override string CoherenceComponentName => "_7455a9685d292b843b28465a4faffd05_4295192434143702777"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 29; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -146,36 +136,31 @@ public override System.Boolean Value set { CastedUnityComponent.enabled = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_7455a9685d292b843b28465a4faffd05_4295192434143702777)coherenceComponent).enabled; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_7455a9685d292b843b28465a4faffd05_4295192434143702777)coherenceComponent).enabledSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_7455a9685d292b843b28465a4faffd05_4295192434143702777)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.enabled = Value; + field.SetBool(Value); } else { - update.enabled = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.enabledSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _7455a9685d292b843b28465a4faffd05_4295192434143702777(); - } + } } [UnityEngine.Scripting.Preserve] @@ -225,86 +210,57 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH private void BakeCommandBinding__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(CommandBinding commandBinding, CommandsHandler commandsHandler) { _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff_CommandTarget = (global::Chair)commandBinding.UnityComponent; + var _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff_localTarget = (global::Chair)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Chair.ChangeState", "(System.Boolean)", SendCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff, - ReceiveLocalCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff, + __args => ReceiveLocalCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(__args, _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff_localTarget), MessageTarget.StateAuthorityOnly, - _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff_CommandTarget, + _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff_localTarget, commandBinding.UsesMeta()); } private void SendCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(GenericCommandRequestArgs requestArgs) { - var command = new _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(16, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.newBusyState = (System.Boolean)requestArgs.Args[0]; + command.GetField(0).SetBool(((System.Boolean)requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(GenericCommandRequestArgs requestArgs, global::Chair target) { - var command = new _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.newBusyState = (System.Boolean)requestArgs.Args[0]; - - ReceiveCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(command); + target.ChangeState((global::System.Boolean)(requestArgs.Args[0])); } - private void ReceiveCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(_7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff command) + private void ReceiveCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(CommandData command) { var target = _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff_CommandTarget; - target.ChangeState((System.Boolean)(command.newBusyState)); + + var arg0 = (System.Boolean)(command.GetField(0).GetBool()); + + command.Dispose(); + + target.ChangeState(arg0); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff castedCommand: - ReceiveCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(castedCommand); + case 16: + ReceiveCommand__7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_7455a9685d292b843b28465a4faffd05 Unhandled command: {command.GetType()}."); + $"CoherenceSync_7455a9685d292b843b28465a4faffd05 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -317,4 +273,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_7eef8177eb732314fb850470094a70c9.cs b/Assets/coherence/baked/CoherenceSync_7eef8177eb732314fb850470094a70c9.cs index 5b84f7e..b5a7ea3 100644 --- a/Assets/coherence/baked/CoherenceSync_7eef8177eb732314fb850470094a70c9.cs +++ b/Assets/coherence/baked/CoherenceSync_7eef8177eb732314fb850470094a70c9.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_7eef8177eb732314fb850470094a70c9_3c6dd2a1004a48f9882846782165be86 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_7eef8177eb732314fb850470094a70c9_8f5fdae3bab74f309565b69548451c75 : BoolBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Chair)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_7eef8177eb732314fb850470094a70c9_468635232); - public override string CoherenceComponentName => "_7eef8177eb732314fb850470094a70c9_468635232"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 32; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -95,36 +91,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBusy = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_7eef8177eb732314fb850470094a70c9_468635232)coherenceComponent).isBusy; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_7eef8177eb732314fb850470094a70c9_468635232)coherenceComponent).isBusySimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_7eef8177eb732314fb850470094a70c9_468635232)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBusy = Value; + field.SetBool(Value); } else { - update.isBusy = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBusySimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _7eef8177eb732314fb850470094a70c9_468635232(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_7eef8177eb732314fb850470094a70c9_96deafb267de4576b43f8958e112ee4d : BoolBinding @@ -136,9 +127,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.CapsuleCollider)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_7eef8177eb732314fb850470094a70c9_468635231); - public override string CoherenceComponentName => "_7eef8177eb732314fb850470094a70c9_468635231"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 31; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -146,36 +136,31 @@ public override System.Boolean Value set { CastedUnityComponent.enabled = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_7eef8177eb732314fb850470094a70c9_468635231)coherenceComponent).enabled; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_7eef8177eb732314fb850470094a70c9_468635231)coherenceComponent).enabledSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_7eef8177eb732314fb850470094a70c9_468635231)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.enabled = Value; + field.SetBool(Value); } else { - update.enabled = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.enabledSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _7eef8177eb732314fb850470094a70c9_468635231(); - } + } } [UnityEngine.Scripting.Preserve] @@ -225,86 +210,57 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH private void BakeCommandBinding__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(CommandBinding commandBinding, CommandsHandler commandsHandler) { _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187_CommandTarget = (global::Chair)commandBinding.UnityComponent; + var _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187_localTarget = (global::Chair)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Chair.ChangeState", "(System.Boolean)", SendCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187, - ReceiveLocalCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187, + __args => ReceiveLocalCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(__args, _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187_localTarget), MessageTarget.StateAuthorityOnly, - _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187_CommandTarget, + _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187_localTarget, commandBinding.UsesMeta()); } private void SendCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(GenericCommandRequestArgs requestArgs) { - var command = new _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(17, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.newBusyState = (System.Boolean)requestArgs.Args[0]; + command.GetField(0).SetBool(((System.Boolean)requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(GenericCommandRequestArgs requestArgs, global::Chair target) { - var command = new _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.newBusyState = (System.Boolean)requestArgs.Args[0]; - - ReceiveCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(command); + target.ChangeState((global::System.Boolean)(requestArgs.Args[0])); } - private void ReceiveCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(_7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187 command) + private void ReceiveCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(CommandData command) { var target = _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187_CommandTarget; - target.ChangeState((System.Boolean)(command.newBusyState)); + + var arg0 = (System.Boolean)(command.GetField(0).GetBool()); + + command.Dispose(); + + target.ChangeState(arg0); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187 castedCommand: - ReceiveCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(castedCommand); + case 17: + ReceiveCommand__7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_7eef8177eb732314fb850470094a70c9 Unhandled command: {command.GetType()}."); + $"CoherenceSync_7eef8177eb732314fb850470094a70c9 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -317,4 +273,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d.cs b/Assets/coherence/baked/CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d.cs index 521dc39..e69c3aa 100644 --- a/Assets/coherence/baked/CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d.cs +++ b/Assets/coherence/baked/CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_89bb435d615753b4f86caa89fd2a5d9d_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_89bb435d615753b4f86caa89fd2a5d9d_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_89bb435d615753b4f86caa89fd2a5d9d_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_89bb435d615753b4f86caa89fd2a5d9d_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761); - public override string CoherenceComponentName => "_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 33; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_89bb435d615753b4f86caa89fd2a5d9d_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761); - public override string CoherenceComponentName => "_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 33; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_89bb435d615753b4f86caa89fd2a5d9d_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198); - public override string CoherenceComponentName => "_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 34; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_89bb435d615753b4f86caa89fd2a5d9d_f2d1c22c30b044c8bb3dddc445e2c67a : ReferenceBinding @@ -340,46 +309,40 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::PositionedObject)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224); - public override string CoherenceComponentName => "_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 35; + public override int FieldIndex => 0; public override Entity Value { - get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId(CastedUnityComponent.objectAnchorSync); } + get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId((ICoherenceSync)(CastedUnityComponent.objectAnchorSync)); } set { CastedUnityComponent.objectAnchorSync = coherenceSync.CoherenceBridge.EntityIdToCoherenceSync(value); } } - protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224)coherenceComponent).objectAnchorSync; + var field = coherenceComponent.GetField(0); + + var value = field.GetEntity(); - var simFrame = ((_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224)coherenceComponent).objectAnchorSyncSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.objectAnchorSync = Value; + field.SetEntity(Value); } else { - update.objectAnchorSync = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetEntity(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.objectAnchorSyncSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224(); - } + } } [UnityEngine.Scripting.Preserve] @@ -388,7 +351,7 @@ public class CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::PositionedObject _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + private global::PositionedObject _89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; private IClient client; @@ -409,7 +372,7 @@ public class CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d : CoherenceSyncBaked public CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d() { - bakedCommandBindings.Add("ad9e635638034d88b0c6dcd8a9c83286", BakeCommandBinding__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286); + bakedCommandBindings.Add("1d97e8b68da1419a9d8bbf2023980031", BakeCommandBinding__89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031); } public override Binding BakeValueBinding(Binding valueBinding) @@ -430,87 +393,58 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + _89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + var _89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031_localTarget = (global::PositionedObject)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "PositionedObject.PlayReappearShaderEffect", "()", - SendCommand__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286, - ReceiveLocalCommand__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286, + SendCommand__89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031, + __args => ReceiveLocalCommand__89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031(__args, _89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031_localTarget), MessageTarget.All, - _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget, + _89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void SendCommand__89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs) { - var command = new _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(18, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs, global::PositionedObject target) { - var command = new _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286(command); + target.PlayReappearShaderEffect(); } - private void ReceiveCommand__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286(_89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286 command) + private void ReceiveCommand__89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031(CommandData command) { - var target = _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + var target = _89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; + + + command.Dispose(); + target.PlayReappearShaderEffect(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286 castedCommand: - ReceiveCommand__89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286(castedCommand); + case 18: + ReceiveCommand__89bb435d615753b4f86caa89fd2a5d9d_1d97e8b68da1419a9d8bbf2023980031(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d Unhandled command: {command.GetType()}."); + $"CoherenceSync_89bb435d615753b4f86caa89fd2a5d9d Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -523,4 +457,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166.cs b/Assets/coherence/baked/CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166.cs index a058241..f166e07 100644 --- a/Assets/coherence/baked/CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166.cs +++ b/Assets/coherence/baked/CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_8d0ae98c8cb2746df8fa6b7fef5ee166_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_8d0ae98c8cb2746df8fa6b7fef5ee166_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_8d0ae98c8cb2746df8fa6b7fef5ee166_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_8d0ae98c8cb2746df8fa6b7fef5ee166_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437); - public override string CoherenceComponentName => "_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 38; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_8d0ae98c8cb2746df8fa6b7fef5ee166_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437); - public override string CoherenceComponentName => "_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 38; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_8d0ae98c8cb2746df8fa6b7fef5ee166_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794); - public override string CoherenceComponentName => "_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 37; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_8d0ae98c8cb2746df8fa6b7fef5ee166_f2d1c22c30b044c8bb3dddc445e2c67a : ReferenceBinding @@ -340,46 +309,40 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::PositionedObject)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932); - public override string CoherenceComponentName => "_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 36; + public override int FieldIndex => 0; public override Entity Value { - get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId(CastedUnityComponent.objectAnchorSync); } + get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId((ICoherenceSync)(CastedUnityComponent.objectAnchorSync)); } set { CastedUnityComponent.objectAnchorSync = coherenceSync.CoherenceBridge.EntityIdToCoherenceSync(value); } } - protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932)coherenceComponent).objectAnchorSync; + var field = coherenceComponent.GetField(0); + + var value = field.GetEntity(); - var simFrame = ((_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932)coherenceComponent).objectAnchorSyncSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.objectAnchorSync = Value; + field.SetEntity(Value); } else { - update.objectAnchorSync = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetEntity(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.objectAnchorSyncSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932(); - } + } } [UnityEngine.Scripting.Preserve] @@ -388,7 +351,7 @@ public class CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166 : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::PositionedObject _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + private global::PositionedObject _8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; private IClient client; @@ -409,7 +372,7 @@ public class CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166 : CoherenceSyncBaked public CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166() { - bakedCommandBindings.Add("ad9e635638034d88b0c6dcd8a9c83286", BakeCommandBinding__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286); + bakedCommandBindings.Add("1d97e8b68da1419a9d8bbf2023980031", BakeCommandBinding__8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031); } public override Binding BakeValueBinding(Binding valueBinding) @@ -430,87 +393,58 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + _8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + var _8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031_localTarget = (global::PositionedObject)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "PositionedObject.PlayReappearShaderEffect", "()", - SendCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286, - ReceiveLocalCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286, + SendCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031, + __args => ReceiveLocalCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031(__args, _8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031_localTarget), MessageTarget.All, - _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget, + _8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void SendCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs) { - var command = new _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(19, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs, global::PositionedObject target) { - var command = new _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286(command); + target.PlayReappearShaderEffect(); } - private void ReceiveCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286(_8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286 command) + private void ReceiveCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031(CommandData command) { - var target = _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + var target = _8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; + + + command.Dispose(); + target.PlayReappearShaderEffect(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286 castedCommand: - ReceiveCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286(castedCommand); + case 19: + ReceiveCommand__8d0ae98c8cb2746df8fa6b7fef5ee166_1d97e8b68da1419a9d8bbf2023980031(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166 Unhandled command: {command.GetType()}."); + $"CoherenceSync_8d0ae98c8cb2746df8fa6b7fef5ee166 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -523,4 +457,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_91ccee2338d92624a8021fda1c91e47c.cs b/Assets/coherence/baked/CoherenceSync_91ccee2338d92624a8021fda1c91e47c.cs index 93333dc..824f8da 100644 --- a/Assets/coherence/baked/CoherenceSync_91ccee2338d92624a8021fda1c91e47c.cs +++ b/Assets/coherence/baked/CoherenceSync_91ccee2338d92624a8021fda1c91e47c.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_91ccee2338d92624a8021fda1c91e47c_af57f962994c4ec7887c2f2f6b67f68a : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_91ccee2338d92624a8021fda1c91e47c_6653d280b1864071bb3815f49a73d029 : BoolBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Chair)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_91ccee2338d92624a8021fda1c91e47c_4713251173614319484); - public override string CoherenceComponentName => "_91ccee2338d92624a8021fda1c91e47c_4713251173614319484"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 40; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -95,36 +91,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBusy = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_91ccee2338d92624a8021fda1c91e47c_4713251173614319484)coherenceComponent).isBusy; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_91ccee2338d92624a8021fda1c91e47c_4713251173614319484)coherenceComponent).isBusySimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_91ccee2338d92624a8021fda1c91e47c_4713251173614319484)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBusy = Value; + field.SetBool(Value); } else { - update.isBusy = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBusySimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _91ccee2338d92624a8021fda1c91e47c_4713251173614319484(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_91ccee2338d92624a8021fda1c91e47c_85ff4db8c33a45dfab7139834053c3e6 : BoolBinding @@ -136,9 +127,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.CapsuleCollider)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_91ccee2338d92624a8021fda1c91e47c_1987083777327440787); - public override string CoherenceComponentName => "_91ccee2338d92624a8021fda1c91e47c_1987083777327440787"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 39; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -146,36 +136,31 @@ public override System.Boolean Value set { CastedUnityComponent.enabled = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_91ccee2338d92624a8021fda1c91e47c_1987083777327440787)coherenceComponent).enabled; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_91ccee2338d92624a8021fda1c91e47c_1987083777327440787)coherenceComponent).enabledSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_91ccee2338d92624a8021fda1c91e47c_1987083777327440787)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.enabled = Value; + field.SetBool(Value); } else { - update.enabled = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.enabledSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _91ccee2338d92624a8021fda1c91e47c_1987083777327440787(); - } + } } [UnityEngine.Scripting.Preserve] @@ -225,86 +210,57 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH private void BakeCommandBinding__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(CommandBinding commandBinding, CommandsHandler commandsHandler) { _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9_CommandTarget = (global::Chair)commandBinding.UnityComponent; + var _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9_localTarget = (global::Chair)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Chair.ChangeState", "(System.Boolean)", SendCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9, - ReceiveLocalCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9, + __args => ReceiveLocalCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(__args, _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9_localTarget), MessageTarget.StateAuthorityOnly, - _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9_CommandTarget, + _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9_localTarget, commandBinding.UsesMeta()); } private void SendCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(GenericCommandRequestArgs requestArgs) { - var command = new _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(20, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.newBusyState = (System.Boolean)requestArgs.Args[0]; + command.GetField(0).SetBool(((System.Boolean)requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(GenericCommandRequestArgs requestArgs, global::Chair target) { - var command = new _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.newBusyState = (System.Boolean)requestArgs.Args[0]; - - ReceiveCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(command); + target.ChangeState((global::System.Boolean)(requestArgs.Args[0])); } - private void ReceiveCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(_91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9 command) + private void ReceiveCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(CommandData command) { var target = _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9_CommandTarget; - target.ChangeState((System.Boolean)(command.newBusyState)); + + var arg0 = (System.Boolean)(command.GetField(0).GetBool()); + + command.Dispose(); + + target.ChangeState(arg0); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9 castedCommand: - ReceiveCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(castedCommand); + case 20: + ReceiveCommand__91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_91ccee2338d92624a8021fda1c91e47c Unhandled command: {command.GetType()}."); + $"CoherenceSync_91ccee2338d92624a8021fda1c91e47c Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -317,4 +273,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_9ea9c7ad1465c4769a67e80391f1158b.cs b/Assets/coherence/baked/CoherenceSync_9ea9c7ad1465c4769a67e80391f1158b.cs index 05ba772..a1291d5 100644 --- a/Assets/coherence/baked/CoherenceSync_9ea9c7ad1465c4769a67e80391f1158b.cs +++ b/Assets/coherence/baked/CoherenceSync_9ea9c7ad1465c4769a67e80391f1158b.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_9ea9c7ad1465c4769a67e80391f1158b_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_9ea9c7ad1465c4769a67e80391f1158b_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_9ea9c7ad1465c4769a67e80391f1158b_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_9ea9c7ad1465c4769a67e80391f1158b_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970); - public override string CoherenceComponentName => "_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 41; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_9ea9c7ad1465c4769a67e80391f1158b_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970); - public override string CoherenceComponentName => "_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 41; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_9ea9c7ad1465c4769a67e80391f1158b_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429); - public override string CoherenceComponentName => "_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 42; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429(); - } + } } [UnityEngine.Scripting.Preserve] @@ -377,42 +346,17 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH } } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_9ea9c7ad1465c4769a67e80391f1158b Unhandled command: {command.GetType()}."); + $"CoherenceSync_9ea9c7ad1465c4769a67e80391f1158b Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -425,4 +369,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_a857fd6c221f7f04fa9ed500e317642a.cs b/Assets/coherence/baked/CoherenceSync_a857fd6c221f7f04fa9ed500e317642a.cs index 551f0d5..d6b6bff 100644 --- a/Assets/coherence/baked/CoherenceSync_a857fd6c221f7f04fa9ed500e317642a.cs +++ b/Assets/coherence/baked/CoherenceSync_a857fd6c221f7f04fa9ed500e317642a.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_a857fd6c221f7f04fa9ed500e317642a_aa3341ec45d847e3a6334d365bb6e8f6 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_a857fd6c221f7f04fa9ed500e317642a_4cef7f16f6344b529a98ff11487873bc : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_a857fd6c221f7f04fa9ed500e317642a_f4b199dae036494baf4943dea2b97d33 : BoolAnimatorParameterBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Animator)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174); - public override string CoherenceComponentName => "_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 43; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -146,36 +137,31 @@ public override System.Boolean Value set { CastedUnityComponent.SetBool(CastedDescriptor.ParameterHash, value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174)coherenceComponent).IsFlailing; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174)coherenceComponent).IsFlailingSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.IsFlailing = Value; + field.SetBool(Value); } else { - update.IsFlailing = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.IsFlailingSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_a857fd6c221f7f04fa9ed500e317642a_5735b03a1aa74d87a5f2e163eed89df2 : BoolAnimatorParameterBinding @@ -187,9 +173,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Animator)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174); - public override string CoherenceComponentName => "_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 43; + public override int FieldIndex => 1; public override System.Boolean Value { @@ -197,36 +182,31 @@ public override System.Boolean Value set { CastedUnityComponent.SetBool(CastedDescriptor.ParameterHash, value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174)coherenceComponent).IsCarrying; + var field = coherenceComponent.GetField(1); + + var value = field.GetBool(); - var simFrame = ((_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174)coherenceComponent).IsCarryingSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.IsCarrying = Value; + field.SetBool(Value); } else { - update.IsCarrying = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.IsCarryingSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_a857fd6c221f7f04fa9ed500e317642a_0174ef8a52ab48e6aee788bea243f7f5 : BoolBinding @@ -238,9 +218,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Chair)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967); - public override string CoherenceComponentName => "_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 44; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -248,36 +227,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBusy = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967)coherenceComponent).isBusy; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967)coherenceComponent).isBusySimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBusy = Value; + field.SetBool(Value); } else { - update.isBusy = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBusySimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967(); - } + } } [UnityEngine.Scripting.Preserve] @@ -286,11 +260,11 @@ public class CoherenceSync_a857fd6c221f7f04fa9ed500e317642a : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::KeeperRobot _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8_CommandTarget; - private global::KeeperRobot _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2_CommandTarget; - private global::KeeperRobot _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb_CommandTarget; - private global::KeeperRobot _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6_CommandTarget; private global::Chair _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_CommandTarget; + private global::KeeperRobot _a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199_CommandTarget; + private global::KeeperRobot _a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8_CommandTarget; + private global::KeeperRobot _a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e_CommandTarget; + private global::KeeperRobot _a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726_CommandTarget; private IClient client; @@ -309,11 +283,11 @@ public class CoherenceSync_a857fd6c221f7f04fa9ed500e317642a : CoherenceSyncBaked public CoherenceSync_a857fd6c221f7f04fa9ed500e317642a() { - bakedCommandBindings.Add("a08cbf1b7c0b489e9d34a142c88514c8", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8); - bakedCommandBindings.Add("e584959f421448c0b118bf28bd4867b2", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2); - bakedCommandBindings.Add("0f10acf8439d449385dbd33450d1f0fb", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb); - bakedCommandBindings.Add("e86b8c2ff539476e96c5792baaad07d6", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6); bakedCommandBindings.Add("7f3e0b9e3ab247f68ebb0067b5b4b6c4", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4); + bakedCommandBindings.Add("ab045865e78d4e8c9562d53fcea0a199", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199); + bakedCommandBindings.Add("efd5ed06a339416b8819ea9524e35db8", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8); + bakedCommandBindings.Add("eee23e58897b48f7ba844e115ca6978e", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e); + bakedCommandBindings.Add("d982f989b8ee4d79b39706515c828726", BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726); } public override Binding BakeValueBinding(Binding valueBinding) @@ -334,265 +308,220 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8_CommandTarget = (global::KeeperRobot)commandBinding.UnityComponent; + _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_CommandTarget = (global::Chair)commandBinding.UnityComponent; + var _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_localTarget = (global::Chair)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "KeeperRobot.PlayVoiceSound", - "()", - SendCommand__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8, - ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8, - MessageTarget.All, - _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8_CommandTarget, + "Chair.ChangeState", + "(System.Boolean)", + SendCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4, + __args => ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(__args, _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_localTarget), + MessageTarget.StateAuthorityOnly, + _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8(GenericCommandRequestArgs requestArgs) + private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(GenericCommandRequestArgs requestArgs) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(21, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); + command.GetField(0).SetBool(((System.Boolean)requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(GenericCommandRequestArgs requestArgs, global::Chair target) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8(command); + target.ChangeState((global::System.Boolean)(requestArgs.Args[0])); } - private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8(_a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8 command) + private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(CommandData command) { - var target = _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8_CommandTarget; - target.PlayVoiceSound(); + var target = _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_CommandTarget; + + var arg0 = (System.Boolean)(command.GetField(0).GetBool()); + + command.Dispose(); + + target.ChangeState(arg0); } - private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2_CommandTarget = (global::KeeperRobot)commandBinding.UnityComponent; + _a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199_CommandTarget = (global::KeeperRobot)commandBinding.UnityComponent; + var _a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199_localTarget = (global::KeeperRobot)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "KeeperRobot.PlayConjure", + "KeeperRobot.PlayHumSound", "()", - SendCommand__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2, - ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2, + SendCommand__a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199, + __args => ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199(__args, _a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199_localTarget), MessageTarget.All, - _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2_CommandTarget, + _a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2(GenericCommandRequestArgs requestArgs) + private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199(GenericCommandRequestArgs requestArgs) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(22, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199(GenericCommandRequestArgs requestArgs, global::KeeperRobot target) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2(command); + target.PlayHumSound(); } - private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2(_a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2 command) + private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199(CommandData command) { - var target = _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2_CommandTarget; - target.PlayConjure(); + var target = _a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199_CommandTarget; + + + command.Dispose(); + + target.PlayHumSound(); } - private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb_CommandTarget = (global::KeeperRobot)commandBinding.UnityComponent; + _a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8_CommandTarget = (global::KeeperRobot)commandBinding.UnityComponent; + var _a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8_localTarget = (global::KeeperRobot)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "KeeperRobot.PlayAppear", + "KeeperRobot.PlayVoiceSound", "()", - SendCommand__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb, - ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb, + SendCommand__a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8, + __args => ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8(__args, _a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8_localTarget), MessageTarget.All, - _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb_CommandTarget, + _a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb(GenericCommandRequestArgs requestArgs) + private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8(GenericCommandRequestArgs requestArgs) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(25, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8(GenericCommandRequestArgs requestArgs, global::KeeperRobot target) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb(command); + target.PlayVoiceSound(); } - private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb(_a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb command) + private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8(CommandData command) { - var target = _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb_CommandTarget; - target.PlayAppear(); + var target = _a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8_CommandTarget; + + + command.Dispose(); + + target.PlayVoiceSound(); } - private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6_CommandTarget = (global::KeeperRobot)commandBinding.UnityComponent; + _a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e_CommandTarget = (global::KeeperRobot)commandBinding.UnityComponent; + var _a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e_localTarget = (global::KeeperRobot)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "KeeperRobot.PlayHumSound", + "KeeperRobot.PlayConjure", "()", - SendCommand__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6, - ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6, + SendCommand__a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e, + __args => ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e(__args, _a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e_localTarget), MessageTarget.All, - _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6_CommandTarget, + _a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6(GenericCommandRequestArgs requestArgs) + private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e(GenericCommandRequestArgs requestArgs) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(24, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e(GenericCommandRequestArgs requestArgs, global::KeeperRobot target) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6(command); + target.PlayConjure(); } - private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6(_a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6 command) + private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e(CommandData command) { - var target = _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6_CommandTarget; - target.PlayHumSound(); + var target = _a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e_CommandTarget; + + + command.Dispose(); + + target.PlayConjure(); } - private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_CommandTarget = (global::Chair)commandBinding.UnityComponent; + _a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726_CommandTarget = (global::KeeperRobot)commandBinding.UnityComponent; + var _a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726_localTarget = (global::KeeperRobot)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( - "Chair.ChangeState", - "(System.Boolean)", - SendCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4, - ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4, - MessageTarget.StateAuthorityOnly, - _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_CommandTarget, + "KeeperRobot.PlayAppear", + "()", + SendCommand__a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726, + __args => ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726(__args, _a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726_localTarget), + MessageTarget.All, + _a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(GenericCommandRequestArgs requestArgs) + private void SendCommand__a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726(GenericCommandRequestArgs requestArgs) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(23, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.newBusyState = (System.Boolean)requestArgs.Args[0]; client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726(GenericCommandRequestArgs requestArgs, global::KeeperRobot target) { - var command = new _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.newBusyState = (System.Boolean)requestArgs.Args[0]; - - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(command); + target.PlayAppear(); } - private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(_a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 command) + private void ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726(CommandData command) { - var target = _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4_CommandTarget; - target.ChangeState((System.Boolean)(command.newBusyState)); + var target = _a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726_CommandTarget; + + + command.Dispose(); + + target.PlayAppear(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8 castedCommand: - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8(castedCommand); + case 21: + ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(command); break; - case _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2 castedCommand: - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2(castedCommand); + case 22: + ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_ab045865e78d4e8c9562d53fcea0a199(command); break; - case _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb castedCommand: - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb(castedCommand); + case 25: + ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_efd5ed06a339416b8819ea9524e35db8(command); break; - case _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6 castedCommand: - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6(castedCommand); + case 24: + ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_eee23e58897b48f7ba844e115ca6978e(command); break; - case _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 castedCommand: - ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4(castedCommand); + case 23: + ReceiveCommand__a857fd6c221f7f04fa9ed500e317642a_d982f989b8ee4d79b39706515c828726(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_a857fd6c221f7f04fa9ed500e317642a Unhandled command: {command.GetType()}."); + $"CoherenceSync_a857fd6c221f7f04fa9ed500e317642a Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -605,4 +534,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_b222c7ad94d9f44beb6d7a92a631da26.cs b/Assets/coherence/baked/CoherenceSync_b222c7ad94d9f44beb6d7a92a631da26.cs index f05f038..4c2ba19 100644 --- a/Assets/coherence/baked/CoherenceSync_b222c7ad94d9f44beb6d7a92a631da26.cs +++ b/Assets/coherence/baked/CoherenceSync_b222c7ad94d9f44beb6d7a92a631da26.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_b222c7ad94d9f44beb6d7a92a631da26_2098c8040ea04eefa25aed5596a0cdf5 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_b222c7ad94d9f44beb6d7a92a631da26_54b751772db04730b3d85ff8b0b02aa3 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_b222c7ad94d9f44beb6d7a92a631da26_5747e03959d842b7b2f4ff49df33a903 : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve] @@ -221,42 +208,17 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH } } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_b222c7ad94d9f44beb6d7a92a631da26 Unhandled command: {command.GetType()}."); + $"CoherenceSync_b222c7ad94d9f44beb6d7a92a631da26 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -269,4 +231,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_b7bb309cd508641d3887ec91696ac623.cs b/Assets/coherence/baked/CoherenceSync_b7bb309cd508641d3887ec91696ac623.cs deleted file mode 100644 index 81059d7..0000000 --- a/Assets/coherence/baked/CoherenceSync_b7bb309cd508641d3887ec91696ac623.cs +++ /dev/null @@ -1,601 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using System; - using System.Collections.Generic; - using System.Linq; - using UnityEngine; - using Coherence.Toolkit; - using Coherence.Toolkit.Bindings; - using Coherence.Entities; - using Coherence.ProtocolDef; - using Coherence.Brook; - using Coherence.Toolkit.Bindings.ValueBindings; - using Coherence.Toolkit.Bindings.TransformBindings; - using Coherence.Connection; - using Coherence.SimulationFrame; - using Coherence.Interpolation; - using Coherence.Log; - using Logger = Coherence.Log.Logger; - using UnityEngine.Scripting; - [UnityEngine.Scripting.Preserve, System.Serializable] - public class Binding_b7bb309cd508641d3887ec91696ac623_22b719ee1f9c41de9e3ec27a05a413a8 : PositionBinding - { - private global::UnityEngine.Transform CastedUnityComponent; - - protected override void OnBindingCloned() - { - CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; - } - - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; - - public override UnityEngine.Vector3 Value - { - get { return (UnityEngine.Vector3)(coherenceSync.coherencePosition); } - set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } - } - - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) - { - var value = ((WorldPosition)coherenceComponent).value; - if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; - - return (value, simFrame); - } - - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) - { - var update = (WorldPosition)coherenceComponent; - if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) - { - update.value = Value; - } - else - { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); - } - - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } - } - [UnityEngine.Scripting.Preserve, System.Serializable] - public class Binding_b7bb309cd508641d3887ec91696ac623_a947e12913b64796ae924a538e3de89b : IntBinding - { - private global::ChoppableTree CastedUnityComponent; - - protected override void OnBindingCloned() - { - CastedUnityComponent = (global::ChoppableTree)UnityComponent; - } - - public override global::System.Type CoherenceComponentType => typeof(_b7bb309cd508641d3887ec91696ac623_1406947345458511524); - public override string CoherenceComponentName => "_b7bb309cd508641d3887ec91696ac623_1406947345458511524"; - public override uint FieldMask => 0b00000000000000000000000000000001; - - public override System.Int32 Value - { - get { return (System.Int32)(CastedUnityComponent.energy); } - set { CastedUnityComponent.energy = (System.Int32)(value); } - } - - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) - { - var value = ((_b7bb309cd508641d3887ec91696ac623_1406947345458511524)coherenceComponent).energy; - - var simFrame = ((_b7bb309cd508641d3887ec91696ac623_1406947345458511524)coherenceComponent).energySimulationFrame; - - return (value, simFrame); - } - - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) - { - var update = (_b7bb309cd508641d3887ec91696ac623_1406947345458511524)coherenceComponent; - if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) - { - update.energy = Value; - } - else - { - update.energy = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); - } - - update.energySimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _b7bb309cd508641d3887ec91696ac623_1406947345458511524(); - } - } - - [UnityEngine.Scripting.Preserve] - public class CoherenceSync_b7bb309cd508641d3887ec91696ac623 : CoherenceSyncBaked - { - private Entity entityId; - private Logger logger = Coherence.Log.Log.GetLogger(); - - private global::ChoppableTree _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6_CommandTarget; - private global::ChoppableTree _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7_CommandTarget; - private global::ChoppableTree _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09_CommandTarget; - - private InputBuffer<_b7bb309cd508641d3887ec91696ac623> inputBuffer; - private _b7bb309cd508641d3887ec91696ac623 currentInput; - private long lastAddedFrame = -1; - private CoherenceInput coherenceInput; - private long currentSimulationFrame => coherenceInput.CurrentSimulationFrame; - - private IClient client; - private CoherenceBridge bridge; - - private readonly Dictionary bakedValueBindings = new Dictionary() - { - ["22b719ee1f9c41de9e3ec27a05a413a8"] = new Binding_b7bb309cd508641d3887ec91696ac623_22b719ee1f9c41de9e3ec27a05a413a8(), - ["a947e12913b64796ae924a538e3de89b"] = new Binding_b7bb309cd508641d3887ec91696ac623_a947e12913b64796ae924a538e3de89b(), - }; - - private Dictionary> bakedCommandBindings = new Dictionary>(); - - public CoherenceSync_b7bb309cd508641d3887ec91696ac623() - { - bakedCommandBindings.Add("e5df7db2535f410690edf553148f2ac6", BakeCommandBinding__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6); - bakedCommandBindings.Add("64674b8d4999426fb995493ab95cb6d7", BakeCommandBinding__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7); - bakedCommandBindings.Add("195171a3094b49ce9dc624b38e8a6b09", BakeCommandBinding__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09); - } - - public override Binding BakeValueBinding(Binding valueBinding) - { - if (bakedValueBindings.TryGetValue(valueBinding.guid, out var bakedBinding)) - { - valueBinding.CloneTo(bakedBinding); - return bakedBinding; - } - - return null; - } - - public override void BakeCommandBinding(CommandBinding commandBinding, CommandsHandler commandsHandler) - { - if (bakedCommandBindings.TryGetValue(commandBinding.guid, out var commandBindingBaker)) - { - commandBindingBaker.Invoke(commandBinding, commandsHandler); - } - } - private void BakeCommandBinding__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6(CommandBinding commandBinding, CommandsHandler commandsHandler) - { - _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6_CommandTarget = (global::ChoppableTree)commandBinding.UnityComponent; - commandsHandler.AddBakedCommand( - "ChoppableTree.Chop", - "()", - SendCommand__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6, - ReceiveLocalCommand__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6, - MessageTarget.StateAuthorityOnly, - _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6_CommandTarget, - commandBinding.UsesMeta()); - } - - private void SendCommand__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6(GenericCommandRequestArgs requestArgs) - { - var command = new _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; - - - client.SendCommand(command, requestArgs.ChannelID); - } - - private void ReceiveLocalCommand__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6(GenericCommandRequestArgs requestArgs) - { - var command = new _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6(command); - } - - private void ReceiveCommand__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6(_b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6 command) - { - var target = _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6_CommandTarget; - target.Chop(); - } - private void BakeCommandBinding__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7(CommandBinding commandBinding, CommandsHandler commandsHandler) - { - _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7_CommandTarget = (global::ChoppableTree)commandBinding.UnityComponent; - commandsHandler.AddBakedCommand( - "ChoppableTree.ChangeState", - "(System.Boolean)", - SendCommand__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7, - ReceiveLocalCommand__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7, - MessageTarget.Other, - _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7_CommandTarget, - commandBinding.UsesMeta()); - } - - private void SendCommand__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7(GenericCommandRequestArgs requestArgs) - { - var command = new _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; - - command.toUp = (System.Boolean)requestArgs.Args[0]; - - client.SendCommand(command, requestArgs.ChannelID); - } - - private void ReceiveLocalCommand__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7(GenericCommandRequestArgs requestArgs) - { - var command = new _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.toUp = (System.Boolean)requestArgs.Args[0]; - - ReceiveCommand__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7(command); - } - - private void ReceiveCommand__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7(_b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7 command) - { - var target = _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7_CommandTarget; - target.ChangeState((System.Boolean)(command.toUp)); - } - private void BakeCommandBinding__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09(CommandBinding commandBinding, CommandsHandler commandsHandler) - { - _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09_CommandTarget = (global::ChoppableTree)commandBinding.UnityComponent; - commandsHandler.AddBakedCommand( - "ChoppableTree.PlayChopEffect", - "()", - SendCommand__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09, - ReceiveLocalCommand__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09, - MessageTarget.Other, - _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09_CommandTarget, - commandBinding.UsesMeta()); - } - - private void SendCommand__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09(GenericCommandRequestArgs requestArgs) - { - var command = new _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; - - - client.SendCommand(command, requestArgs.ChannelID); - } - - private void ReceiveLocalCommand__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09(GenericCommandRequestArgs requestArgs) - { - var command = new _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09(command); - } - - private void ReceiveCommand__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09(_b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09 command) - { - var target = _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09_CommandTarget; - target.PlayChopEffect(); - } - - public override void ReceiveCommand(IEntityCommand command) - { - switch (command) - { - case _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6 castedCommand: - ReceiveCommand__b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6(castedCommand); - break; - case _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7 castedCommand: - ReceiveCommand__b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7(castedCommand); - break; - case _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09 castedCommand: - ReceiveCommand__b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09(castedCommand); - break; - default: - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_b7bb309cd508641d3887ec91696ac623 Unhandled command: {command.GetType()}."); - break; - } - } - - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - components.Add(new Global()); - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - - public override void Dispose() - { - if (bridge != null) - { - bridge.OnLateFixedNetworkUpdate -= SendInputState; - } - } - - public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient client, CoherenceInput input, Logger logger) - { - this.logger = logger.With(); - this.bridge = bridge; - this.entityId = entityId; - this.client = client; - coherenceInput = input; - inputBuffer = new InputBuffer<_b7bb309cd508641d3887ec91696ac623>(coherenceInput.InitialBufferSize, coherenceInput.InitialInputDelay, coherenceInput.UseFixedSimulationFrames); - - coherenceInput.internalSetButton = SetButton; - coherenceInput.internalSetAxis = SetAxis; - coherenceInput.internalSetAxis2D = SetAxis2D; - coherenceInput.internalSetAxis3D = SetAxis3D; - coherenceInput.internalSetRotation = SetRotation; - coherenceInput.internalSetInteger = SetInteger; - coherenceInput.internalSetString = SetString; - coherenceInput.internalGetButton = GetButton; - coherenceInput.internalGetAxis = GetAxis; - coherenceInput.internalGetAxis2D = GetAxis2D; - coherenceInput.internalGetAxis3D = GetAxis3D; - coherenceInput.internalGetRotation = GetRotation; - coherenceInput.internalGetInteger = GetInteger; - coherenceInput.internalGetString = GetString; - coherenceInput.internalRequestBuffer = () => inputBuffer; - coherenceInput.internalOnInputReceived += OnInput; - - if (coherenceInput.UseFixedSimulationFrames) - { - bridge.OnLateFixedNetworkUpdate += SendInputState; - } - } - - private void SetButton(string name, bool value) - { - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input button of name: {name}."); - break; - } - } - - private void SetAxis(string name, float value) - { - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input axis of name: {name}."); - break; - } - } - - private void SetAxis2D(string name, Vector2 value) - { - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input axis2D of name: {name}."); - break; - } - } - - private void SetAxis3D(string name, Vector3 value) - { - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input axis3D of name: {name}."); - break; - } - } - - private void SetRotation(string name, Quaternion value) - { - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input rotation of name: {name}."); - break; - } - } - - private void SetInteger(string name, int value) - { - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input integer of name: {name}."); - break; - } - } - - private void SetString(string name, string value) - { - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input string of name: {name}."); - break; - } - } - - public override void SendInputState() - { - if (!coherenceInput.IsProducer || !coherenceInput.IsReadyToProcessInputs || !coherenceInput.IsInputOwner) - { - return; - } - - if (lastAddedFrame != currentSimulationFrame) - { - inputBuffer.AddInput(currentInput, currentSimulationFrame); - lastAddedFrame = currentSimulationFrame; - } - - while (inputBuffer.DequeueForSending(currentSimulationFrame, out long frameToSend, out _b7bb309cd508641d3887ec91696ac623 input, out bool differs)) - { - coherenceInput.DebugOnInputSent(frameToSend, input); - client.SendInput(input, frameToSend, entityId); - } - } - - private bool ShouldPollCurrentInput(long frame) - { - return coherenceInput.IsProducer && coherenceInput.Delay == 0 && frame == currentSimulationFrame; - } - - private bool GetButton(string name, long? simulationFrame) - { - long frame = simulationFrame.GetValueOrDefault(currentSimulationFrame); - inputBuffer.TryGetInput(frame, out _b7bb309cd508641d3887ec91696ac623 input); - - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input button of name: {name}."); - break; - } - - return default; - } - - private float GetAxis(string name, long? simulationFrame) - { - long frame = simulationFrame.GetValueOrDefault(currentSimulationFrame); - inputBuffer.TryGetInput(frame, out _b7bb309cd508641d3887ec91696ac623 input); - - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input axis of name: {name}."); - break; - } - - return default; - } - - private Vector2 GetAxis2D(string name, long? simulationFrame) - { - long frame = simulationFrame.GetValueOrDefault(currentSimulationFrame); - inputBuffer.TryGetInput(frame, out _b7bb309cd508641d3887ec91696ac623 input); - - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input axis2D of name: {name}."); - break; - } - - return Vector2.zero; - } - - private Vector3 GetAxis3D(string name, long? simulationFrame) - { - long frame = simulationFrame.GetValueOrDefault(currentSimulationFrame); - inputBuffer.TryGetInput(frame, out _b7bb309cd508641d3887ec91696ac623 input); - - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input axis3D of name: {name}."); - break; - } - - return Vector3.zero; - } - - private Quaternion GetRotation(string name, long? simulationFrame) - { - long frame = simulationFrame.GetValueOrDefault(currentSimulationFrame); - inputBuffer.TryGetInput(frame, out _b7bb309cd508641d3887ec91696ac623 input); - - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input rotation of name: {name}."); - break; - } - - return Quaternion.identity; - } - - private int GetInteger(string name, long? simulationFrame) - { - long frame = simulationFrame.GetValueOrDefault(currentSimulationFrame); - inputBuffer.TryGetInput(frame, out _b7bb309cd508641d3887ec91696ac623 input); - - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input integer of name: {name}."); - break; - } - - return 0; - } - - private string GetString(string name, long? simulationFrame) - { - long frame = simulationFrame.GetValueOrDefault(currentSimulationFrame); - inputBuffer.TryGetInput(frame, out _b7bb309cd508641d3887ec91696ac623 input); - - switch (name) - { - default: - logger.Error(Coherence.Log.Error.ToolkitInputMissingInput, $"No input integer of name: {name}."); - break; - } - - return null; - } - - private void OnInput(IEntityInput entityInput) - { - var input = (_b7bb309cd508641d3887ec91696ac623)entityInput; - coherenceInput.DebugOnInputReceived(entityInput.Frame, entityInput); - inputBuffer.ReceiveInput(input, entityInput.Frame); - } - } -} diff --git a/Assets/coherence/baked/CoherenceSync_e88772ebcad1c4705a70788841635af4.cs b/Assets/coherence/baked/CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9.cs similarity index 57% rename from Assets/coherence/baked/CoherenceSync_e88772ebcad1c4705a70788841635af4.cs rename to Assets/coherence/baked/CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9.cs index b5d0597..d4a4474 100644 --- a/Assets/coherence/baked/CoherenceSync_e88772ebcad1c4705a70788841635af4.cs +++ b/Assets/coherence/baked/CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,8 +24,9 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] - public class Binding_e88772ebcad1c4705a70788841635af4_2dae9176e54344f4be6868e8a7239817 : PositionBinding + public class Binding_be191a041747c4eaeafee21d0cdcc2f9_9ba2b7305f854aadbbff8f6796ee38b5 : PositionBinding { private global::UnityEngine.Transform CastedUnityComponent; @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,44 +44,40 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve] - public class CoherenceSync_e88772ebcad1c4705a70788841635af4 : CoherenceSyncBaked + public class CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9 : CoherenceSyncBaked { private Entity entityId; - private Logger logger = Coherence.Log.Log.GetLogger(); + private Logger logger = Coherence.Log.Log.GetLogger(); @@ -89,12 +86,12 @@ public class CoherenceSync_e88772ebcad1c4705a70788841635af4 : CoherenceSyncBaked private readonly Dictionary bakedValueBindings = new Dictionary() { - ["2dae9176e54344f4be6868e8a7239817"] = new Binding_e88772ebcad1c4705a70788841635af4_2dae9176e54344f4be6868e8a7239817(), + ["9ba2b7305f854aadbbff8f6796ee38b5"] = new Binding_be191a041747c4eaeafee21d0cdcc2f9_9ba2b7305f854aadbbff8f6796ee38b5(), }; private Dictionary> bakedCommandBindings = new Dictionary>(); - public CoherenceSync_e88772ebcad1c4705a70788841635af4() + public CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9() { } @@ -117,52 +114,28 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH } } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_e88772ebcad1c4705a70788841635af4 Unhandled command: {command.GetType()}."); + $"CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient client, CoherenceInput input, Logger logger) { - this.logger = logger.With(); + this.logger = logger.With(); this.bridge = bridge; this.entityId = entityId; this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_b7bb309cd508641d3887ec91696ac623.cs.meta b/Assets/coherence/baked/CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9.cs.meta similarity index 83% rename from Assets/coherence/baked/CoherenceSync_b7bb309cd508641d3887ec91696ac623.cs.meta rename to Assets/coherence/baked/CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9.cs.meta index 0227e5f..856417d 100644 --- a/Assets/coherence/baked/CoherenceSync_b7bb309cd508641d3887ec91696ac623.cs.meta +++ b/Assets/coherence/baked/CoherenceSync_be191a041747c4eaeafee21d0cdcc2f9.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: ad0cfdf2bd80143da8b729a06a83efbb +guid: b38a5d02af4e74d92ba7a2276f662998 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/coherence/baked/CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897.cs b/Assets/coherence/baked/CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897.cs index ec71cee..670a21e 100644 --- a/Assets/coherence/baked/CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897.cs +++ b/Assets/coherence/baked/CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_c76bd173fbfcfba44982ec0a19f9c897_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_c76bd173fbfcfba44982ec0a19f9c897_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_c76bd173fbfcfba44982ec0a19f9c897_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_c76bd173fbfcfba44982ec0a19f9c897_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437); - public override string CoherenceComponentName => "_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 47; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_c76bd173fbfcfba44982ec0a19f9c897_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437); - public override string CoherenceComponentName => "_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 47; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_c76bd173fbfcfba44982ec0a19f9c897_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794); - public override string CoherenceComponentName => "_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 46; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_c76bd173fbfcfba44982ec0a19f9c897_f2d1c22c30b044c8bb3dddc445e2c67a : ReferenceBinding @@ -340,46 +309,40 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::PositionedObject)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932); - public override string CoherenceComponentName => "_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 45; + public override int FieldIndex => 0; public override Entity Value { - get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId(CastedUnityComponent.objectAnchorSync); } + get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId((ICoherenceSync)(CastedUnityComponent.objectAnchorSync)); } set { CastedUnityComponent.objectAnchorSync = coherenceSync.CoherenceBridge.EntityIdToCoherenceSync(value); } } - protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932)coherenceComponent).objectAnchorSync; + var field = coherenceComponent.GetField(0); + + var value = field.GetEntity(); - var simFrame = ((_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932)coherenceComponent).objectAnchorSyncSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.objectAnchorSync = Value; + field.SetEntity(Value); } else { - update.objectAnchorSync = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetEntity(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.objectAnchorSyncSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932(); - } + } } [UnityEngine.Scripting.Preserve] @@ -388,7 +351,7 @@ public class CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897 : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::PositionedObject _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + private global::PositionedObject _c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; private IClient client; @@ -409,7 +372,7 @@ public class CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897 : CoherenceSyncBaked public CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897() { - bakedCommandBindings.Add("ad9e635638034d88b0c6dcd8a9c83286", BakeCommandBinding__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286); + bakedCommandBindings.Add("1d97e8b68da1419a9d8bbf2023980031", BakeCommandBinding__c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031); } public override Binding BakeValueBinding(Binding valueBinding) @@ -430,87 +393,58 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + _c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + var _c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031_localTarget = (global::PositionedObject)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "PositionedObject.PlayReappearShaderEffect", "()", - SendCommand__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286, - ReceiveLocalCommand__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286, + SendCommand__c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031, + __args => ReceiveLocalCommand__c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031(__args, _c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031_localTarget), MessageTarget.All, - _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget, + _c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void SendCommand__c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs) { - var command = new _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(26, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs, global::PositionedObject target) { - var command = new _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286(command); + target.PlayReappearShaderEffect(); } - private void ReceiveCommand__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286(_c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286 command) + private void ReceiveCommand__c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031(CommandData command) { - var target = _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + var target = _c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; + + + command.Dispose(); + target.PlayReappearShaderEffect(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286 castedCommand: - ReceiveCommand__c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286(castedCommand); + case 26: + ReceiveCommand__c76bd173fbfcfba44982ec0a19f9c897_1d97e8b68da1419a9d8bbf2023980031(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897 Unhandled command: {command.GetType()}."); + $"CoherenceSync_c76bd173fbfcfba44982ec0a19f9c897 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -523,4 +457,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_cd9bcc1feead9419fac0c5981ce85c23.cs b/Assets/coherence/baked/CoherenceSync_cd9bcc1feead9419fac0c5981ce85c23.cs index f3be71e..67ddbd0 100644 --- a/Assets/coherence/baked/CoherenceSync_cd9bcc1feead9419fac0c5981ce85c23.cs +++ b/Assets/coherence/baked/CoherenceSync_cd9bcc1feead9419fac0c5981ce85c23.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_35fe21b9614149b48553511c0683c2f9 : IntBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::CosmeticsChanger)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 52; + public override int FieldIndex => 0; public override System.Int32 Value { @@ -43,36 +44,31 @@ public override System.Int32 Value set { CastedUnityComponent.currentBackpack = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentBackpack; + var field = coherenceComponent.GetField(0); + + var value = field.GetInt(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentBackpackSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.currentBackpack = Value; + field.SetInt(Value); } else { - update.currentBackpack = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.currentBackpackSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_9730620f6eb44d01b04e80e5fc5e4856 : IntBinding @@ -84,9 +80,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::CosmeticsChanger)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 52; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -94,36 +89,31 @@ public override System.Int32 Value set { CastedUnityComponent.currentSkinTone = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentSkinTone; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentSkinToneSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.currentSkinTone = Value; + field.SetInt(Value); } else { - update.currentSkinTone = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.currentSkinToneSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_6c9facfb02c7402492da2e6e9e51ae3e : IntBinding @@ -135,9 +125,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::CosmeticsChanger)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618"; - public override uint FieldMask => 0b00000000000000000000000000000100; + public override uint CoherenceComponentID => 52; + public override int FieldIndex => 2; public override System.Int32 Value { @@ -145,36 +134,31 @@ public override System.Int32 Value set { CastedUnityComponent.currentClothes = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentClothes; + var field = coherenceComponent.GetField(2); + + var value = field.GetInt(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentClothesSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent; + var field = coherenceComponent.GetField(2); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.currentClothes = Value; + field.SetInt(Value); } else { - update.currentClothes = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.currentClothesSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_665a00acfb6d46d0a9e9276e9681a4ff : IntBinding @@ -186,9 +170,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::CosmeticsChanger)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618"; - public override uint FieldMask => 0b00000000000000000000000000001000; + public override uint CoherenceComponentID => 52; + public override int FieldIndex => 3; public override System.Int32 Value { @@ -196,36 +179,31 @@ public override System.Int32 Value set { CastedUnityComponent.currentBody = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentBody; + var field = coherenceComponent.GetField(3); + + var value = field.GetInt(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentBodySimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent; + var field = coherenceComponent.GetField(3); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.currentBody = Value; + field.SetInt(Value); } else { - update.currentBody = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.currentBodySimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_afb54d316be244a890e58fd53680e2d4 : IntBinding @@ -237,9 +215,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::CosmeticsChanger)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618"; - public override uint FieldMask => 0b00000000000000000000000000010000; + public override uint CoherenceComponentID => 52; + public override int FieldIndex => 4; public override System.Int32 Value { @@ -247,36 +224,31 @@ public override System.Int32 Value set { CastedUnityComponent.currentHairstyle = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentHairstyle; + var field = coherenceComponent.GetField(4); + + var value = field.GetInt(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent).currentHairstyleSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)coherenceComponent; + var field = coherenceComponent.GetField(4); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.currentHairstyle = Value; + field.SetInt(Value); } else { - update.currentHairstyle = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.currentHairstyleSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_4d9a62442a074534bca027258cca3b8c : PositionBinding @@ -288,9 +260,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -298,37 +269,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_60b57dc105e34765bb249dbf96b35ed4 : RotationBinding @@ -340,9 +307,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -350,36 +316,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_9d071ea42a6e41dc955438febad4d202 : ScaleBinding @@ -391,9 +353,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -401,36 +362,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_2ffecec9e60b43ea89f0a6e4bd8598b3 : StringBinding @@ -442,9 +399,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::TMPro.TextMeshProUGUI)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 49; + public override int FieldIndex => 0; public override System.String Value { @@ -452,36 +408,31 @@ public override System.String Value set { CastedUnityComponent.text = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181)coherenceComponent).text; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181)coherenceComponent).textSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.text = Value; + field.SetString(Value); } else { - update.text = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.textSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_e1e87976a62a499c9c88381bbdde8ec3 : DeepPositionBinding @@ -493,9 +444,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 51; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -503,36 +453,32 @@ public override UnityEngine.Vector3 Value set { CastedUnityComponent.localPosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408)coherenceComponent).position; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408)coherenceComponent).positionSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.position = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.position = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.positionSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_b6102148731e46228baec06b4dd806c0 : FloatAnimatorParameterBinding @@ -544,9 +490,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Animator)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 48; + public override int FieldIndex => 0; public override System.Single Value { @@ -554,36 +499,32 @@ public override System.Single Value set { CastedUnityComponent.SetFloat(CastedDescriptor.ParameterHash, value); } } - protected override (System.Single value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Single value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).MoveSpeed; + var field = coherenceComponent.GetField(0); + + var value = field.GetFloat(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).MoveSpeedSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.MoveSpeed = Value; + field.SetFloat(Value); } else { - update.MoveSpeed = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetFloat(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.MoveSpeedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_779cfe66b4254a8089f517a1867b19aa : BoolAnimatorParameterBinding @@ -595,9 +536,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Animator)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 48; + public override int FieldIndex => 1; public override System.Boolean Value { @@ -605,36 +545,31 @@ public override System.Boolean Value set { CastedUnityComponent.SetBool(CastedDescriptor.ParameterHash, value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).Grounded; + var field = coherenceComponent.GetField(1); + + var value = field.GetBool(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).GroundedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.Grounded = Value; + field.SetBool(Value); } else { - update.Grounded = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.GroundedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_787a2c4d82f44358ba8da3ebd14885aa : BoolAnimatorParameterBinding @@ -646,9 +581,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Animator)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322"; - public override uint FieldMask => 0b00000000000000000000000000000100; + public override uint CoherenceComponentID => 48; + public override int FieldIndex => 2; public override System.Boolean Value { @@ -656,36 +590,31 @@ public override System.Boolean Value set { CastedUnityComponent.SetBool(CastedDescriptor.ParameterHash, value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).CarryingBig; + var field = coherenceComponent.GetField(2); + + var value = field.GetBool(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).CarryingBigSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent; + var field = coherenceComponent.GetField(2); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.CarryingBig = Value; + field.SetBool(Value); } else { - update.CarryingBig = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.CarryingBigSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_3cfde6644c5b46d69583102fdb4ad3d0 : BoolAnimatorParameterBinding @@ -697,9 +626,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Animator)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322"; - public override uint FieldMask => 0b00000000000000000000000000001000; + public override uint CoherenceComponentID => 48; + public override int FieldIndex => 3; public override System.Boolean Value { @@ -707,36 +635,31 @@ public override System.Boolean Value set { CastedUnityComponent.SetBool(CastedDescriptor.ParameterHash, value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).IsChopping; + var field = coherenceComponent.GetField(3); + + var value = field.GetBool(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).IsChoppingSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent; + var field = coherenceComponent.GetField(3); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.IsChopping = Value; + field.SetBool(Value); } else { - update.IsChopping = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.IsChoppingSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_2c2f3f51b6a9480aa62ab1a234005a23 : BoolAnimatorParameterBinding @@ -748,9 +671,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Animator)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322"; - public override uint FieldMask => 0b00000000000000000000000000010000; + public override uint CoherenceComponentID => 48; + public override int FieldIndex => 4; public override System.Boolean Value { @@ -758,36 +680,31 @@ public override System.Boolean Value set { CastedUnityComponent.SetBool(CastedDescriptor.ParameterHash, value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).IsSitting; + var field = coherenceComponent.GetField(4); + + var value = field.GetBool(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent).IsSittingSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)coherenceComponent; + var field = coherenceComponent.GetField(4); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.IsSitting = Value; + field.SetBool(Value); } else { - update.IsSitting = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.IsSittingSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_6529ec93596b48d8a68a785189a35e85 : StringBinding @@ -799,9 +716,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 50; + public override int FieldIndex => 0; public override System.String Value { @@ -809,36 +725,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_cd9bcc1feead9419fac0c5981ce85c23_94d662d5ece44c27a4979d590435d027 : IntBinding @@ -850,9 +761,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216); - public override string CoherenceComponentName => "_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 50; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -860,36 +770,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216(); - } + } } [UnityEngine.Scripting.Preserve] @@ -969,440 +874,379 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6_CommandTarget = (global::UnityEngine.Animator)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6_localTarget = (global::UnityEngine.Animator)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "UnityEngine.Animator.SetTrigger", "(System.String)", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(__args, _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6_localTarget), MessageTarget.All, - _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(29, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.name = (System.String)requestArgs.Args[0]; + command.GetField(0).SetString(((System.String)requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(GenericCommandRequestArgs requestArgs, global::UnityEngine.Animator target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.name = (System.String)requestArgs.Args[0]; - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(command); + target.SetTrigger((global::System.String)(requestArgs.Args[0])); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(_cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6_CommandTarget; - target.SetTrigger((System.String)(command.name)); + + var arg0 = (System.String)(command.GetField(0).GetString()); + + command.Dispose(); + + target.SetTrigger(arg0); } private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8_CommandTarget = (global::ChopAction)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8_localTarget = (global::ChopAction)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "ChopAction.PlayChopSound", "()", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(__args, _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8_localTarget), MessageTarget.Other, - _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(30, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(GenericCommandRequestArgs requestArgs, global::ChopAction target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(command); + target.PlayChopSound(); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(_cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8_CommandTarget; + + + command.Dispose(); + target.PlayChopSound(); } private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142_CommandTarget = (global::SitAction)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142_localTarget = (global::SitAction)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "SitAction.PlaySitSound", "()", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(__args, _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142_localTarget), MessageTarget.Other, - _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(31, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(GenericCommandRequestArgs requestArgs, global::SitAction target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(command); + target.PlaySitSound(); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(_cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142_CommandTarget; + + + command.Dispose(); + target.PlaySitSound(); } private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d_CommandTarget = (global::Emotes)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d_localTarget = (global::Emotes)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Emotes.PlayYesSound", "()", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(__args, _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d_localTarget), MessageTarget.All, - _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(33, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(GenericCommandRequestArgs requestArgs, global::Emotes target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(command); + target.PlayYesSound(); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(_cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d_CommandTarget; + + + command.Dispose(); + target.PlayYesSound(); } private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c_CommandTarget = (global::Emotes)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c_localTarget = (global::Emotes)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Emotes.PlayNoSound", "()", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(__args, _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c_localTarget), MessageTarget.All, - _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(34, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(GenericCommandRequestArgs requestArgs, global::Emotes target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(command); + target.PlayNoSound(); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(_cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c_CommandTarget; + + + command.Dispose(); + target.PlayNoSound(); } private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829_CommandTarget = (global::Emotes)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829_localTarget = (global::Emotes)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Emotes.PlayHeySound", "()", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(__args, _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829_localTarget), MessageTarget.All, - _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(28, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(GenericCommandRequestArgs requestArgs, global::Emotes target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(command); + target.PlayHeySound(); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(_cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829_CommandTarget; + + + command.Dispose(); + target.PlayHeySound(); } private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41_CommandTarget = (global::GrabAction)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41_localTarget = (global::GrabAction)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "GrabAction.PlayPickUpSound", "()", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(__args, _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41_localTarget), MessageTarget.All, - _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(27, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(GenericCommandRequestArgs requestArgs, global::GrabAction target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(command); + target.PlayPickUpSound(); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(_cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41_CommandTarget; + + + command.Dispose(); + target.PlayPickUpSound(); } private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5_CommandTarget = (global::GrabAction)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5_localTarget = (global::GrabAction)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "GrabAction.PlayDropSound", "()", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(__args, _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5_localTarget), MessageTarget.All, - _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(32, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(GenericCommandRequestArgs requestArgs, global::GrabAction target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(command); + target.PlayDropSound(); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(_cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5_CommandTarget; + + + command.Dispose(); + target.PlayDropSound(); } private void BakeCommandBinding__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(CommandBinding commandBinding, CommandsHandler commandsHandler) { _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe_CommandTarget = (global::Chat)commandBinding.UnityComponent; + var _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe_localTarget = (global::Chat)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "Chat.SendChatMessage", "(System.Byte[])", SendCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe, - ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe, + __args => ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(__args, _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe_localTarget), MessageTarget.Other, - _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe_CommandTarget, + _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe_localTarget, commandBinding.UsesMeta()); } private void SendCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(GenericCommandRequestArgs requestArgs) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(35, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.encodedMessage = (System.Byte[])requestArgs.Args[0]; + command.GetField(0).SetBytes(((System.Byte[])requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(GenericCommandRequestArgs requestArgs, global::Chat target) { - var command = new _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.encodedMessage = (System.Byte[])requestArgs.Args[0]; - - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(command); + target.SendChatMessage((global::System.Byte[])(requestArgs.Args[0])); } - private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(_cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe command) + private void ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(CommandData command) { var target = _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe_CommandTarget; - target.SendChatMessage((System.Byte[])(command.encodedMessage)); + + var arg0 = (System.Byte[])(command.GetField(0).GetBytes()); + + command.Dispose(); + + target.SendChatMessage(arg0); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(castedCommand); + case 29: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6(command); break; - case _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(castedCommand); + case 30: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8(command); break; - case _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(castedCommand); + case 31: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142(command); break; - case _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(castedCommand); + case 33: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d(command); break; - case _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(castedCommand); + case 34: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c(command); break; - case _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(castedCommand); + case 28: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829(command); break; - case _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(castedCommand); + case 27: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41(command); break; - case _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(castedCommand); + case 32: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5(command); break; - case _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe castedCommand: - ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(castedCommand); + case 35: + ReceiveCommand__cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_cd9bcc1feead9419fac0c5981ce85c23 Unhandled command: {command.GetType()}."); + $"CoherenceSync_cd9bcc1feead9419fac0c5981ce85c23 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -1415,4 +1259,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_e74854605b68b435280bc0ac73fef6c1.cs b/Assets/coherence/baked/CoherenceSync_e74854605b68b435280bc0ac73fef6c1.cs index 052258f..b9abf8b 100644 --- a/Assets/coherence/baked/CoherenceSync_e74854605b68b435280bc0ac73fef6c1.cs +++ b/Assets/coherence/baked/CoherenceSync_e74854605b68b435280bc0ac73fef6c1.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_e74854605b68b435280bc0ac73fef6c1_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_e74854605b68b435280bc0ac73fef6c1_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_e74854605b68b435280bc0ac73fef6c1_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_e74854605b68b435280bc0ac73fef6c1_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_e74854605b68b435280bc0ac73fef6c1_929081723536030390); - public override string CoherenceComponentName => "_e74854605b68b435280bc0ac73fef6c1_929081723536030390"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 55; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_e74854605b68b435280bc0ac73fef6c1_929081723536030390)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_e74854605b68b435280bc0ac73fef6c1_929081723536030390)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_e74854605b68b435280bc0ac73fef6c1_929081723536030390)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _e74854605b68b435280bc0ac73fef6c1_929081723536030390(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_e74854605b68b435280bc0ac73fef6c1_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_e74854605b68b435280bc0ac73fef6c1_929081723536030390); - public override string CoherenceComponentName => "_e74854605b68b435280bc0ac73fef6c1_929081723536030390"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 55; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_e74854605b68b435280bc0ac73fef6c1_929081723536030390)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_e74854605b68b435280bc0ac73fef6c1_929081723536030390)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_e74854605b68b435280bc0ac73fef6c1_929081723536030390)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _e74854605b68b435280bc0ac73fef6c1_929081723536030390(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_e74854605b68b435280bc0ac73fef6c1_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_e74854605b68b435280bc0ac73fef6c1_831233887725647233); - public override string CoherenceComponentName => "_e74854605b68b435280bc0ac73fef6c1_831233887725647233"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 54; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_e74854605b68b435280bc0ac73fef6c1_831233887725647233)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_e74854605b68b435280bc0ac73fef6c1_831233887725647233)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_e74854605b68b435280bc0ac73fef6c1_831233887725647233)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _e74854605b68b435280bc0ac73fef6c1_831233887725647233(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_e74854605b68b435280bc0ac73fef6c1_f2d1c22c30b044c8bb3dddc445e2c67a : ReferenceBinding @@ -340,46 +309,40 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::PositionedObject)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_e74854605b68b435280bc0ac73fef6c1_6806255523165594879); - public override string CoherenceComponentName => "_e74854605b68b435280bc0ac73fef6c1_6806255523165594879"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 53; + public override int FieldIndex => 0; public override Entity Value { - get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId(CastedUnityComponent.objectAnchorSync); } + get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId((ICoherenceSync)(CastedUnityComponent.objectAnchorSync)); } set { CastedUnityComponent.objectAnchorSync = coherenceSync.CoherenceBridge.EntityIdToCoherenceSync(value); } } - protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_e74854605b68b435280bc0ac73fef6c1_6806255523165594879)coherenceComponent).objectAnchorSync; + var field = coherenceComponent.GetField(0); + + var value = field.GetEntity(); - var simFrame = ((_e74854605b68b435280bc0ac73fef6c1_6806255523165594879)coherenceComponent).objectAnchorSyncSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_e74854605b68b435280bc0ac73fef6c1_6806255523165594879)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.objectAnchorSync = Value; + field.SetEntity(Value); } else { - update.objectAnchorSync = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetEntity(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.objectAnchorSyncSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _e74854605b68b435280bc0ac73fef6c1_6806255523165594879(); - } + } } [UnityEngine.Scripting.Preserve] @@ -388,7 +351,7 @@ public class CoherenceSync_e74854605b68b435280bc0ac73fef6c1 : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::PositionedObject _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + private global::PositionedObject _e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; private IClient client; @@ -409,7 +372,7 @@ public class CoherenceSync_e74854605b68b435280bc0ac73fef6c1 : CoherenceSyncBaked public CoherenceSync_e74854605b68b435280bc0ac73fef6c1() { - bakedCommandBindings.Add("ad9e635638034d88b0c6dcd8a9c83286", BakeCommandBinding__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286); + bakedCommandBindings.Add("1d97e8b68da1419a9d8bbf2023980031", BakeCommandBinding__e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031); } public override Binding BakeValueBinding(Binding valueBinding) @@ -430,87 +393,58 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + _e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + var _e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031_localTarget = (global::PositionedObject)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "PositionedObject.PlayReappearShaderEffect", "()", - SendCommand__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286, - ReceiveLocalCommand__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286, + SendCommand__e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031, + __args => ReceiveLocalCommand__e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031(__args, _e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031_localTarget), MessageTarget.All, - _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget, + _e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void SendCommand__e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs) { - var command = new _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(36, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs, global::PositionedObject target) { - var command = new _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286(command); + target.PlayReappearShaderEffect(); } - private void ReceiveCommand__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286(_e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286 command) + private void ReceiveCommand__e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031(CommandData command) { - var target = _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + var target = _e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; + + + command.Dispose(); + target.PlayReappearShaderEffect(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286 castedCommand: - ReceiveCommand__e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286(castedCommand); + case 36: + ReceiveCommand__e74854605b68b435280bc0ac73fef6c1_1d97e8b68da1419a9d8bbf2023980031(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_e74854605b68b435280bc0ac73fef6c1 Unhandled command: {command.GetType()}."); + $"CoherenceSync_e74854605b68b435280bc0ac73fef6c1 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -523,4 +457,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_ec47cd7906b7749f4853524abf78e799.cs b/Assets/coherence/baked/CoherenceSync_ec47cd7906b7749f4853524abf78e799.cs index d8586ae..5489f51 100644 --- a/Assets/coherence/baked/CoherenceSync_ec47cd7906b7749f4853524abf78e799.cs +++ b/Assets/coherence/baked/CoherenceSync_ec47cd7906b7749f4853524abf78e799.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_ec47cd7906b7749f4853524abf78e799_060eae84e0a5489aa3f32d7c800cf950 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_ec47cd7906b7749f4853524abf78e799_750f70418bae4108b1e74427fb548aae : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_ec47cd7906b7749f4853524abf78e799_df5c2e4904154244b2afff47f563beea : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_ec47cd7906b7749f4853524abf78e799_189625fefb07446aac7880b2b0dbf320 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::ObjectAnchor)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_ec47cd7906b7749f4853524abf78e799_432812263773753349); - public override string CoherenceComponentName => "_ec47cd7906b7749f4853524abf78e799_432812263773753349"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 56; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.holdingForUUID = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent).holdingForUUID; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent).holdingForUUIDSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.holdingForUUID = Value; + field.SetString(Value); } else { - update.holdingForUUID = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.holdingForUUIDSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _ec47cd7906b7749f4853524abf78e799_432812263773753349(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_ec47cd7906b7749f4853524abf78e799_120b91f3d4bd4bc3ae37cce0009abd40 : BoolBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::ObjectAnchor)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_ec47cd7906b7749f4853524abf78e799_432812263773753349); - public override string CoherenceComponentName => "_ec47cd7906b7749f4853524abf78e799_432812263773753349"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 56; + public override int FieldIndex => 1; public override System.Boolean Value { @@ -248,36 +228,31 @@ public override System.Boolean Value set { CastedUnityComponent.isObjectPresent = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent).isObjectPresent; + var field = coherenceComponent.GetField(1); + + var value = field.GetBool(); - var simFrame = ((_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent).isObjectPresentSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isObjectPresent = Value; + field.SetBool(Value); } else { - update.isObjectPresent = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isObjectPresentSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _ec47cd7906b7749f4853524abf78e799_432812263773753349(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_ec47cd7906b7749f4853524abf78e799_74c49d2eed9146be872d431e635e3816 : StringBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::ObjectAnchor)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_ec47cd7906b7749f4853524abf78e799_432812263773753349); - public override string CoherenceComponentName => "_ec47cd7906b7749f4853524abf78e799_432812263773753349"; - public override uint FieldMask => 0b00000000000000000000000000000100; + public override uint CoherenceComponentID => 56; + public override int FieldIndex => 2; public override System.String Value { @@ -299,36 +273,31 @@ public override System.String Value set { CastedUnityComponent.syncConfigId = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent).syncConfigId; + var field = coherenceComponent.GetField(2); + + var value = field.GetString(); - var simFrame = ((_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent).syncConfigIdSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_ec47cd7906b7749f4853524abf78e799_432812263773753349)coherenceComponent; + var field = coherenceComponent.GetField(2); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.syncConfigId = Value; + field.SetString(Value); } else { - update.syncConfigId = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.syncConfigIdSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _ec47cd7906b7749f4853524abf78e799_432812263773753349(); - } + } } [UnityEngine.Scripting.Preserve] @@ -381,86 +350,57 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH private void BakeCommandBinding__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(CommandBinding commandBinding, CommandsHandler commandsHandler) { _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d_CommandTarget = (global::ObjectAnchor)commandBinding.UnityComponent; + var _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d_localTarget = (global::ObjectAnchor)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "ObjectAnchor.ChangeLinkedObjectStateAuth", "(System.Boolean)", SendCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d, - ReceiveLocalCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d, + __args => ReceiveLocalCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(__args, _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d_localTarget), MessageTarget.StateAuthorityOnly, - _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d_CommandTarget, + _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d_localTarget, commandBinding.UsesMeta()); } private void SendCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(GenericCommandRequestArgs requestArgs) { - var command = new _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(37, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); - command.newState = (System.Boolean)requestArgs.Args[0]; + command.GetField(0).SetBool(((System.Boolean)requestArgs.Args[0])); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(GenericCommandRequestArgs requestArgs, global::ObjectAnchor target) { - var command = new _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - command.newState = (System.Boolean)requestArgs.Args[0]; - - ReceiveCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(command); + target.ChangeLinkedObjectStateAuth((global::System.Boolean)(requestArgs.Args[0])); } - private void ReceiveCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(_ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d command) + private void ReceiveCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(CommandData command) { var target = _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d_CommandTarget; - target.ChangeLinkedObjectStateAuth((System.Boolean)(command.newState)); + + var arg0 = (System.Boolean)(command.GetField(0).GetBool()); + + command.Dispose(); + + target.ChangeLinkedObjectStateAuth(arg0); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d castedCommand: - ReceiveCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(castedCommand); + case 37: + ReceiveCommand__ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_ec47cd7906b7749f4853524abf78e799 Unhandled command: {command.GetType()}."); + $"CoherenceSync_ec47cd7906b7749f4853524abf78e799 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -473,4 +413,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CoherenceSync_f446f3c484ae048c4ba11ef7b8642420.cs b/Assets/coherence/baked/CoherenceSync_f446f3c484ae048c4ba11ef7b8642420.cs index 2768a55..552be97 100644 --- a/Assets/coherence/baked/CoherenceSync_f446f3c484ae048c4ba11ef7b8642420.cs +++ b/Assets/coherence/baked/CoherenceSync_f446f3c484ae048c4ba11ef7b8642420.cs @@ -4,6 +4,7 @@ // // Generated file. DO NOT EDIT! // + namespace Coherence.Generated { using System; @@ -23,6 +24,7 @@ namespace Coherence.Generated using Coherence.Log; using Logger = Coherence.Log.Logger; using UnityEngine.Scripting; + [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_f446f3c484ae048c4ba11ef7b8642420_0d09d827e9dc48d48234312ff3610eb4 : PositionBinding { @@ -33,9 +35,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldPosition); - public override string CoherenceComponentName => "WorldPosition"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 0; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -43,37 +44,33 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherencePosition = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldPosition)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); if (!coherenceSync.HasParentWithCoherenceSync) { value += floatingOriginDelta; } - var simFrame = ((WorldPosition)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldPosition)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldPosition(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_f446f3c484ae048c4ba11ef7b8642420_ea22c661324048629b36fc289800b247 : RotationBinding @@ -85,9 +82,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(WorldOrientation); - public override string CoherenceComponentName => "WorldOrientation"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 1; + public override int FieldIndex => 0; public override UnityEngine.Quaternion Value { @@ -95,36 +91,32 @@ public override UnityEngine.Quaternion Value set { coherenceSync.coherenceRotation = (UnityEngine.Quaternion)(value); } } - protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Quaternion value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((WorldOrientation)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetQuaternion().ToUnityQuaternion(); - var simFrame = ((WorldOrientation)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (WorldOrientation)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetQuaternion(Value.ToCoreQuaternion()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetQuaternion(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToCoreQuaternion()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new WorldOrientation(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_f446f3c484ae048c4ba11ef7b8642420_abd6ea830b7b416c8a6dd35eb11f2a4f : ScaleBinding @@ -136,9 +128,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::UnityEngine.Transform)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(GenericScale); - public override string CoherenceComponentName => "GenericScale"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 17; + public override int FieldIndex => 0; public override UnityEngine.Vector3 Value { @@ -146,36 +137,32 @@ public override UnityEngine.Vector3 Value set { coherenceSync.coherenceLocalScale = (UnityEngine.Vector3)(value); } } - protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (UnityEngine.Vector3 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((GenericScale)coherenceComponent).value; + var field = coherenceComponent.GetField(0); + + var value = field.GetVector3().ToUnityVector3(); - var simFrame = ((GenericScale)coherenceComponent).valueSimulationFrame; + var simFrame = field.GetSimFrame(); return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (GenericScale)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.value = Value; + field.SetVector3(Value.ToVector3d()); } else { - update.value = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetVector3(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond).ToVector3d()); } - update.valueSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new GenericScale(); - } + field.SetSimFrame(simFrame); + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_f446f3c484ae048c4ba11ef7b8642420_59b52bcb476d404a94c7b0a30cfbaf19 : StringBinding @@ -187,9 +174,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761); - public override string CoherenceComponentName => "_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 57; + public override int FieldIndex => 0; public override System.String Value { @@ -197,36 +183,31 @@ public override System.String Value set { CastedUnityComponent.path = (System.String)(value); } } - protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.String value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761)coherenceComponent).path; + var field = coherenceComponent.GetField(0); + + var value = field.GetString(); - var simFrame = ((_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761)coherenceComponent).pathSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.path = Value; + field.SetString(Value); } else { - update.path = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetString(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_f446f3c484ae048c4ba11ef7b8642420_cc845b8866124cb082e0181af5e7f681 : IntBinding @@ -238,9 +219,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Coherence.Toolkit.CoherenceNode)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761); - public override string CoherenceComponentName => "_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761"; - public override uint FieldMask => 0b00000000000000000000000000000010; + public override uint CoherenceComponentID => 57; + public override int FieldIndex => 1; public override System.Int32 Value { @@ -248,36 +228,31 @@ public override System.Int32 Value set { CastedUnityComponent.pathDirtyCounter = (System.Int32)(value); } } - protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Int32 value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761)coherenceComponent).pathDirtyCounter; + var field = coherenceComponent.GetField(1); + + var value = field.GetInt(); - var simFrame = ((_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761)coherenceComponent).pathDirtyCounterSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761)coherenceComponent; + var field = coherenceComponent.GetField(1); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.pathDirtyCounter = Value; + field.SetInt(Value); } else { - update.pathDirtyCounter = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetInt(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.pathDirtyCounterSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_f446f3c484ae048c4ba11ef7b8642420_2ef575fde1d84535b83a10a14e8b6cd0 : BoolBinding @@ -289,9 +264,8 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::Grabbable)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198); - public override string CoherenceComponentName => "_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 58; + public override int FieldIndex => 0; public override System.Boolean Value { @@ -299,36 +273,31 @@ public override System.Boolean Value set { CastedUnityComponent.isBeingCarried = (System.Boolean)(value); } } - protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (System.Boolean value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198)coherenceComponent).isBeingCarried; + var field = coherenceComponent.GetField(0); + + var value = field.GetBool(); - var simFrame = ((_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198)coherenceComponent).isBeingCarriedSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.isBeingCarried = Value; + field.SetBool(Value); } else { - update.isBeingCarried = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetBool(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.isBeingCarriedSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198(); - } + } } [UnityEngine.Scripting.Preserve, System.Serializable] public class Binding_f446f3c484ae048c4ba11ef7b8642420_f2d1c22c30b044c8bb3dddc445e2c67a : ReferenceBinding @@ -340,46 +309,40 @@ protected override void OnBindingCloned() CastedUnityComponent = (global::PositionedObject)UnityComponent; } - public override global::System.Type CoherenceComponentType => typeof(_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224); - public override string CoherenceComponentName => "_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224"; - public override uint FieldMask => 0b00000000000000000000000000000001; + public override uint CoherenceComponentID => 59; + public override int FieldIndex => 0; public override Entity Value { - get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId(CastedUnityComponent.objectAnchorSync); } + get { return coherenceSync.CoherenceBridge.UnityObjectToEntityId((ICoherenceSync)(CastedUnityComponent.objectAnchorSync)); } set { CastedUnityComponent.objectAnchorSync = coherenceSync.CoherenceBridge.EntityIdToCoherenceSync(value); } } - protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta) + protected override (Entity value, AbsoluteSimulationFrame simFrame) ReadComponentData(ComponentData coherenceComponent, Vector3 floatingOriginDelta) { - var value = ((_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224)coherenceComponent).objectAnchorSync; + var field = coherenceComponent.GetField(0); + + var value = field.GetEntity(); - var simFrame = ((_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224)coherenceComponent).objectAnchorSyncSimulationFrame; + var simFrame = (AbsoluteSimulationFrame)0; return (value, simFrame); } - public override ICoherenceComponentData WriteComponentData(ICoherenceComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) + public override void WriteComponentData(ComponentData coherenceComponent, AbsoluteSimulationFrame simFrame) { - var update = (_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224)coherenceComponent; + var field = coherenceComponent.GetField(0); + if (Interpolator.IsInterpolationNone || SyncMode == SyncMode.Manual) { - update.objectAnchorSync = Value; + field.SetEntity(Value); } else { - update.objectAnchorSync = GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond); + field.SetEntity(GetInterpolatedAt(simFrame / InterpolationSettings.SimulationFramesPerSecond)); } - update.objectAnchorSyncSimulationFrame = simFrame; - - return update; - } - - public override ICoherenceComponentData CreateComponentData() - { - return new _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224(); - } + } } [UnityEngine.Scripting.Preserve] @@ -388,7 +351,7 @@ public class CoherenceSync_f446f3c484ae048c4ba11ef7b8642420 : CoherenceSyncBaked private Entity entityId; private Logger logger = Coherence.Log.Log.GetLogger(); - private global::PositionedObject _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + private global::PositionedObject _f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; private IClient client; @@ -409,7 +372,7 @@ public class CoherenceSync_f446f3c484ae048c4ba11ef7b8642420 : CoherenceSyncBaked public CoherenceSync_f446f3c484ae048c4ba11ef7b8642420() { - bakedCommandBindings.Add("ad9e635638034d88b0c6dcd8a9c83286", BakeCommandBinding__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286); + bakedCommandBindings.Add("1d97e8b68da1419a9d8bbf2023980031", BakeCommandBinding__f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031); } public override Binding BakeValueBinding(Binding valueBinding) @@ -430,87 +393,58 @@ public override void BakeCommandBinding(CommandBinding commandBinding, CommandsH commandBindingBaker.Invoke(commandBinding, commandsHandler); } } - private void BakeCommandBinding__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286(CommandBinding commandBinding, CommandsHandler commandsHandler) + private void BakeCommandBinding__f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031(CommandBinding commandBinding, CommandsHandler commandsHandler) { - _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + _f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031_CommandTarget = (global::PositionedObject)commandBinding.UnityComponent; + var _f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031_localTarget = (global::PositionedObject)commandBinding.UnityComponent; commandsHandler.AddBakedCommand( "PositionedObject.PlayReappearShaderEffect", "()", - SendCommand__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286, - ReceiveLocalCommand__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286, + SendCommand__f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031, + __args => ReceiveLocalCommand__f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031(__args, _f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031_localTarget), MessageTarget.All, - _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget, + _f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031_localTarget, commandBinding.UsesMeta()); } - private void SendCommand__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void SendCommand__f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs) { - var command = new _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - command.UsesMeta = requestArgs.UsesMeta; - command.Target = requestArgs.Target; - command.Entity = entityId; + var command = client.SchemaDataFactory.CreateCommand(38, entityId, requestArgs.Target, + requestArgs.UsesMeta, requestArgs.Sender, requestArgs.Frame); client.SendCommand(command, requestArgs.ChannelID); } - private void ReceiveLocalCommand__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286(GenericCommandRequestArgs requestArgs) + private void ReceiveLocalCommand__f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031(GenericCommandRequestArgs requestArgs, global::PositionedObject target) { - var command = new _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286(); - command.Frame = requestArgs.Frame; - command.SenderClientID = requestArgs.Sender; - - - ReceiveCommand__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286(command); + target.PlayReappearShaderEffect(); } - private void ReceiveCommand__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286(_f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286 command) + private void ReceiveCommand__f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031(CommandData command) { - var target = _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286_CommandTarget; + var target = _f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031_CommandTarget; + + + command.Dispose(); + target.PlayReappearShaderEffect(); } - public override void ReceiveCommand(IEntityCommand command) + public override void ReceiveCommand(CommandData command) { - switch (command) + switch (command.CommandID) { - case _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286 castedCommand: - ReceiveCommand__f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286(castedCommand); + case 38: + ReceiveCommand__f446f3c484ae048c4ba11ef7b8642420_1d97e8b68da1419a9d8bbf2023980031(command); break; default: logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncReceiveCommandUnhandled, - $"CoherenceSync_f446f3c484ae048c4ba11ef7b8642420 Unhandled command: {command.GetType()}."); + $"CoherenceSync_f446f3c484ae048c4ba11ef7b8642420 Unhandled command: {command.CommandID}."); break; } } - public override void CreateEntity(bool usesLodsAtRuntime, string archetypeName, AbsoluteSimulationFrame simFrame, List components) - { - - if (!usesLodsAtRuntime) - { - return; - } - - if (Archetypes.IndexForName.TryGetValue(archetypeName, out int archetypeIndex)) - { - components.Add(new ArchetypeComponent - { - index = archetypeIndex, - indexSimulationFrame = simFrame, - FieldsMask = 0b1 - } - ); - - return; - } - - logger.Warning(Coherence.Log.Warning.ToolkitBakedSyncCreateEntityMissingArchetype, - $"Unable to find archetype {archetypeName} in dictionary. Please, bake manually (coherence > Bake)"); - } - public override void Dispose() { } @@ -523,4 +457,5 @@ public override void Initialize(Entity entityId, CoherenceBridge bridge, IClient this.client = client; } } + } diff --git a/Assets/coherence/baked/CommandsFor_Campfire.cs b/Assets/coherence/baked/CommandsFor_Campfire.cs new file mode 100644 index 0000000..5558c53 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_Campfire.cs @@ -0,0 +1,80 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_Campfire +{ + public static bool BurnObject(this Campfire self, MessageTarget target, System.String syncConfigID) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(BurnObject), target, (typeof(System.String), (object)syncConfigID)); + } + + public static bool PlayInstantEffects(this Campfire self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayInstantEffects), target); + } + + public static bool FireDiedDown(this Campfire self, MessageTarget target, System.Int32 oldEffectID, System.Int32 newEffectID) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(FireDiedDown), target, (typeof(System.Int32), (object)oldEffectID), (typeof(System.Int32), (object)newEffectID)); + } + + public static bool FireStateChanged(this Campfire self, MessageTarget target, System.Int32 oldEffectID, System.Int32 newEffectID, System.String syncConfigID) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(FireStateChanged), target, (typeof(System.Int32), (object)oldEffectID), (typeof(System.Int32), (object)newEffectID), (typeof(System.String), (object)syncConfigID)); + } +} +#endif + diff --git a/Assets/coherence/baked/CoherenceSync_e88772ebcad1c4705a70788841635af4.cs.meta b/Assets/coherence/baked/CommandsFor_Campfire.cs.meta similarity index 83% rename from Assets/coherence/baked/CoherenceSync_e88772ebcad1c4705a70788841635af4.cs.meta rename to Assets/coherence/baked/CommandsFor_Campfire.cs.meta index c2224f7..c359df1 100644 --- a/Assets/coherence/baked/CoherenceSync_e88772ebcad1c4705a70788841635af4.cs.meta +++ b/Assets/coherence/baked/CommandsFor_Campfire.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 07bb28fe491284c1db3ba70ce02a8a5a +guid: 23568a215b2bb461aa31fb2d2778e34b MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/coherence/baked/CommandsFor_Chair.cs b/Assets/coherence/baked/CommandsFor_Chair.cs new file mode 100644 index 0000000..bf1bcaf --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_Chair.cs @@ -0,0 +1,32 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_Chair +{ + public static bool ChangeState(this Chair self, MessageTarget target, System.Boolean newBusyState) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(ChangeState), target, (typeof(System.Boolean), (object)newBusyState)); + } +} +#endif + diff --git a/Assets/coherence/baked/Definition.cs.meta b/Assets/coherence/baked/CommandsFor_Chair.cs.meta similarity index 83% rename from Assets/coherence/baked/Definition.cs.meta rename to Assets/coherence/baked/CommandsFor_Chair.cs.meta index 9f02e18..0f7785f 100644 --- a/Assets/coherence/baked/Definition.cs.meta +++ b/Assets/coherence/baked/CommandsFor_Chair.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: d039fb5f8ce504763b3c9523c13d4da7 +guid: 045e9d3d082d5428484a3a10dc80265f MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/coherence/baked/CommandsFor_Chat.cs b/Assets/coherence/baked/CommandsFor_Chat.cs new file mode 100644 index 0000000..38f0a63 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_Chat.cs @@ -0,0 +1,32 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_Chat +{ + public static bool SendChatMessage(this Chat self, MessageTarget target, System.Byte[] encodedMessage) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(SendChatMessage), target, (typeof(System.Byte[]), (object)encodedMessage)); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_Chat.cs.meta b/Assets/coherence/baked/CommandsFor_Chat.cs.meta new file mode 100644 index 0000000..f5ce9a9 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_Chat.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e5d556f52dd3542ab913dfc3daea56c2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_ChopAction.cs b/Assets/coherence/baked/CommandsFor_ChopAction.cs new file mode 100644 index 0000000..da907af --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_ChopAction.cs @@ -0,0 +1,32 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_ChopAction +{ + public static bool PlayChopSound(this ChopAction self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayChopSound), target); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_ChopAction.cs.meta b/Assets/coherence/baked/CommandsFor_ChopAction.cs.meta new file mode 100644 index 0000000..55bb626 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_ChopAction.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d0e265d3324a049fd92471d0d25df12a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_ChoppableTree.cs b/Assets/coherence/baked/CommandsFor_ChoppableTree.cs new file mode 100644 index 0000000..10a8f75 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_ChoppableTree.cs @@ -0,0 +1,64 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_ChoppableTree +{ + public static bool Chop(this ChoppableTree self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(Chop), target); + } + + public static bool PlayChopEffect(this ChoppableTree self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayChopEffect), target); + } + + public static bool ChangeState(this ChoppableTree self, MessageTarget target, System.Boolean toUp) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(ChangeState), target, (typeof(System.Boolean), (object)toUp)); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_ChoppableTree.cs.meta b/Assets/coherence/baked/CommandsFor_ChoppableTree.cs.meta new file mode 100644 index 0000000..6f5babc --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_ChoppableTree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 78d29815810094234b8443b6d0fd0070 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_Emotes.cs b/Assets/coherence/baked/CommandsFor_Emotes.cs new file mode 100644 index 0000000..a45093c --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_Emotes.cs @@ -0,0 +1,64 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_Emotes +{ + public static bool PlayYesSound(this Emotes self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayYesSound), target); + } + + public static bool PlayNoSound(this Emotes self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayNoSound), target); + } + + public static bool PlayHeySound(this Emotes self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayHeySound), target); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_Emotes.cs.meta b/Assets/coherence/baked/CommandsFor_Emotes.cs.meta new file mode 100644 index 0000000..a4cbf6b --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_Emotes.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 60ee99e63bd2d48378e0abf7ce5b2b0c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_GrabAction.cs b/Assets/coherence/baked/CommandsFor_GrabAction.cs new file mode 100644 index 0000000..70d667d --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_GrabAction.cs @@ -0,0 +1,48 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_GrabAction +{ + public static bool PlayPickUpSound(this GrabAction self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayPickUpSound), target); + } + + public static bool PlayDropSound(this GrabAction self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayDropSound), target); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_GrabAction.cs.meta b/Assets/coherence/baked/CommandsFor_GrabAction.cs.meta new file mode 100644 index 0000000..0fea33e --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_GrabAction.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7afdd234a19ad4bb78567bf7c9f40a87 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_KeeperRobot.cs b/Assets/coherence/baked/CommandsFor_KeeperRobot.cs new file mode 100644 index 0000000..f5a0733 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_KeeperRobot.cs @@ -0,0 +1,80 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_KeeperRobot +{ + public static bool PlayHumSound(this KeeperRobot self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayHumSound), target); + } + + public static bool PlayVoiceSound(this KeeperRobot self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayVoiceSound), target); + } + + public static bool PlayConjure(this KeeperRobot self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayConjure), target); + } + + public static bool PlayAppear(this KeeperRobot self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayAppear), target); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_KeeperRobot.cs.meta b/Assets/coherence/baked/CommandsFor_KeeperRobot.cs.meta new file mode 100644 index 0000000..29976fe --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_KeeperRobot.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e8de5058969e14a45bea49480d04477d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_ObjectAnchor.cs b/Assets/coherence/baked/CommandsFor_ObjectAnchor.cs new file mode 100644 index 0000000..d03ad69 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_ObjectAnchor.cs @@ -0,0 +1,32 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_ObjectAnchor +{ + public static bool ChangeLinkedObjectStateAuth(this ObjectAnchor self, MessageTarget target, System.Boolean newState) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(ChangeLinkedObjectStateAuth), target, (typeof(System.Boolean), (object)newState)); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_ObjectAnchor.cs.meta b/Assets/coherence/baked/CommandsFor_ObjectAnchor.cs.meta new file mode 100644 index 0000000..70c4f61 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_ObjectAnchor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f9237b5980dc64c71b5e1a027380b8ea +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_PositionedObject.cs b/Assets/coherence/baked/CommandsFor_PositionedObject.cs new file mode 100644 index 0000000..715d8f2 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_PositionedObject.cs @@ -0,0 +1,32 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_PositionedObject +{ + public static bool PlayReappearShaderEffect(this PositionedObject self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlayReappearShaderEffect), target); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_PositionedObject.cs.meta b/Assets/coherence/baked/CommandsFor_PositionedObject.cs.meta new file mode 100644 index 0000000..d2250f9 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_PositionedObject.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 36860198688c04181a1aa50d7f679978 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_SitAction.cs b/Assets/coherence/baked/CommandsFor_SitAction.cs new file mode 100644 index 0000000..54d3ae9 --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_SitAction.cs @@ -0,0 +1,32 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_SitAction +{ + public static bool PlaySitSound(this SitAction self, MessageTarget target) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(PlaySitSound), target); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_SitAction.cs.meta b/Assets/coherence/baked/CommandsFor_SitAction.cs.meta new file mode 100644 index 0000000..c706b5b --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_SitAction.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0146f17a487d44ad5a4087763427b1a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/CommandsFor_UnityEngine_Animator.cs b/Assets/coherence/baked/CommandsFor_UnityEngine_Animator.cs new file mode 100644 index 0000000..5eed5bb --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_UnityEngine_Animator.cs @@ -0,0 +1,32 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if !COHERENCE_COMMAND_EXTENSIONS_DISABLE +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_UnityEngine_Animator +{ + public static bool SetTrigger(this UnityEngine.Animator self, MessageTarget target, System.String name) + { + if (!self) + { + return false; + } + + var _sync = self.GetComponentInParent(true); + if (!_sync) + { + return false; + } + + return _sync.SendCommand(self, nameof(SetTrigger), target, (typeof(System.String), (object)name)); + } +} +#endif + diff --git a/Assets/coherence/baked/CommandsFor_UnityEngine_Animator.cs.meta b/Assets/coherence/baked/CommandsFor_UnityEngine_Animator.cs.meta new file mode 100644 index 0000000..dbe335b --- /dev/null +++ b/Assets/coherence/baked/CommandsFor_UnityEngine_Animator.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c331ca8343f8941b0817cdde5dcb7143 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked/Definition.cs b/Assets/coherence/baked/Definition.cs deleted file mode 100644 index 44d476b..0000000 --- a/Assets/coherence/baked/Definition.cs +++ /dev/null @@ -1,965 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using System.Collections.Generic; - using Coherence.ProtocolDef; - using Coherence.Brook; - using Coherence.Connection; - using Coherence.Entities; - using Coherence.Serializer; - using Coherence.Log; - using Coherence.SimulationFrame; - - - [UnityEngine.Scripting.Preserve] - - [System.Serializable] - public class Definition : IDefinition - { - public const string schemaId = "2bac603d48769f76c1269aff72746aabbbe980c3"; - public const uint InternalWorldPosition = 0; - public const uint InternalWorldOrientation = 1; - public const uint InternalLocalUserComponent = 2; - public const uint InternalWorldPositionQuery = 3; - public const uint InternalArchetypeComponent = 4; - public const uint InternalPersistence = 5; - public const uint InternalConnectedEntity = 6; - public const uint InternalUniqueID = 7; - public const uint InternalConnection = 8; - public const uint InternalConnectionScene = 9; - public const uint InternalGlobal = 10; - public const uint InternalGlobalQuery = 11; - public const uint InternalTag = 12; - public const uint InternalTagQuery = 13; - public const uint InternalPreserveChildren = 14; - public const uint InternalScene = 15; - public const uint InternalAssetId = 16; - public const uint InternalGenericScale = 17; - public const uint Internal_0109999de4f6d45bb8c13493b504dee7_1143969198414876421 = 18; - public const uint Internal_0109999de4f6d45bb8c13493b504dee7_616379459864002610 = 19; - public const uint Internal_0109999de4f6d45bb8c13493b504dee7_6732985197249073484 = 20; - public const uint Internal_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932 = 21; - public const uint Internal_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794 = 22; - public const uint Internal_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437 = 23; - public const uint Internal_3889a458e94666d4784df30d8dd06d7d_6540142254599110064 = 24; - public const uint Internal_3d92447627afdfc419ceeb6b26251a87_1406947345458511524 = 25; - public const uint Internal_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777 = 26; - public const uint Internal_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519 = 27; - public const uint Internal_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368 = 28; - public const uint Internal_7455a9685d292b843b28465a4faffd05_4295192434143702777 = 29; - public const uint Internal_7455a9685d292b843b28465a4faffd05_486810980 = 30; - public const uint Internal_7eef8177eb732314fb850470094a70c9_468635231 = 31; - public const uint Internal_7eef8177eb732314fb850470094a70c9_468635232 = 32; - public const uint Internal_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761 = 33; - public const uint Internal_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198 = 34; - public const uint Internal_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224 = 35; - public const uint Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932 = 36; - public const uint Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794 = 37; - public const uint Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437 = 38; - public const uint Internal_91ccee2338d92624a8021fda1c91e47c_1987083777327440787 = 39; - public const uint Internal_91ccee2338d92624a8021fda1c91e47c_4713251173614319484 = 40; - public const uint Internal_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970 = 41; - public const uint Internal_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429 = 42; - public const uint Internal_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174 = 43; - public const uint Internal_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967 = 44; - public const uint Internal_b7bb309cd508641d3887ec91696ac623_1406947345458511524 = 45; - public const uint Internal_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932 = 46; - public const uint Internal_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794 = 47; - public const uint Internal_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437 = 48; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 = 49; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 = 50; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 = 51; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 = 52; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 = 53; - public const uint Internal_e74854605b68b435280bc0ac73fef6c1_6806255523165594879 = 54; - public const uint Internal_e74854605b68b435280bc0ac73fef6c1_831233887725647233 = 55; - public const uint Internal_e74854605b68b435280bc0ac73fef6c1_929081723536030390 = 56; - public const uint Internal_ec47cd7906b7749f4853524abf78e799_432812263773753349 = 57; - public const uint Internal_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761 = 58; - public const uint Internal_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198 = 59; - public const uint Internal_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224 = 60; - public const uint InternalArchetype_3889a458e94666d4784df30d8dd06d7d_WorldPosition_LOD0 = 61; - public const uint InternalArchetype_3889a458e94666d4784df30d8dd06d7d__3889a458e94666d4784df30d8dd06d7d_6540142254599110064_LOD0 = 62; - public const uint InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldPosition_LOD0 = 63; - public const uint InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldOrientation_LOD0 = 64; - public const uint InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_GenericScale_LOD0 = 65; - public const uint InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618_LOD0 = 66; - public const uint InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181_LOD0 = 67; - public const uint InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408_LOD0 = 68; - public const uint InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_176131441763086322_LOD0 = 69; - public const uint InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216_LOD0 = 70; - public const uint InternalAuthorityRequest = 0; - public const uint InternalAuthorityTransfer = 1; - public const uint InternalQuerySynced = 2; - public const uint InternalAdoptOrphan = 3; - public const uint InternalPersistenceReady = 4; - public const uint InternalSceneIndexChanged = 5; - public const uint Internal_0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286 = 6; - public const uint Internal_0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286 = 7; - public const uint Internal_3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38 = 8; - public const uint Internal_3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db = 9; - public const uint Internal_3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391 = 10; - public const uint Internal_3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4 = 11; - public const uint Internal_3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09 = 12; - public const uint Internal_3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7 = 13; - public const uint Internal_3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6 = 14; - public const uint Internal_451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286 = 15; - public const uint Internal_7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff = 16; - public const uint Internal_7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187 = 17; - public const uint Internal_89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286 = 18; - public const uint Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286 = 19; - public const uint Internal_91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9 = 20; - public const uint Internal_a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb = 21; - public const uint Internal_a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 = 22; - public const uint Internal_a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8 = 23; - public const uint Internal_a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2 = 24; - public const uint Internal_a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6 = 25; - public const uint Internal_b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09 = 26; - public const uint Internal_b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7 = 27; - public const uint Internal_b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6 = 28; - public const uint Internal_c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286 = 29; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 = 30; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 = 31; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 = 32; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 = 33; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 = 34; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 = 35; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d = 36; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c = 37; - public const uint Internal_cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe = 38; - public const uint Internal_e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286 = 39; - public const uint Internal_ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d = 40; - public const uint Internal_f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286 = 41; - public const uint Internal_b7bb309cd508641d3887ec91696ac623 = 0; - - private static readonly Dictionary componentNamesForTypeIds = new Dictionary() - { - { 0, "WorldPosition" }, - { 1, "WorldOrientation" }, - { 2, "LocalUserComponent" }, - { 3, "WorldPositionQuery" }, - { 4, "ArchetypeComponent" }, - { 5, "Persistence" }, - { 6, "ConnectedEntity" }, - { 7, "UniqueID" }, - { 8, "Connection" }, - { 9, "ConnectionScene" }, - { 10, "Global" }, - { 11, "GlobalQuery" }, - { 12, "Tag" }, - { 13, "TagQuery" }, - { 14, "PreserveChildren" }, - { 15, "Scene" }, - { 16, "AssetId" }, - { 17, "GenericScale" }, - { 18, "_0109999de4f6d45bb8c13493b504dee7_1143969198414876421" }, - { 19, "_0109999de4f6d45bb8c13493b504dee7_616379459864002610" }, - { 20, "_0109999de4f6d45bb8c13493b504dee7_6732985197249073484" }, - { 21, "_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932" }, - { 22, "_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794" }, - { 23, "_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437" }, - { 24, "_3889a458e94666d4784df30d8dd06d7d_6540142254599110064" }, - { 25, "_3d92447627afdfc419ceeb6b26251a87_1406947345458511524" }, - { 26, "_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777" }, - { 27, "_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519" }, - { 28, "_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368" }, - { 29, "_7455a9685d292b843b28465a4faffd05_4295192434143702777" }, - { 30, "_7455a9685d292b843b28465a4faffd05_486810980" }, - { 31, "_7eef8177eb732314fb850470094a70c9_468635231" }, - { 32, "_7eef8177eb732314fb850470094a70c9_468635232" }, - { 33, "_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761" }, - { 34, "_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198" }, - { 35, "_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224" }, - { 36, "_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932" }, - { 37, "_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794" }, - { 38, "_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437" }, - { 39, "_91ccee2338d92624a8021fda1c91e47c_1987083777327440787" }, - { 40, "_91ccee2338d92624a8021fda1c91e47c_4713251173614319484" }, - { 41, "_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970" }, - { 42, "_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429" }, - { 43, "_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174" }, - { 44, "_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967" }, - { 45, "_b7bb309cd508641d3887ec91696ac623_1406947345458511524" }, - { 46, "_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932" }, - { 47, "_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794" }, - { 48, "_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437" }, - { 49, "_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322" }, - { 50, "_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181" }, - { 51, "_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216" }, - { 52, "_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408" }, - { 53, "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618" }, - { 54, "_e74854605b68b435280bc0ac73fef6c1_6806255523165594879" }, - { 55, "_e74854605b68b435280bc0ac73fef6c1_831233887725647233" }, - { 56, "_e74854605b68b435280bc0ac73fef6c1_929081723536030390" }, - { 57, "_ec47cd7906b7749f4853524abf78e799_432812263773753349" }, - { 58, "_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761" }, - { 59, "_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198" }, - { 60, "_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224" }, - { 61, "Archetype_3889a458e94666d4784df30d8dd06d7d_WorldPosition_LOD0" }, - { 62, "Archetype_3889a458e94666d4784df30d8dd06d7d__3889a458e94666d4784df30d8dd06d7d_6540142254599110064_LOD0" }, - { 63, "Archetype_cd9bcc1feead9419fac0c5981ce85c23_WorldPosition_LOD0" }, - { 64, "Archetype_cd9bcc1feead9419fac0c5981ce85c23_WorldOrientation_LOD0" }, - { 65, "Archetype_cd9bcc1feead9419fac0c5981ce85c23_GenericScale_LOD0" }, - { 66, "Archetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618_LOD0" }, - { 67, "Archetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181_LOD0" }, - { 68, "Archetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408_LOD0" }, - { 69, "Archetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_176131441763086322_LOD0" }, - { 70, "Archetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216_LOD0" }, - }; - - public static string ComponentNameForTypeId(uint typeId) - { - if (componentNamesForTypeIds.TryGetValue(typeId, out string componentName)) - { - return componentName; - } - else - { - return ""; - } - } - - public static readonly Dictionary CommandRoutingByType = new Dictionary() - { - { Definition.InternalAuthorityRequest , MessageTarget.All }, - { Definition.InternalAuthorityTransfer , MessageTarget.All }, - { Definition.InternalQuerySynced , MessageTarget.All }, - { Definition.InternalAdoptOrphan , MessageTarget.All }, - { Definition.InternalPersistenceReady , MessageTarget.All }, - { Definition.InternalSceneIndexChanged , MessageTarget.All }, - { Definition.Internal_0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286 , MessageTarget.All }, - { Definition.Internal_0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286 , MessageTarget.All }, - { Definition.Internal_3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38 , MessageTarget.All }, - { Definition.Internal_3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db , MessageTarget.All }, - { Definition.Internal_3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391 , MessageTarget.All }, - { Definition.Internal_3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4 , MessageTarget.StateAuthorityOnly }, - { Definition.Internal_3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09 , MessageTarget.Other }, - { Definition.Internal_3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7 , MessageTarget.Other }, - { Definition.Internal_3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6 , MessageTarget.StateAuthorityOnly }, - { Definition.Internal_451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286 , MessageTarget.All }, - { Definition.Internal_7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff , MessageTarget.StateAuthorityOnly }, - { Definition.Internal_7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187 , MessageTarget.StateAuthorityOnly }, - { Definition.Internal_89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286 , MessageTarget.All }, - { Definition.Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286 , MessageTarget.All }, - { Definition.Internal_91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9 , MessageTarget.StateAuthorityOnly }, - { Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb , MessageTarget.All }, - { Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 , MessageTarget.StateAuthorityOnly }, - { Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8 , MessageTarget.All }, - { Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2 , MessageTarget.All }, - { Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6 , MessageTarget.All }, - { Definition.Internal_b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09 , MessageTarget.Other }, - { Definition.Internal_b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7 , MessageTarget.Other }, - { Definition.Internal_b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6 , MessageTarget.StateAuthorityOnly }, - { Definition.Internal_c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286 , MessageTarget.All }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 , MessageTarget.All }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 , MessageTarget.All }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 , MessageTarget.All }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 , MessageTarget.Other }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 , MessageTarget.Other }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 , MessageTarget.All }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d , MessageTarget.All }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c , MessageTarget.All }, - { Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe , MessageTarget.Other }, - { Definition.Internal_e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286 , MessageTarget.All }, - { Definition.Internal_ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d , MessageTarget.StateAuthorityOnly }, - { Definition.Internal_f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286 , MessageTarget.All }, - }; - - public ICoherenceComponentData ReadComponentUpdate(uint componentType, AbsoluteSimulationFrame referenceSimulationFrame, - IInBitStream bitStream, Logger logger) - { - var inProtocolStream = new InProtocolBitStream(bitStream); - - switch (componentType) - { - case InternalWorldPosition: - return WorldPosition.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalWorldOrientation: - return WorldOrientation.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalLocalUserComponent: - return LocalUserComponent.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalWorldPositionQuery: - return WorldPositionQuery.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalArchetypeComponent: - return ArchetypeComponent.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalPersistence: - return Persistence.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalConnectedEntity: - return ConnectedEntity.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalUniqueID: - return UniqueID.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalConnection: - return Connection.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalConnectionScene: - return ConnectionScene.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalGlobal: - return Global.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalGlobalQuery: - return GlobalQuery.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalTag: - return Tag.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalTagQuery: - return TagQuery.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalPreserveChildren: - return PreserveChildren.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalScene: - return Scene.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalAssetId: - return AssetId.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalGenericScale: - return GenericScale.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_0109999de4f6d45bb8c13493b504dee7_1143969198414876421: - return _0109999de4f6d45bb8c13493b504dee7_1143969198414876421.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_0109999de4f6d45bb8c13493b504dee7_616379459864002610: - return _0109999de4f6d45bb8c13493b504dee7_616379459864002610.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_0109999de4f6d45bb8c13493b504dee7_6732985197249073484: - return _0109999de4f6d45bb8c13493b504dee7_6732985197249073484.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932: - return _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794: - return _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437: - return _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_3889a458e94666d4784df30d8dd06d7d_6540142254599110064: - return _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_3d92447627afdfc419ceeb6b26251a87_1406947345458511524: - return _3d92447627afdfc419ceeb6b26251a87_1406947345458511524.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777: - return _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519: - return _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368: - return _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_7455a9685d292b843b28465a4faffd05_4295192434143702777: - return _7455a9685d292b843b28465a4faffd05_4295192434143702777.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_7455a9685d292b843b28465a4faffd05_486810980: - return _7455a9685d292b843b28465a4faffd05_486810980.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_7eef8177eb732314fb850470094a70c9_468635231: - return _7eef8177eb732314fb850470094a70c9_468635231.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_7eef8177eb732314fb850470094a70c9_468635232: - return _7eef8177eb732314fb850470094a70c9_468635232.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761: - return _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198: - return _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224: - return _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932: - return _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794: - return _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437: - return _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_91ccee2338d92624a8021fda1c91e47c_1987083777327440787: - return _91ccee2338d92624a8021fda1c91e47c_1987083777327440787.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_91ccee2338d92624a8021fda1c91e47c_4713251173614319484: - return _91ccee2338d92624a8021fda1c91e47c_4713251173614319484.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970: - return _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429: - return _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174: - return _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967: - return _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_b7bb309cd508641d3887ec91696ac623_1406947345458511524: - return _b7bb309cd508641d3887ec91696ac623_1406947345458511524.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932: - return _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794: - return _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437: - return _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322: - return _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181: - return _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216: - return _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408: - return _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618: - return _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_e74854605b68b435280bc0ac73fef6c1_6806255523165594879: - return _e74854605b68b435280bc0ac73fef6c1_6806255523165594879.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_e74854605b68b435280bc0ac73fef6c1_831233887725647233: - return _e74854605b68b435280bc0ac73fef6c1_831233887725647233.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_e74854605b68b435280bc0ac73fef6c1_929081723536030390: - return _e74854605b68b435280bc0ac73fef6c1_929081723536030390.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_ec47cd7906b7749f4853524abf78e799_432812263773753349: - return _ec47cd7906b7749f4853524abf78e799_432812263773753349.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761: - return _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198: - return _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198.Deserialize(referenceSimulationFrame, inProtocolStream); - case Internal_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224: - return _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224.Deserialize(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_3889a458e94666d4784df30d8dd06d7d_WorldPosition_LOD0: - return WorldPosition.DeserializeArchetype_3889a458e94666d4784df30d8dd06d7d_WorldPosition_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_3889a458e94666d4784df30d8dd06d7d__3889a458e94666d4784df30d8dd06d7d_6540142254599110064_LOD0: - return _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.DeserializeArchetype_3889a458e94666d4784df30d8dd06d7d__3889a458e94666d4784df30d8dd06d7d_6540142254599110064_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldPosition_LOD0: - return WorldPosition.DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldPosition_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldOrientation_LOD0: - return WorldOrientation.DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldOrientation_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23_GenericScale_LOD0: - return GenericScale.DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23_GenericScale_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618_LOD0: - return _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181_LOD0: - return _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181.DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408_LOD0: - return _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_176131441763086322_LOD0: - return _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_176131441763086322_LOD0(referenceSimulationFrame, inProtocolStream); - case InternalArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216_LOD0: - return _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216.DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216_LOD0(referenceSimulationFrame, inProtocolStream); - default: - throw new System.ArgumentOutOfRangeException(nameof(componentType), - $"Missing serialization implementation for a component: {componentType}"); - } - } - - public uint WriteComponentUpdate(ICoherenceComponentData data, uint serializeAs, bool isRefSimFrameValid, - AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream protocolStream, Logger logger) - { - switch (serializeAs) - { - case InternalWorldPosition: - return WorldPosition.Serialize((WorldPosition)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalWorldOrientation: - return WorldOrientation.Serialize((WorldOrientation)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalLocalUserComponent: - return LocalUserComponent.Serialize((LocalUserComponent)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalWorldPositionQuery: - return WorldPositionQuery.Serialize((WorldPositionQuery)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalArchetypeComponent: - return ArchetypeComponent.Serialize((ArchetypeComponent)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalPersistence: - return Persistence.Serialize((Persistence)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalConnectedEntity: - return ConnectedEntity.Serialize((ConnectedEntity)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalUniqueID: - return UniqueID.Serialize((UniqueID)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalConnection: - return Connection.Serialize((Connection)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalConnectionScene: - return ConnectionScene.Serialize((ConnectionScene)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalGlobal: - return Global.Serialize((Global)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalGlobalQuery: - return GlobalQuery.Serialize((GlobalQuery)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalTag: - return Tag.Serialize((Tag)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalTagQuery: - return TagQuery.Serialize((TagQuery)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalPreserveChildren: - return PreserveChildren.Serialize((PreserveChildren)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalScene: - return Scene.Serialize((Scene)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalAssetId: - return AssetId.Serialize((AssetId)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case InternalGenericScale: - return GenericScale.Serialize((GenericScale)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_0109999de4f6d45bb8c13493b504dee7_1143969198414876421: - return _0109999de4f6d45bb8c13493b504dee7_1143969198414876421.Serialize((_0109999de4f6d45bb8c13493b504dee7_1143969198414876421)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_0109999de4f6d45bb8c13493b504dee7_616379459864002610: - return _0109999de4f6d45bb8c13493b504dee7_616379459864002610.Serialize((_0109999de4f6d45bb8c13493b504dee7_616379459864002610)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_0109999de4f6d45bb8c13493b504dee7_6732985197249073484: - return _0109999de4f6d45bb8c13493b504dee7_6732985197249073484.Serialize((_0109999de4f6d45bb8c13493b504dee7_6732985197249073484)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932: - return _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932.Serialize((_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794: - return _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794.Serialize((_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437: - return _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437.Serialize((_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_3889a458e94666d4784df30d8dd06d7d_6540142254599110064: - return _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.Serialize((_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_3d92447627afdfc419ceeb6b26251a87_1406947345458511524: - return _3d92447627afdfc419ceeb6b26251a87_1406947345458511524.Serialize((_3d92447627afdfc419ceeb6b26251a87_1406947345458511524)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777: - return _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777.Serialize((_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519: - return _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519.Serialize((_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368: - return _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368.Serialize((_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_7455a9685d292b843b28465a4faffd05_4295192434143702777: - return _7455a9685d292b843b28465a4faffd05_4295192434143702777.Serialize((_7455a9685d292b843b28465a4faffd05_4295192434143702777)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_7455a9685d292b843b28465a4faffd05_486810980: - return _7455a9685d292b843b28465a4faffd05_486810980.Serialize((_7455a9685d292b843b28465a4faffd05_486810980)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_7eef8177eb732314fb850470094a70c9_468635231: - return _7eef8177eb732314fb850470094a70c9_468635231.Serialize((_7eef8177eb732314fb850470094a70c9_468635231)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_7eef8177eb732314fb850470094a70c9_468635232: - return _7eef8177eb732314fb850470094a70c9_468635232.Serialize((_7eef8177eb732314fb850470094a70c9_468635232)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761: - return _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761.Serialize((_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198: - return _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198.Serialize((_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224: - return _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224.Serialize((_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932: - return _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932.Serialize((_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794: - return _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794.Serialize((_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437: - return _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437.Serialize((_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_91ccee2338d92624a8021fda1c91e47c_1987083777327440787: - return _91ccee2338d92624a8021fda1c91e47c_1987083777327440787.Serialize((_91ccee2338d92624a8021fda1c91e47c_1987083777327440787)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_91ccee2338d92624a8021fda1c91e47c_4713251173614319484: - return _91ccee2338d92624a8021fda1c91e47c_4713251173614319484.Serialize((_91ccee2338d92624a8021fda1c91e47c_4713251173614319484)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970: - return _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970.Serialize((_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429: - return _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429.Serialize((_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174: - return _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174.Serialize((_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967: - return _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967.Serialize((_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_b7bb309cd508641d3887ec91696ac623_1406947345458511524: - return _b7bb309cd508641d3887ec91696ac623_1406947345458511524.Serialize((_b7bb309cd508641d3887ec91696ac623_1406947345458511524)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932: - return _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932.Serialize((_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794: - return _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794.Serialize((_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437: - return _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437.Serialize((_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322: - return _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181: - return _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216: - return _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408: - return _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618: - return _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_e74854605b68b435280bc0ac73fef6c1_6806255523165594879: - return _e74854605b68b435280bc0ac73fef6c1_6806255523165594879.Serialize((_e74854605b68b435280bc0ac73fef6c1_6806255523165594879)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_e74854605b68b435280bc0ac73fef6c1_831233887725647233: - return _e74854605b68b435280bc0ac73fef6c1_831233887725647233.Serialize((_e74854605b68b435280bc0ac73fef6c1_831233887725647233)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_e74854605b68b435280bc0ac73fef6c1_929081723536030390: - return _e74854605b68b435280bc0ac73fef6c1_929081723536030390.Serialize((_e74854605b68b435280bc0ac73fef6c1_929081723536030390)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_ec47cd7906b7749f4853524abf78e799_432812263773753349: - return _ec47cd7906b7749f4853524abf78e799_432812263773753349.Serialize((_ec47cd7906b7749f4853524abf78e799_432812263773753349)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761: - return _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761.Serialize((_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198: - return _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198.Serialize((_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - case Internal_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224: - return _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224.Serialize((_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224)data, isRefSimFrameValid, referenceSimulationFrame, protocolStream, logger); - default: - logger.Error(Coherence.Log.Error.DefinitionMissingComponentImplementation, ("component", data.GetComponentType())); - return 0; - } - } - - public IEntityCommand ReadCommand(uint commandType, Entity entity, MessageTarget target, IInProtocolBitStream bitStream, Logger logger) - { - switch (commandType) - { - case Definition.InternalAuthorityRequest: - return AuthorityRequest.Deserialize(bitStream, entity, target); - case Definition.InternalAuthorityTransfer: - return AuthorityTransfer.Deserialize(bitStream, entity, target); - case Definition.InternalQuerySynced: - return QuerySynced.Deserialize(bitStream, entity, target); - case Definition.InternalAdoptOrphan: - return AdoptOrphan.Deserialize(bitStream, entity, target); - case Definition.InternalPersistenceReady: - return PersistenceReady.Deserialize(bitStream, entity, target); - case Definition.InternalSceneIndexChanged: - return SceneIndexChanged.Deserialize(bitStream, entity, target); - case Definition.Internal_0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286: - return _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286.Deserialize(bitStream, entity, target); - case Definition.Internal_0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286: - return _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286.Deserialize(bitStream, entity, target); - case Definition.Internal_3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38: - return _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38.Deserialize(bitStream, entity, target); - case Definition.Internal_3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db: - return _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db.Deserialize(bitStream, entity, target); - case Definition.Internal_3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391: - return _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391.Deserialize(bitStream, entity, target); - case Definition.Internal_3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4: - return _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4.Deserialize(bitStream, entity, target); - case Definition.Internal_3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09: - return _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09.Deserialize(bitStream, entity, target); - case Definition.Internal_3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7: - return _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7.Deserialize(bitStream, entity, target); - case Definition.Internal_3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6: - return _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6.Deserialize(bitStream, entity, target); - case Definition.Internal_451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286: - return _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286.Deserialize(bitStream, entity, target); - case Definition.Internal_7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff: - return _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff.Deserialize(bitStream, entity, target); - case Definition.Internal_7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187: - return _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187.Deserialize(bitStream, entity, target); - case Definition.Internal_89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286: - return _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286.Deserialize(bitStream, entity, target); - case Definition.Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286: - return _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286.Deserialize(bitStream, entity, target); - case Definition.Internal_91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9: - return _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9.Deserialize(bitStream, entity, target); - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb: - return _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb.Deserialize(bitStream, entity, target); - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4: - return _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4.Deserialize(bitStream, entity, target); - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8: - return _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8.Deserialize(bitStream, entity, target); - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2: - return _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2.Deserialize(bitStream, entity, target); - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6: - return _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6.Deserialize(bitStream, entity, target); - case Definition.Internal_b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09: - return _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09.Deserialize(bitStream, entity, target); - case Definition.Internal_b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7: - return _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7.Deserialize(bitStream, entity, target); - case Definition.Internal_b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6: - return _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6.Deserialize(bitStream, entity, target); - case Definition.Internal_c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286: - return _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41: - return _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829: - return _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6: - return _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8: - return _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142: - return _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5: - return _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d: - return _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c: - return _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c.Deserialize(bitStream, entity, target); - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe: - return _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe.Deserialize(bitStream, entity, target); - case Definition.Internal_e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286: - return _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286.Deserialize(bitStream, entity, target); - case Definition.Internal_ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d: - return _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d.Deserialize(bitStream, entity, target); - case Definition.Internal_f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286: - return _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286.Deserialize(bitStream, entity, target); - default: - throw new System.ArgumentOutOfRangeException(nameof(commandType), - $"Missing serialization implementation for a command: {commandType}"); - } - } - - public IEntityInput ReadInput(uint inputType, Entity entity, long frame, IInProtocolBitStream bitStream, Logger logger) - { - switch (inputType) - { - case Definition.Internal_b7bb309cd508641d3887ec91696ac623: - return _b7bb309cd508641d3887ec91696ac623.Deserialize(bitStream, entity, frame); - default: - throw new System.ArgumentOutOfRangeException(nameof(inputType), - $"Missing serialization implementation for an input: {inputType}"); - } - } - - public void WriteCommand(IEntityCommand data, uint commandType, IOutProtocolBitStream bitStream, Logger logger) - { - switch (commandType) - { - case Definition.InternalAuthorityRequest: - AuthorityRequest.Serialize((AuthorityRequest)data, bitStream); - break; - case Definition.InternalAuthorityTransfer: - AuthorityTransfer.Serialize((AuthorityTransfer)data, bitStream); - break; - case Definition.InternalQuerySynced: - QuerySynced.Serialize((QuerySynced)data, bitStream); - break; - case Definition.InternalAdoptOrphan: - AdoptOrphan.Serialize((AdoptOrphan)data, bitStream); - break; - case Definition.InternalPersistenceReady: - PersistenceReady.Serialize((PersistenceReady)data, bitStream); - break; - case Definition.InternalSceneIndexChanged: - SceneIndexChanged.Serialize((SceneIndexChanged)data, bitStream); - break; - case Definition.Internal_0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286: - _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286.Serialize((_0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286)data, bitStream); - break; - case Definition.Internal_0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286: - _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286.Serialize((_0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286)data, bitStream); - break; - case Definition.Internal_3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38: - _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38.Serialize((_3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38)data, bitStream); - break; - case Definition.Internal_3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db: - _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db.Serialize((_3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db)data, bitStream); - break; - case Definition.Internal_3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391: - _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391.Serialize((_3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391)data, bitStream); - break; - case Definition.Internal_3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4: - _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4.Serialize((_3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4)data, bitStream); - break; - case Definition.Internal_3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09: - _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09.Serialize((_3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09)data, bitStream); - break; - case Definition.Internal_3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7: - _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7.Serialize((_3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7)data, bitStream); - break; - case Definition.Internal_3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6: - _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6.Serialize((_3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6)data, bitStream); - break; - case Definition.Internal_451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286: - _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286.Serialize((_451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286)data, bitStream); - break; - case Definition.Internal_7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff: - _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff.Serialize((_7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff)data, bitStream); - break; - case Definition.Internal_7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187: - _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187.Serialize((_7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187)data, bitStream); - break; - case Definition.Internal_89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286: - _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286.Serialize((_89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286)data, bitStream); - break; - case Definition.Internal_8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286: - _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286.Serialize((_8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286)data, bitStream); - break; - case Definition.Internal_91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9: - _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9.Serialize((_91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9)data, bitStream); - break; - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb: - _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb.Serialize((_a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb)data, bitStream); - break; - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4: - _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4.Serialize((_a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4)data, bitStream); - break; - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8: - _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8.Serialize((_a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8)data, bitStream); - break; - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2: - _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2.Serialize((_a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2)data, bitStream); - break; - case Definition.Internal_a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6: - _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6.Serialize((_a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6)data, bitStream); - break; - case Definition.Internal_b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09: - _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09.Serialize((_b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09)data, bitStream); - break; - case Definition.Internal_b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7: - _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7.Serialize((_b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7)data, bitStream); - break; - case Definition.Internal_b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6: - _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6.Serialize((_b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6)data, bitStream); - break; - case Definition.Internal_c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286: - _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286.Serialize((_c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41: - _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829: - _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6: - _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8: - _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142: - _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5: - _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d: - _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c: - _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c)data, bitStream); - break; - case Definition.Internal_cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe: - _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe.Serialize((_cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe)data, bitStream); - break; - case Definition.Internal_e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286: - _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286.Serialize((_e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286)data, bitStream); - break; - case Definition.Internal_ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d: - _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d.Serialize((_ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d)data, bitStream); - break; - case Definition.Internal_f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286: - _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286.Serialize((_f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286)data, bitStream); - break; - default: - logger.Error(Coherence.Log.Error.DefinitionMissingCommandImplementation, ("command", commandType)); - break; - } - } - - public void WriteInput(IEntityInput data, uint inputType, IOutProtocolBitStream bitStream, Logger logger) - { - var inputData = (InputData)data; - - switch (inputType) - { - case Definition.Internal_b7bb309cd508641d3887ec91696ac623: - _b7bb309cd508641d3887ec91696ac623.Serialize((_b7bb309cd508641d3887ec91696ac623)inputData.Input, bitStream); - break; - default: - logger.Error(Coherence.Log.Error.DefinitionMissingInputImplementation, ("input", inputType)); - break; - } - } - - public IEntityCommand CreateAuthorityRequest(Entity entity, ClientID requester, AuthorityType authType) - { - return new AuthorityRequest(entity, (uint)requester, (int)authType) - { - Target = MessageTarget.StateAuthorityOnly, - }; - } - - public IEntityCommand CreateAdoptOrphanCommand(Entity entity) - { - return new AdoptOrphan - { - Entity = entity, - Target = MessageTarget.StateAuthorityOnly, - }; - } - - public bool TryGetAuthorityRequestCommand(IEntityCommand entityCommand, - out ClientID requester, out AuthorityType authType) - { - if (entityCommand is AuthorityRequest request) - { - requester = (ClientID)request.requester; - authType = (AuthorityType)request.authorityType; - - return true; - } - - requester = default; - authType = default; - - return false; - } - - public IEntityCommand CreateAuthorityTransfer(Entity entity, ClientID newAuthority, bool accepted, AuthorityType authType) - { - return new AuthorityTransfer(entity, (uint)newAuthority, accepted, (int)authType) - { - Target = MessageTarget.Other, - }; - } - - public bool TryGetAuthorityTransferCommand(IEntityCommand entityCommand, out ClientID newAuthority, - out bool transferAccepted, out AuthorityType authType) - { - if (entityCommand is AuthorityTransfer transfer) - { - newAuthority = (ClientID)transfer.newAuthority; - transferAccepted = transfer.accepted; - authType = (AuthorityType)transfer.authorityType; - - return true; - } - - newAuthority = default; - transferAccepted = default; - authType = default; - - return false; - } - - public ICoherenceComponentData GeneratePersistenceData() - { - var persistence = new Persistence(); - - return persistence; - } - - public ICoherenceComponentData GenerateCoherenceUUIDData(string uuid, AbsoluteSimulationFrame simFrame) - { - var uniqueID = new UniqueID(); - uniqueID.uuid = uuid; - uniqueID.uuidSimulationFrame = simFrame; - uniqueID.FieldsMask = 0b1; - - return uniqueID; - } - - public ICoherenceComponentData CreateGlobalComponent() - { - return new Global(); - } - - public ICoherenceComponentData GenerateGlobalQueryComponent() - { - return new GlobalQuery(); - } - - public string ExtractCoherenceUUID(ICoherenceComponentData data) - { - var uniqueID = (UniqueID)data; - return uniqueID.uuid; - } - - public bool IsConnectedEntity(ICoherenceComponentData data) - { - return data.GetComponentType() == Definition.InternalConnectedEntity; - } - - public Entity ExtractConnectedEntityID(ICoherenceComponentData data) - { - var connectedEntity = (ConnectedEntity)data; - - return connectedEntity.value; - } - - public string ExtractCoherenceTag(ICoherenceComponentData data) - { - var tag = (Tag)data; - return tag.tag; - } - - public bool TryGetSceneIndexChangedCommand(IEntityCommand entityCommand, out int sceneIndex) - { - if (entityCommand is SceneIndexChanged changed) - { - sceneIndex = (int)changed.sceneIndex; - - return true; - } - - sceneIndex = default; - - return false; - } - - public IEntityCommand CreateSceneIndexChangedCommand(Entity entity, int sceneIndex) - { - return new SceneIndexChanged(entity, sceneIndex) - { - Target = MessageTarget.StateAuthorityOnly, - }; - } - - public bool IsSendOrderedComponent(uint componentID) - { - switch(componentID) - { - case 6: - return true; - default: - return false; - } - } -} - - -} diff --git a/Assets/coherence/baked/ImplBridge.cs b/Assets/coherence/baked/ImplBridge.cs deleted file mode 100644 index aa82a2c..0000000 --- a/Assets/coherence/baked/ImplBridge.cs +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using UnityEngine; - using Coherence.Toolkit; - using System; - using Coherence.ProtocolDef; - using ConnectionType = Coherence.Connection.ConnectionType; - using ClientID = Coherence.Connection.ClientID; - using Coherence.Entities; - using Coherence.SimulationFrame; - using Coherence.Core; - using Logger = Log.Logger; - - public class CoherenceBridgeImpl - { - [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] - static void OnRuntimeMethodLoad() - { - Impl.AssetId = AssetId; - Impl.GetSpawnInfo = GetSpawnInfo; - Impl.GetRootDefinition = GetRootDefinition; - Impl.CreateConnectionSceneUpdateInternal = CreateConnectionSceneUpdateInternal; - Impl.GetConnectionScene = GetConnectionScene; - } - - private static uint AssetId() - { - return Definition.InternalAssetId; - } - - static (bool, SpawnInfo) GetSpawnInfo(IClient client, IncomingEntityUpdate entityUpdate, Logger logger) - { - var info = new SpawnInfo(); - var gotPosition = false; - var gotUnityAsset = false; - - foreach (var comp in entityUpdate.Components.Updates.Store) - { - switch(comp.Value.Data) - { - case WorldPosition pos: - info.position = pos.value; - gotPosition = true; - break; - case WorldOrientation rot: - info.rotation = rot.value; - break; - case AssetId assetId: - if (CoherenceSyncConfigRegistry.Instance.GetFromNetworkId(assetId.value, out var config)) - { - info.assetId = config.ID; // actual asset ID - info.isFromGroup = assetId.isFromGroup; - gotUnityAsset = true; - } - else - { - logger.Error(Coherence.Log.Error.ToolkitSpawnInfoMissingConfigSync, - $"Can't find Sync Config for Network Asset ID: {CoherenceSyncConfig.NetworkAssetIdToString(assetId.value)}. " + - "Using the Network Prefabs window please verify that prefab with this ID is registered. " + - "This might indicate outdated client."); - } - break; - case ConnectedEntity connectedEntity: - info.connectedEntity = connectedEntity.value; - break; - case Connection con: - info.clientId = (ClientID)con.id; - info.connectionType = (ConnectionType)con.type; - break; - case UniqueID uid: - info.uniqueId = uid.uuid; - break; - case ConnectionScene scene: - info.scene = scene.value; - break; - } - } - - var shouldSpawn = (gotPosition && gotUnityAsset) || info.clientId.HasValue; - - return (shouldSpawn, info); - } - - private static IDefinition GetRootDefinition() - { - return new Definition(); - } - - private static ICoherenceComponentData CreateConnectionSceneUpdateInternal(uint sceneIndex, AbsoluteSimulationFrame simFrame) - { - var update = new ConnectionScene() - { - value = sceneIndex, - valueSimulationFrame = simFrame, - FieldsMask = 0b1, - }; - - return update; - } - - private static uint? GetConnectionScene(IncomingEntityUpdate entityUpdate) - { - foreach (var comp in entityUpdate.Components.Updates.Store) - { - if (comp.Value.Data is ConnectionScene scene) - { - return scene.value; - } - } - - return null; - } - } - -} diff --git a/Assets/coherence/baked/ImplBridge.cs.meta b/Assets/coherence/baked/ImplBridge.cs.meta deleted file mode 100644 index 463008c..0000000 --- a/Assets/coherence/baked/ImplBridge.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: edf4f28e58b3741e6a973db55d47875e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/coherence/baked/ImplGlobalQuery.cs b/Assets/coherence/baked/ImplGlobalQuery.cs deleted file mode 100644 index 69fe31f..0000000 --- a/Assets/coherence/baked/ImplGlobalQuery.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using UnityEngine; - using Coherence.Entities; - using Toolkit; - using Coherence.SimulationFrame; - - public class CoherenceGlobalQueryImpl - { - [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] - static void OnRuntimeMethodLoad() - { - Impl.AddGlobalQuery = AddGlobalQuery; - Impl.RemoveGlobalQuery = RemoveGlobalQuery; - } - - private static void AddGlobalQuery(IClient client, Entity query) - { - var components = new ICoherenceComponentData[] - { - new GlobalQuery { } - }; - - client.UpdateComponents(query, components); - } - - private static void RemoveGlobalQuery(IClient client, Entity query) - { - client.RemoveComponents(query, new []{Definition.InternalGlobalQuery}); - } - } -} diff --git a/Assets/coherence/baked/ImplGlobalQuery.cs.meta b/Assets/coherence/baked/ImplGlobalQuery.cs.meta deleted file mode 100644 index f464b0b..0000000 --- a/Assets/coherence/baked/ImplGlobalQuery.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 075149629774e466e9c5614680cb93ad -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/coherence/baked/ImplLiveQuery.cs b/Assets/coherence/baked/ImplLiveQuery.cs deleted file mode 100644 index 111530d..0000000 --- a/Assets/coherence/baked/ImplLiveQuery.cs +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using UnityEngine; - using Coherence.Entities; - using Toolkit; - using Coherence.SimulationFrame; - - public class CoherenceLiveQueryImpl - { - [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] - static void OnRuntimeMethodLoad() - { - Impl.UpdateLiveQuery = UpdateLiveQuery; - Impl.RemoveLiveQuery = RemoveLiveQuery; - } - - private static void UpdateLiveQuery(IClient client, Entity liveQuery, float radius, float buffer, Vector3 pos, AbsoluteSimulationFrame simFrame) - { - var newWorldPositionQuery = new WorldPositionQuery - { - position = pos, - radius = radius, - buffer = buffer, - positionSimulationFrame = simFrame, - radiusSimulationFrame = simFrame, - FieldsMask = 0b111, - }; - - var components = new ICoherenceComponentData[] - { - newWorldPositionQuery, - }; - - client.UpdateComponents(liveQuery, components); - } - - private static void RemoveLiveQuery(IClient client, Entity liveQuery) - { - client.RemoveComponents(liveQuery, new []{Definition.InternalWorldPositionQuery}); - } - } -} diff --git a/Assets/coherence/baked/ImplLiveQuery.cs.meta b/Assets/coherence/baked/ImplLiveQuery.cs.meta deleted file mode 100644 index 76dd89e..0000000 --- a/Assets/coherence/baked/ImplLiveQuery.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 59c9948d5c50d4d8bb18a82b85c537f8 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/coherence/baked/ImplSync.cs b/Assets/coherence/baked/ImplSync.cs deleted file mode 100644 index 15e13fa..0000000 --- a/Assets/coherence/baked/ImplSync.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using UnityEngine; - using Coherence.Toolkit; - using System; - using Coherence.ProtocolDef; - using System.Collections.Generic; - using Log; - using Logger = Log.Logger; - using Coherence.Entities; - using Coherence.SimulationFrame; - - public class CoherenceSyncImpl - { - [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] - static void OnRuntimeMethodLoad() - { - Impl.ComponentNameFromTypeId = ComponentNameFromTypeId; - Impl.CreateInitialComponents = CreateInitialComponents; - Impl.ReceiveInternalCommand = ReceiveInternalCommand; - Impl.CreateConnectedEntityUpdateInternal = CreateConnectedEntityUpdateInternal; - Impl.GetConnectedEntityComponentIdInternal = GetConnectedEntityComponentIdInternal; - Impl.UpdateTag = UpdateTag; - Impl.RemoveTag = RemoveTag; - } - - private static string ComponentNameFromTypeId(uint componentTypeId) - { - var componentName = Definition.ComponentNameForTypeId(componentTypeId); - - if (string.IsNullOrEmpty(componentName)) - { - throw new Exception($"Unhandled component type id: {componentTypeId}"); - } - - return componentName; - } - - private static ICoherenceComponentData[] CreateInitialComponents(ICoherenceSync self, string uuid, bool isFromGroup, AbsoluteSimulationFrame simFrame) - { - var comps = new List(); - comps.Add(new WorldPosition() - { - value = self.coherencePosition, - valueSimulationFrame = simFrame, - FieldsMask = 0b1, - }); - - comps.Add(new AssetId() - { - value = self.CoherenceSyncConfig.GetNetworkAssetId(), - isFromGroup = isFromGroup, - valueSimulationFrame = simFrame, - isFromGroupSimulationFrame = simFrame, - FieldsMask = 0b11, - }); - - if (!string.IsNullOrEmpty(uuid)) - { - comps.Add(new UniqueID() - { - uuid = uuid, - uuidSimulationFrame = simFrame, - FieldsMask = 0b1, - }); - } - - if (self.LifetimeTypeConfig != CoherenceSync.LifetimeType.SessionBased) - { - comps.Add(new Persistence()); - } - - if (self.PreserveChildren) - { - comps.Add(new PreserveChildren()); - } - - return comps.ToArray(); - } - - /// Handles internal commands. - /// - /// True if the commands was handled. False if the command was not an internal command and should be processed - /// further. - /// - private static bool ReceiveInternalCommand(CoherenceBridge.EventsToken events, IEntityCommand command, - Logger logger) - { - switch (command) - { - case QuerySynced querySynced: - events.OnQuerySynced((querySynced.liveQuerySynced, querySynced.globalQuerySynced)); - return true; - default: - return false; - } - } - - private static ICoherenceComponentData CreateConnectedEntityUpdateInternal(Entity parentID, Vector3 newPos, Quaternion newRot, Vector3 newScale, AbsoluteSimulationFrame simFrame) - { - var comp = new ConnectedEntity() - { - value = parentID, - pos = newPos, - rot = newRot, - scale = newScale, - valueSimulationFrame = simFrame, - posSimulationFrame = simFrame, - rotSimulationFrame = simFrame, - scaleSimulationFrame = simFrame, - FieldsMask = 0b1111, - }; - - return comp; - } - - private static uint GetConnectedEntityComponentIdInternal() - { - return Definition.InternalConnectedEntity; - } - - private static void UpdateTag(IClient client, Entity liveQuery, string tag, AbsoluteSimulationFrame simFrame) - { - var cleanTag = tag.Replace(",", "|"); - - var components = new ICoherenceComponentData[] - { - new Tag - { - tag = cleanTag, - tagSimulationFrame = simFrame, - FieldsMask = 0b1 - } - }; - - client.UpdateComponents(liveQuery, components); - } - - private static void RemoveTag(IClient client, Entity liveQuery) - { - client.RemoveComponents(liveQuery, new []{Definition.InternalTag}); - } - } -} diff --git a/Assets/coherence/baked/ImplSync.cs.meta b/Assets/coherence/baked/ImplSync.cs.meta deleted file mode 100644 index 6d98b77..0000000 --- a/Assets/coherence/baked/ImplSync.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 747baa29a41eb48c880bc78b10116f2e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/coherence/baked/ImplTagQuery.cs b/Assets/coherence/baked/ImplTagQuery.cs deleted file mode 100644 index 341d9a9..0000000 --- a/Assets/coherence/baked/ImplTagQuery.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using UnityEngine; - using Coherence.Entities; - using Toolkit; - using Coherence.SimulationFrame; - - public class CoherenceTagQueryImpl - { - [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] - static void OnRuntimeMethodLoad() - { - Impl.UpdateTagQuery = UpdateTagQuery; - Impl.RemoveTagQuery = RemoveTagQuery; - } - - private static void UpdateTagQuery(IClient client, Entity liveQuery, string tag, AbsoluteSimulationFrame simFrame) - { - var cleanTag = tag.Replace(",", "|"); - - var components = new ICoherenceComponentData[] - { - new TagQuery - { - tag = cleanTag, - tagSimulationFrame = simFrame, - FieldsMask = 0b1 - } - }; - - client.UpdateComponents(liveQuery, components); - } - - private static void RemoveTagQuery(IClient client, Entity liveQuery) - { - client.RemoveComponents(liveQuery, new []{Definition.InternalTagQuery}); - } - } -} diff --git a/Assets/coherence/baked/ImplTagQuery.cs.meta b/Assets/coherence/baked/ImplTagQuery.cs.meta deleted file mode 100644 index 2d568cb..0000000 --- a/Assets/coherence/baked/ImplTagQuery.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 5ef12c864648947a08e767e36d6c8245 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/coherence/baked/Interop.meta b/Assets/coherence/baked/Interop.meta deleted file mode 100644 index 0636f1e..0000000 --- a/Assets/coherence/baked/Interop.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: d5536f52a5e3f454595d01dcc76203a9 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/coherence/baked/Interop/_b7bb309cd508641d3887ec91696ac623.cs b/Assets/coherence/baked/Interop/_b7bb309cd508641d3887ec91696ac623.cs deleted file mode 100644 index 2a681af..0000000 --- a/Assets/coherence/baked/Interop/_b7bb309cd508641d3887ec91696ac623.cs +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using Coherence.ProtocolDef; - using Coherence.Serializer; - using Coherence.Brook; - using Coherence.Entities; - using Coherence.Log; - using Coherence.Core; - using Coherence.Connection; - using System.Collections.Generic; - using System.Runtime.InteropServices; - using System; - using UnityEngine; - - public struct _b7bb309cd508641d3887ec91696ac623 : IEntityInput, IEquatable<_b7bb309cd508641d3887ec91696ac623> - { - public uint GetComponentType() => 0; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - private bool isRemoteInput; - - - public _b7bb309cd508641d3887ec91696ac623( - Entity entity, - long frame, - bool isRemoteInput) - { - this.Entity = entity; - this.ChannelID = Coherence.ChannelID.Default; - this.Routing = MessageTarget.All; - this.SenderParticipant = 0; - this.SenderClientID = default; - this.Frame = frame; - this.isRemoteInput = isRemoteInput; - } - - public override string ToString() - { - return $"Entity: {Entity}, Frame: {Frame}, Inputs: []"; - } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() => default; - - public void NullEntityRefs(Entity entity) { } - - public bool Equals(_b7bb309cd508641d3887ec91696ac623 other) - { - return true; - } - - public static void Serialize(_b7bb309cd508641d3887ec91696ac623 inputData, IOutProtocolBitStream bitStream) - { - } - - public static _b7bb309cd508641d3887ec91696ac623 Deserialize(IInProtocolBitStream bitStream, Entity entity, long frame) - { - - return new _b7bb309cd508641d3887ec91696ac623() - { - Entity = entity, - Frame = frame, - isRemoteInput = true - }; - } - } - -} diff --git a/Assets/coherence/baked/Interop/_b7bb309cd508641d3887ec91696ac623.cs.meta b/Assets/coherence/baked/Interop/_b7bb309cd508641d3887ec91696ac623.cs.meta deleted file mode 100644 index f215372..0000000 --- a/Assets/coherence/baked/Interop/_b7bb309cd508641d3887ec91696ac623.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 65e8f68fe2f79466c8350ccc0117cb0b -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/coherence/baked/Interop/baked_commands.cs b/Assets/coherence/baked/Interop/baked_commands.cs deleted file mode 100644 index 87d8cbc..0000000 --- a/Assets/coherence/baked/Interop/baked_commands.cs +++ /dev/null @@ -1,3154 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using Coherence.ProtocolDef; - using Coherence.Serializer; - using Coherence.Brook; - using Coherence.Entities; - using Coherence.Connection; - using Coherence.Log; - using Coherence.Core; - using System.Collections.Generic; - using System.Runtime.InteropServices; - using UnityEngine; - public struct AuthorityRequest : IEntityCommand - { - public System.UInt32 requester; - public System.Int32 authorityType; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 0; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public AuthorityRequest( - Entity entity, - System.UInt32 requester, - System.Int32 authorityType - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.All; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.requester = requester; - this.authorityType = authorityType; - } - - public static void Serialize(AuthorityRequest commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteUIntegerRange(commandData.requester, 32, 0); - bitStream.WriteIntegerRange(commandData.authorityType, 2, 0); - } - - public static AuthorityRequest Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datarequester = bitStream.ReadUIntegerRange(32, 0); - var dataauthorityType = bitStream.ReadIntegerRange(2, 0); - - return new AuthorityRequest() - { - Entity = entity, - Routing = target, - Target = target, - requester = datarequester, - authorityType = dataauthorityType - }; - } - } - public struct AuthorityTransfer : IEntityCommand - { - public System.UInt32 newAuthority; - public System.Boolean accepted; - public System.Int32 authorityType; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 1; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public AuthorityTransfer( - Entity entity, - System.UInt32 newAuthority, - System.Boolean accepted, - System.Int32 authorityType - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.All; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.newAuthority = newAuthority; - this.accepted = accepted; - this.authorityType = authorityType; - } - - public static void Serialize(AuthorityTransfer commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteUIntegerRange(commandData.newAuthority, 32, 0); - bitStream.WriteBool(commandData.accepted); - bitStream.WriteIntegerRange(commandData.authorityType, 2, 0); - } - - public static AuthorityTransfer Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datanewAuthority = bitStream.ReadUIntegerRange(32, 0); - var dataaccepted = bitStream.ReadBool(); - var dataauthorityType = bitStream.ReadIntegerRange(2, 0); - - return new AuthorityTransfer() - { - Entity = entity, - Routing = target, - Target = target, - newAuthority = datanewAuthority, - accepted = dataaccepted, - authorityType = dataauthorityType - }; - } - } - public struct QuerySynced : IEntityCommand - { - public System.Boolean liveQuerySynced; - public System.Boolean globalQuerySynced; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 2; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public QuerySynced( - Entity entity, - System.Boolean liveQuerySynced, - System.Boolean globalQuerySynced - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.All; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.liveQuerySynced = liveQuerySynced; - this.globalQuerySynced = globalQuerySynced; - } - - public static void Serialize(QuerySynced commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBool(commandData.liveQuerySynced); - bitStream.WriteBool(commandData.globalQuerySynced); - } - - public static QuerySynced Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var dataliveQuerySynced = bitStream.ReadBool(); - var dataglobalQuerySynced = bitStream.ReadBool(); - - return new QuerySynced() - { - Entity = entity, - Routing = target, - Target = target, - liveQuerySynced = dataliveQuerySynced, - globalQuerySynced = dataglobalQuerySynced - }; - } - } - public struct AdoptOrphan : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 3; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(AdoptOrphan commandData, IOutProtocolBitStream bitStream) - { - } - - public static AdoptOrphan Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new AdoptOrphan() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct PersistenceReady : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 4; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(PersistenceReady commandData, IOutProtocolBitStream bitStream) - { - } - - public static PersistenceReady Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new PersistenceReady() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct SceneIndexChanged : IEntityCommand - { - public System.Int32 sceneIndex; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 5; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public SceneIndexChanged( - Entity entity, - System.Int32 sceneIndex - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.All; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.sceneIndex = sceneIndex; - } - - public static void Serialize(SceneIndexChanged commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteIntegerRange(commandData.sceneIndex, 32, -2147483648); - } - - public static SceneIndexChanged Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datasceneIndex = bitStream.ReadIntegerRange(32, -2147483648); - - return new SceneIndexChanged() - { - Entity = entity, - Routing = target, - Target = target, - sceneIndex = datasceneIndex - }; - } - } - public struct _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 6; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _0109999de4f6d45bb8c13493b504dee7_ad9e635638034d88b0c6dcd8a9c83286() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 7; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _0d27e1ad6d8e5ba4abca3216a92298f7_ad9e635638034d88b0c6dcd8a9c83286() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38 : IEntityCommand - { - public System.Int32 oldEffectID; - public System.Int32 newEffectID; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 8; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38( - Entity entity, - System.Int32 oldEffectID, - System.Int32 newEffectID - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.All; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.oldEffectID = oldEffectID; - this.newEffectID = newEffectID; - } - - public static void Serialize(_3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteIntegerRange(commandData.oldEffectID, 32, -2147483648); - bitStream.WriteIntegerRange(commandData.newEffectID, 32, -2147483648); - } - - public static _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var dataoldEffectID = bitStream.ReadIntegerRange(32, -2147483648); - var datanewEffectID = bitStream.ReadIntegerRange(32, -2147483648); - - return new _3889a458e94666d4784df30d8dd06d7d_3664e59fd3cd4dd28175902369f5bb38() - { - Entity = entity, - Routing = target, - Target = target, - oldEffectID = dataoldEffectID, - newEffectID = datanewEffectID - }; - } - } - public struct _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 9; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db commandData, IOutProtocolBitStream bitStream) - { - } - - public static _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _3889a458e94666d4784df30d8dd06d7d_3738e04300d846dfa774ba252d8208db() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391 : IEntityCommand - { - public System.Int32 oldEffectID; - public System.Int32 newEffectID; - public System.String syncConfigID; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 10; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391( - Entity entity, - System.Int32 oldEffectID, - System.Int32 newEffectID, - System.String syncConfigID - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.All; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.oldEffectID = oldEffectID; - this.newEffectID = newEffectID; - this.syncConfigID = syncConfigID; - } - - public static void Serialize(_3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteIntegerRange(commandData.oldEffectID, 32, -2147483648); - bitStream.WriteIntegerRange(commandData.newEffectID, 32, -2147483648); - bitStream.WriteString(commandData.syncConfigID); - } - - public static _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var dataoldEffectID = bitStream.ReadIntegerRange(32, -2147483648); - var datanewEffectID = bitStream.ReadIntegerRange(32, -2147483648); - var datasyncConfigID = bitStream.ReadString(); - - return new _3889a458e94666d4784df30d8dd06d7d_df8fe4d8a6104b7ab780e439afba5391() - { - Entity = entity, - Routing = target, - Target = target, - oldEffectID = dataoldEffectID, - newEffectID = datanewEffectID, - syncConfigID = datasyncConfigID - }; - } - } - public struct _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4 : IEntityCommand - { - public System.String syncConfigID; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 11; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4( - Entity entity, - System.String syncConfigID - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.StateAuthorityOnly; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.syncConfigID = syncConfigID; - } - - public static void Serialize(_3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteString(commandData.syncConfigID); - } - - public static _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datasyncConfigID = bitStream.ReadString(); - - return new _3889a458e94666d4784df30d8dd06d7d_f8f688eb08cb493facb6d766417377d4() - { - Entity = entity, - Routing = target, - Target = target, - syncConfigID = datasyncConfigID - }; - } - } - public struct _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 12; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _3d92447627afdfc419ceeb6b26251a87_195171a3094b49ce9dc624b38e8a6b09() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7 : IEntityCommand - { - public System.Boolean toUp; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 13; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7( - Entity entity, - System.Boolean toUp - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.Other; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.toUp = toUp; - } - - public static void Serialize(_3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBool(commandData.toUp); - } - - public static _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datatoUp = bitStream.ReadBool(); - - return new _3d92447627afdfc419ceeb6b26251a87_64674b8d4999426fb995493ab95cb6d7() - { - Entity = entity, - Routing = target, - Target = target, - toUp = datatoUp - }; - } - } - public struct _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 14; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _3d92447627afdfc419ceeb6b26251a87_e5df7db2535f410690edf553148f2ac6() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 15; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _451e73a8eddd14b2daf891b5ee6c2308_ad9e635638034d88b0c6dcd8a9c83286() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff : IEntityCommand - { - public System.Boolean newBusyState; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 16; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff( - Entity entity, - System.Boolean newBusyState - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.StateAuthorityOnly; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.newBusyState = newBusyState; - } - - public static void Serialize(_7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBool(commandData.newBusyState); - } - - public static _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datanewBusyState = bitStream.ReadBool(); - - return new _7455a9685d292b843b28465a4faffd05_4f5f31474cef489f91936637c9eefcff() - { - Entity = entity, - Routing = target, - Target = target, - newBusyState = datanewBusyState - }; - } - } - public struct _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187 : IEntityCommand - { - public System.Boolean newBusyState; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 17; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187( - Entity entity, - System.Boolean newBusyState - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.StateAuthorityOnly; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.newBusyState = newBusyState; - } - - public static void Serialize(_7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBool(commandData.newBusyState); - } - - public static _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datanewBusyState = bitStream.ReadBool(); - - return new _7eef8177eb732314fb850470094a70c9_510b1c05cf0249e68fbcff362acff187() - { - Entity = entity, - Routing = target, - Target = target, - newBusyState = datanewBusyState - }; - } - } - public struct _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 18; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _89bb435d615753b4f86caa89fd2a5d9d_ad9e635638034d88b0c6dcd8a9c83286() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 19; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _8d0ae98c8cb2746df8fa6b7fef5ee166_ad9e635638034d88b0c6dcd8a9c83286() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9 : IEntityCommand - { - public System.Boolean newBusyState; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 20; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9( - Entity entity, - System.Boolean newBusyState - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.StateAuthorityOnly; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.newBusyState = newBusyState; - } - - public static void Serialize(_91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBool(commandData.newBusyState); - } - - public static _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datanewBusyState = bitStream.ReadBool(); - - return new _91ccee2338d92624a8021fda1c91e47c_da4067b1fcd34e8a93ae914a3b0df2f9() - { - Entity = entity, - Routing = target, - Target = target, - newBusyState = datanewBusyState - }; - } - } - public struct _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 21; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb commandData, IOutProtocolBitStream bitStream) - { - } - - public static _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _a857fd6c221f7f04fa9ed500e317642a_0f10acf8439d449385dbd33450d1f0fb() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 : IEntityCommand - { - public System.Boolean newBusyState; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 22; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4( - Entity entity, - System.Boolean newBusyState - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.StateAuthorityOnly; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.newBusyState = newBusyState; - } - - public static void Serialize(_a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBool(commandData.newBusyState); - } - - public static _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datanewBusyState = bitStream.ReadBool(); - - return new _a857fd6c221f7f04fa9ed500e317642a_7f3e0b9e3ab247f68ebb0067b5b4b6c4() - { - Entity = entity, - Routing = target, - Target = target, - newBusyState = datanewBusyState - }; - } - } - public struct _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 23; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _a857fd6c221f7f04fa9ed500e317642a_a08cbf1b7c0b489e9d34a142c88514c8() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 24; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _a857fd6c221f7f04fa9ed500e317642a_e584959f421448c0b118bf28bd4867b2() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 25; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _a857fd6c221f7f04fa9ed500e317642a_e86b8c2ff539476e96c5792baaad07d6() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 26; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _b7bb309cd508641d3887ec91696ac623_195171a3094b49ce9dc624b38e8a6b09() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7 : IEntityCommand - { - public System.Boolean toUp; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 27; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7( - Entity entity, - System.Boolean toUp - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.Other; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.toUp = toUp; - } - - public static void Serialize(_b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBool(commandData.toUp); - } - - public static _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datatoUp = bitStream.ReadBool(); - - return new _b7bb309cd508641d3887ec91696ac623_64674b8d4999426fb995493ab95cb6d7() - { - Entity = entity, - Routing = target, - Target = target, - toUp = datatoUp - }; - } - } - public struct _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 28; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _b7bb309cd508641d3887ec91696ac623_e5df7db2535f410690edf553148f2ac6() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 29; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _c76bd173fbfcfba44982ec0a19f9c897_ad9e635638034d88b0c6dcd8a9c83286() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 30; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _cd9bcc1feead9419fac0c5981ce85c23_2306915e22844eadbded8e81dad23c41() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 31; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _cd9bcc1feead9419fac0c5981ce85c23_344741bcfef14e43909a3d3fe59aa829() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 : IEntityCommand - { - public System.String name; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 32; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6( - Entity entity, - System.String name - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.All; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.name = name; - } - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteString(commandData.name); - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var dataname = bitStream.ReadString(); - - return new _cd9bcc1feead9419fac0c5981ce85c23_3f725e0b03bc47c6b9a9e726699545a6() - { - Entity = entity, - Routing = target, - Target = target, - name = dataname - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 33; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _cd9bcc1feead9419fac0c5981ce85c23_9072e96068c94ef9a783ea24d7448bf8() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 34; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _cd9bcc1feead9419fac0c5981ce85c23_9b336114382d4c8e917671bfe4a6a142() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 35; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _cd9bcc1feead9419fac0c5981ce85c23_a44176edbb6f4de88cf611e02b9b81a5() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 36; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d commandData, IOutProtocolBitStream bitStream) - { - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _cd9bcc1feead9419fac0c5981ce85c23_a6362094f44f4918a0b4a6b21f19b61d() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 37; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c commandData, IOutProtocolBitStream bitStream) - { - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _cd9bcc1feead9419fac0c5981ce85c23_c6cd65f2d33547e7800e9cd24ce9a96c() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe : IEntityCommand - { - public System.Byte[] encodedMessage; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 38; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe( - Entity entity, - System.Byte[] encodedMessage - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.Other; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.encodedMessage = encodedMessage; - } - - public static void Serialize(_cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBytes(commandData.encodedMessage); - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var dataencodedMessage = bitStream.ReadBytes(); - - return new _cd9bcc1feead9419fac0c5981ce85c23_d80a9015b8844731b2e04870faa56abe() - { - Entity = entity, - Routing = target, - Target = target, - encodedMessage = dataencodedMessage - }; - } - } - public struct _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 39; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _e74854605b68b435280bc0ac73fef6c1_ad9e635638034d88b0c6dcd8a9c83286() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - public struct _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d : IEntityCommand - { - public System.Boolean newState; - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 40; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - public _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d( - Entity entity, - System.Boolean newState - ) - { - Entity = entity; - ChannelID = Coherence.ChannelID.Default; - Target = default; - Routing = MessageTarget.StateAuthorityOnly; - SenderParticipant = 0; - SenderClientID = default; - Frame = 0; - UsesMeta = false; - - this.newState = newState; - } - - public static void Serialize(_ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d commandData, IOutProtocolBitStream bitStream) - { - bitStream.WriteBool(commandData.newState); - } - - public static _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - var datanewState = bitStream.ReadBool(); - - return new _ec47cd7906b7749f4853524abf78e799_d9e25df655c0450f92da43abe92a930d() - { - Entity = entity, - Routing = target, - Target = target, - newState = datanewState - }; - } - } - public struct _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286 : IEntityCommand - { - - public Entity Entity { get; set; } - public Coherence.ChannelID ChannelID { get; set; } - public MessageTarget Target { get; set; } - public MessageTarget Routing { get; set; } - public uint SenderParticipant { get; set; } - public ClientID SenderClientID { get; set; } - public long Frame { get; set; } - public uint GetComponentType() => 41; - - public bool UsesMeta { get; set; } - - public IEntityMessage Clone() - { - // This is a struct, so we can safely return - // a struct copy. - return this; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToAbsoluteEntity(Entity, false, out var absoluteEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper, Coherence.Log.Logger logger) - { - var err = mapper.MapToRelativeEntity(Entity, false, out var relativeEntity); - if (err != IEntityMapper.Error.None) - { - return err; - } - Entity = relativeEntity; - return IEntityMapper.Error.None; - } - - public HashSet GetEntityRefs() { - return default; - } - - public void NullEntityRefs(Entity entity) { - } - - - public static void Serialize(_f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286 commandData, IOutProtocolBitStream bitStream) - { - } - - public static _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286 Deserialize(IInProtocolBitStream bitStream, Entity entity, MessageTarget target) - { - - return new _f446f3c484ae048c4ba11ef7b8642420_ad9e635638034d88b0c6dcd8a9c83286() - { - Entity = entity, - Routing = target, - Target = target, - }; - } - } - -} diff --git a/Assets/coherence/baked/Interop/baked_commands.cs.meta b/Assets/coherence/baked/Interop/baked_commands.cs.meta deleted file mode 100644 index a4dc7f2..0000000 --- a/Assets/coherence/baked/Interop/baked_commands.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 52dd64e54d5594bc08deb74a6274e4ad -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/coherence/baked/Interop/baked_components.cs b/Assets/coherence/baked/Interop/baked_components.cs deleted file mode 100644 index b183dd1..0000000 --- a/Assets/coherence/baked/Interop/baked_components.cs +++ /dev/null @@ -1,10490 +0,0 @@ -// Copyright (c) coherence ApS. -// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. - -// -// Generated file. DO NOT EDIT! -// -namespace Coherence.Generated -{ - using System; - using System.Runtime.InteropServices; - using System.Collections.Generic; - using Coherence.ProtocolDef; - using Coherence.Serializer; - using Coherence.SimulationFrame; - using Coherence.Entities; - using Coherence.Utils; - using Coherence.Brook; - using Coherence.Core; - using Logger = Coherence.Log.Logger; - using UnityEngine; - using Coherence.Toolkit; - public struct WorldPosition : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= WorldPosition.valueMask; - valueSimulationFrame = frame; - } - - public static uint valueMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame valueSimulationFrame; - public Vector3 value; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 0; - public int PriorityLevel() => 1000; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - private long[] simulationFrames; - - public long[] GetSimulationFrames() { - if (simulationFrames == null) - { - simulationFrames = new long[1]; - } - - simulationFrames[0] = valueSimulationFrame; - - return simulationFrames; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => true; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - if ((FieldsMask & WorldPosition.valueMask) != 0 && (min == null || this.valueSimulationFrame < min)) - { - min = this.valueSimulationFrame; - } - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (WorldPosition)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.valueSimulationFrame = other.valueSimulationFrame; - this.value = other.value; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(WorldPosition data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - if (isRefSimFrameValid) { - var simFrameDelta = data.valueSimulationFrame - referenceSimulationFrame; - if (simFrameDelta > byte.MaxValue) { - simFrameDelta = byte.MaxValue; - } - - SerializeTools.WriteFieldSimFrameDelta(bitStream, (byte)simFrameDelta); - } else { - SerializeTools.WriteFieldSimFrameDelta(bitStream, 0); - } - - - var fieldValue = (data.value.ToCoreVector3()); - - Coherence.Utils.Bounds.CheckPositionForNanAndInfinity(ref fieldValue, logger); - - bitStream.WriteVector3(fieldValue, FloatMeta.NoCompression()); - } - - mask >>= 1; - - return mask; - } - - public static WorldPosition Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new WorldPosition(); - if (bitStream.ReadMask()) - { - val.valueSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.value = bitStream.ReadVector3(FloatMeta.NoCompression()).ToUnityVector3(); - val.FieldsMask |= WorldPosition.valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static WorldPosition DeserializeArchetype_3889a458e94666d4784df30d8dd06d7d_WorldPosition_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new WorldPosition(); - if (bitStream.ReadMask()) - { - val.valueSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.value = bitStream.ReadVector3(FloatMeta.NoCompression()).ToUnityVector3(); - val.FieldsMask |= valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - public static WorldPosition DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldPosition_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new WorldPosition(); - if (bitStream.ReadMask()) - { - val.valueSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.value = bitStream.ReadVector3(FloatMeta.ForFixedPoint(-100, 600, 0.01d)).ToUnityVector3(); - val.FieldsMask |= valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"WorldPosition(" + - $" value: { this.value }" + - $", valueSimFrame: { this.valueSimulationFrame }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct WorldOrientation : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= WorldOrientation.valueMask; - valueSimulationFrame = frame; - } - - public static uint valueMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame valueSimulationFrame; - public Quaternion value; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 1; - public int PriorityLevel() => 1000; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - private long[] simulationFrames; - - public long[] GetSimulationFrames() { - if (simulationFrames == null) - { - simulationFrames = new long[1]; - } - - simulationFrames[0] = valueSimulationFrame; - - return simulationFrames; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - if ((FieldsMask & WorldOrientation.valueMask) != 0 && (min == null || this.valueSimulationFrame < min)) - { - min = this.valueSimulationFrame; - } - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (WorldOrientation)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.valueSimulationFrame = other.valueSimulationFrame; - this.value = other.value; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(WorldOrientation data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - if (isRefSimFrameValid) { - var simFrameDelta = data.valueSimulationFrame - referenceSimulationFrame; - if (simFrameDelta > byte.MaxValue) { - simFrameDelta = byte.MaxValue; - } - - SerializeTools.WriteFieldSimFrameDelta(bitStream, (byte)simFrameDelta); - } else { - SerializeTools.WriteFieldSimFrameDelta(bitStream, 0); - } - - - var fieldValue = (data.value.ToCoreQuaternion()); - - - - bitStream.WriteQuaternion(fieldValue, 32); - } - - mask >>= 1; - - return mask; - } - - public static WorldOrientation Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new WorldOrientation(); - if (bitStream.ReadMask()) - { - val.valueSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.value = bitStream.ReadQuaternion(32).ToUnityQuaternion(); - val.FieldsMask |= WorldOrientation.valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static WorldOrientation DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23_WorldOrientation_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new WorldOrientation(); - if (bitStream.ReadMask()) - { - val.valueSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.value = bitStream.ReadQuaternion(12).ToUnityQuaternion(); - val.FieldsMask |= valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"WorldOrientation(" + - $" value: { this.value }" + - $", valueSimFrame: { this.valueSimulationFrame }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct LocalUserComponent : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= LocalUserComponent.localIndexMask; - localIndexSimulationFrame = frame; - } - - public static uint localIndexMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame localIndexSimulationFrame; - public System.Int32 localIndex; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 2; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _localIndex_Min = -2147483648; - private static readonly System.Int32 _localIndex_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (LocalUserComponent)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.localIndexSimulationFrame = other.localIndexSimulationFrame; - this.localIndex = other.localIndex; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(LocalUserComponent data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.localIndex, _localIndex_Min, _localIndex_Max, "LocalUserComponent.localIndex", logger); - - data.localIndex = Coherence.Utils.Bounds.Clamp(data.localIndex, _localIndex_Min, _localIndex_Max); - - var fieldValue = data.localIndex; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static LocalUserComponent Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new LocalUserComponent(); - if (bitStream.ReadMask()) - { - - val.localIndex = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= LocalUserComponent.localIndexMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"LocalUserComponent(" + - $" localIndex: { this.localIndex }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct WorldPositionQuery : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= WorldPositionQuery.positionMask; - positionSimulationFrame = frame; - FieldsMask |= WorldPositionQuery.radiusMask; - radiusSimulationFrame = frame; - FieldsMask |= WorldPositionQuery.bufferMask; - bufferSimulationFrame = frame; - } - - public static uint positionMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame positionSimulationFrame; - public Vector3 position; - public static uint radiusMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame radiusSimulationFrame; - public System.Single radius; - public static uint bufferMask => 0b00000000000000000000000000000100; - public AbsoluteSimulationFrame bufferSimulationFrame; - public System.Single buffer; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 3; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000111; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 3; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (WorldPositionQuery)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.positionSimulationFrame = other.positionSimulationFrame; - this.position = other.position; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.radiusSimulationFrame = other.radiusSimulationFrame; - this.radius = other.radius; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.bufferSimulationFrame = other.bufferSimulationFrame; - this.buffer = other.buffer; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(WorldPositionQuery data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 3); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = (data.position.ToCoreVector3()); - - - - bitStream.WriteVector3(fieldValue, FloatMeta.NoCompression()); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.radius; - - - - bitStream.WriteFloat(fieldValue, FloatMeta.NoCompression()); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.buffer; - - - - bitStream.WriteFloat(fieldValue, FloatMeta.NoCompression()); - } - - mask >>= 1; - - return mask; - } - - public static WorldPositionQuery Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(3); - } - - var val = new WorldPositionQuery(); - if (bitStream.ReadMask()) - { - - val.position = bitStream.ReadVector3(FloatMeta.NoCompression()).ToUnityVector3(); - val.FieldsMask |= WorldPositionQuery.positionMask; - } - if (bitStream.ReadMask()) - { - - val.radius = bitStream.ReadFloat(FloatMeta.NoCompression()); - val.FieldsMask |= WorldPositionQuery.radiusMask; - } - if (bitStream.ReadMask()) - { - - val.buffer = bitStream.ReadFloat(FloatMeta.NoCompression()); - val.FieldsMask |= WorldPositionQuery.bufferMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"WorldPositionQuery(" + - $" position: { this.position }" + - $" radius: { this.radius }" + - $" buffer: { this.buffer }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(3, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(3, '0') })"; - } - } - public struct ArchetypeComponent : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= ArchetypeComponent.indexMask; - indexSimulationFrame = frame; - } - - public static uint indexMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame indexSimulationFrame; - public System.Int32 index; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 4; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _index_Min = -2147483648; - private static readonly System.Int32 _index_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (ArchetypeComponent)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.indexSimulationFrame = other.indexSimulationFrame; - this.index = other.index; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(ArchetypeComponent data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.index, _index_Min, _index_Max, "ArchetypeComponent.index", logger); - - data.index = Coherence.Utils.Bounds.Clamp(data.index, _index_Min, _index_Max); - - var fieldValue = data.index; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static ArchetypeComponent Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new ArchetypeComponent(); - if (bitStream.ReadMask()) - { - - val.index = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= ArchetypeComponent.indexMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"ArchetypeComponent(" + - $" index: { this.index }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct Persistence : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - } - - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 5; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000000; - public bool HasFields() => false; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 0; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (Persistence)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(Persistence data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 0); - } - - var mask = data.FieldsMask; - - - return mask; - } - - public static Persistence Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(0); - } - - var val = new Persistence(); - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"Persistence(" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(0, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(0, '0') })"; - } - } - public struct ConnectedEntity : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= ConnectedEntity.valueMask; - valueSimulationFrame = frame; - FieldsMask |= ConnectedEntity.posMask; - posSimulationFrame = frame; - FieldsMask |= ConnectedEntity.rotMask; - rotSimulationFrame = frame; - FieldsMask |= ConnectedEntity.scaleMask; - scaleSimulationFrame = frame; - } - - public static uint valueMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame valueSimulationFrame; - public Entity value; - public static uint posMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame posSimulationFrame; - public Vector3 pos; - public static uint rotMask => 0b00000000000000000000000000000100; - public AbsoluteSimulationFrame rotSimulationFrame; - public Quaternion rot; - public static uint scaleMask => 0b00000000000000000000000000001000; - public AbsoluteSimulationFrame scaleSimulationFrame; - public Vector3 scale; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 6; - public int PriorityLevel() => 100; - public const int order = -1; - public uint InitialFieldsMask() => 0b00000000000000000000000000001111; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 4; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.value, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.value == fromEntity) - { - this.value = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.value, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.value = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_value = true; - err = mapper.MapToRelativeEntity(this.value, createParentMapping_value, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.value = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => true; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (ConnectedEntity)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.valueSimulationFrame = other.valueSimulationFrame; - this.value = other.value; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.posSimulationFrame = other.posSimulationFrame; - this.pos = other.pos; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.rotSimulationFrame = other.rotSimulationFrame; - this.rot = other.rot; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.scaleSimulationFrame = other.scaleSimulationFrame; - this.scale = other.scale; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(ConnectedEntity data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 4); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.value; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = (data.pos.ToCoreVector3()); - - - - bitStream.WriteVector3(fieldValue, FloatMeta.NoCompression()); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = (data.rot.ToCoreQuaternion()); - - - - bitStream.WriteQuaternion(fieldValue, 32); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = (data.scale.ToCoreVector3()); - - - - bitStream.WriteVector3(fieldValue, FloatMeta.NoCompression()); - } - - mask >>= 1; - - return mask; - } - - public static ConnectedEntity Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(4); - } - - var val = new ConnectedEntity(); - if (bitStream.ReadMask()) - { - - val.value = bitStream.ReadEntity(); - val.FieldsMask |= ConnectedEntity.valueMask; - } - if (bitStream.ReadMask()) - { - - val.pos = bitStream.ReadVector3(FloatMeta.NoCompression()).ToUnityVector3(); - val.FieldsMask |= ConnectedEntity.posMask; - } - if (bitStream.ReadMask()) - { - - val.rot = bitStream.ReadQuaternion(32).ToUnityQuaternion(); - val.FieldsMask |= ConnectedEntity.rotMask; - } - if (bitStream.ReadMask()) - { - - val.scale = bitStream.ReadVector3(FloatMeta.NoCompression()).ToUnityVector3(); - val.FieldsMask |= ConnectedEntity.scaleMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"ConnectedEntity(" + - $" value: { this.value }" + - $" pos: { this.pos }" + - $" rot: { this.rot }" + - $" scale: { this.scale }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(4, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(4, '0') })"; - } - } - public struct UniqueID : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= UniqueID.uuidMask; - uuidSimulationFrame = frame; - } - - public static uint uuidMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame uuidSimulationFrame; - public System.String uuid; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 7; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (UniqueID)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.uuidSimulationFrame = other.uuidSimulationFrame; - this.uuid = other.uuid; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(UniqueID data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.uuid; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static UniqueID Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new UniqueID(); - if (bitStream.ReadMask()) - { - - val.uuid = bitStream.ReadString(); - val.FieldsMask |= UniqueID.uuidMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"UniqueID(" + - $" uuid: { this.uuid }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct Connection : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= Connection.idMask; - idSimulationFrame = frame; - FieldsMask |= Connection.typeMask; - typeSimulationFrame = frame; - } - - public static uint idMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame idSimulationFrame; - public System.UInt32 id; - public static uint typeMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame typeSimulationFrame; - public System.Int32 type; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 8; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.UInt32 _id_Min = 0; - private static readonly System.UInt32 _id_Max = 2147483647; - private static readonly System.Int32 _type_Min = 0; - private static readonly System.Int32 _type_Max = 8; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (Connection)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.idSimulationFrame = other.idSimulationFrame; - this.id = other.id; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.typeSimulationFrame = other.typeSimulationFrame; - this.type = other.type; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(Connection data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.id, _id_Min, _id_Max, "Connection.id", logger); - - data.id = Coherence.Utils.Bounds.Clamp(data.id, _id_Min, _id_Max); - - var fieldValue = data.id; - - - - bitStream.WriteUIntegerRange(fieldValue, 31, 0); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.type, _type_Min, _type_Max, "Connection.type", logger); - - data.type = Coherence.Utils.Bounds.Clamp(data.type, _type_Min, _type_Max); - - var fieldValue = data.type; - - - - bitStream.WriteIntegerRange(fieldValue, 3, 0); - } - - mask >>= 1; - - return mask; - } - - public static Connection Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new Connection(); - if (bitStream.ReadMask()) - { - - val.id = bitStream.ReadUIntegerRange(31, 0); - val.FieldsMask |= Connection.idMask; - } - if (bitStream.ReadMask()) - { - - val.type = bitStream.ReadIntegerRange(3, 0); - val.FieldsMask |= Connection.typeMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"Connection(" + - $" id: { this.id }" + - $" type: { this.type }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct ConnectionScene : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= ConnectionScene.valueMask; - valueSimulationFrame = frame; - } - - public static uint valueMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame valueSimulationFrame; - public System.UInt32 value; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 9; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.UInt32 _value_Min = 0; - private static readonly System.UInt32 _value_Max = 4294967295; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (ConnectionScene)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.valueSimulationFrame = other.valueSimulationFrame; - this.value = other.value; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(ConnectionScene data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.value, _value_Min, _value_Max, "ConnectionScene.value", logger); - - data.value = Coherence.Utils.Bounds.Clamp(data.value, _value_Min, _value_Max); - - var fieldValue = data.value; - - - - bitStream.WriteUIntegerRange(fieldValue, 32, 0); - } - - mask >>= 1; - - return mask; - } - - public static ConnectionScene Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new ConnectionScene(); - if (bitStream.ReadMask()) - { - - val.value = bitStream.ReadUIntegerRange(32, 0); - val.FieldsMask |= ConnectionScene.valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"ConnectionScene(" + - $" value: { this.value }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct Global : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - } - - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 10; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000000; - public bool HasFields() => false; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 0; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (Global)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(Global data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 0); - } - - var mask = data.FieldsMask; - - - return mask; - } - - public static Global Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(0); - } - - var val = new Global(); - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"Global(" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(0, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(0, '0') })"; - } - } - public struct GlobalQuery : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - } - - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 11; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000000; - public bool HasFields() => false; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 0; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (GlobalQuery)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(GlobalQuery data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 0); - } - - var mask = data.FieldsMask; - - - return mask; - } - - public static GlobalQuery Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(0); - } - - var val = new GlobalQuery(); - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"GlobalQuery(" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(0, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(0, '0') })"; - } - } - public struct Tag : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= Tag.tagMask; - tagSimulationFrame = frame; - } - - public static uint tagMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame tagSimulationFrame; - public System.String tag; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 12; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (Tag)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.tagSimulationFrame = other.tagSimulationFrame; - this.tag = other.tag; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(Tag data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.tag; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static Tag Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new Tag(); - if (bitStream.ReadMask()) - { - - val.tag = bitStream.ReadString(); - val.FieldsMask |= Tag.tagMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"Tag(" + - $" tag: { this.tag }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct TagQuery : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= TagQuery.tagMask; - tagSimulationFrame = frame; - } - - public static uint tagMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame tagSimulationFrame; - public System.String tag; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 13; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (TagQuery)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.tagSimulationFrame = other.tagSimulationFrame; - this.tag = other.tag; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(TagQuery data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.tag; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static TagQuery Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new TagQuery(); - if (bitStream.ReadMask()) - { - - val.tag = bitStream.ReadString(); - val.FieldsMask |= TagQuery.tagMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"TagQuery(" + - $" tag: { this.tag }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct PreserveChildren : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - } - - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 14; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000000; - public bool HasFields() => false; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 0; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (PreserveChildren)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(PreserveChildren data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 0); - } - - var mask = data.FieldsMask; - - - return mask; - } - - public static PreserveChildren Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(0); - } - - var val = new PreserveChildren(); - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"PreserveChildren(" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(0, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(0, '0') })"; - } - } - public struct Scene : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= Scene.valueMask; - valueSimulationFrame = frame; - } - - public static uint valueMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame valueSimulationFrame; - public System.UInt32 value; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 15; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.UInt32 _value_Min = 0; - private static readonly System.UInt32 _value_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (Scene)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.valueSimulationFrame = other.valueSimulationFrame; - this.value = other.value; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(Scene data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.value, _value_Min, _value_Max, "Scene.value", logger); - - data.value = Coherence.Utils.Bounds.Clamp(data.value, _value_Min, _value_Max); - - var fieldValue = data.value; - - - - bitStream.WriteUIntegerRange(fieldValue, 32, 0); - } - - mask >>= 1; - - return mask; - } - - public static Scene Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new Scene(); - if (bitStream.ReadMask()) - { - - val.value = bitStream.ReadUIntegerRange(32, 0); - val.FieldsMask |= Scene.valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"Scene(" + - $" value: { this.value }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct AssetId : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= AssetId.valueMask; - valueSimulationFrame = frame; - FieldsMask |= AssetId.isFromGroupMask; - isFromGroupSimulationFrame = frame; - } - - public static uint valueMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame valueSimulationFrame; - public System.Int32 value; - public static uint isFromGroupMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame isFromGroupSimulationFrame; - public System.Boolean isFromGroup; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 16; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (AssetId)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.valueSimulationFrame = other.valueSimulationFrame; - this.value = other.value; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.isFromGroupSimulationFrame = other.isFromGroupSimulationFrame; - this.isFromGroup = other.isFromGroup; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(AssetId data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.value; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isFromGroup; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static AssetId Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new AssetId(); - if (bitStream.ReadMask()) - { - - val.value = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= AssetId.valueMask; - } - if (bitStream.ReadMask()) - { - - val.isFromGroup = bitStream.ReadBool(); - val.FieldsMask |= AssetId.isFromGroupMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"AssetId(" + - $" value: { this.value }" + - $" isFromGroup: { this.isFromGroup }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct GenericScale : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= GenericScale.valueMask; - valueSimulationFrame = frame; - } - - public static uint valueMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame valueSimulationFrame; - public Vector3 value; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 17; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - private long[] simulationFrames; - - public long[] GetSimulationFrames() { - if (simulationFrames == null) - { - simulationFrames = new long[1]; - } - - simulationFrames[0] = valueSimulationFrame; - - return simulationFrames; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - if ((FieldsMask & GenericScale.valueMask) != 0 && (min == null || this.valueSimulationFrame < min)) - { - min = this.valueSimulationFrame; - } - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (GenericScale)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.valueSimulationFrame = other.valueSimulationFrame; - this.value = other.value; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(GenericScale data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - if (isRefSimFrameValid) { - var simFrameDelta = data.valueSimulationFrame - referenceSimulationFrame; - if (simFrameDelta > byte.MaxValue) { - simFrameDelta = byte.MaxValue; - } - - SerializeTools.WriteFieldSimFrameDelta(bitStream, (byte)simFrameDelta); - } else { - SerializeTools.WriteFieldSimFrameDelta(bitStream, 0); - } - - - var fieldValue = (data.value.ToCoreVector3()); - - - - bitStream.WriteVector3(fieldValue, FloatMeta.NoCompression()); - } - - mask >>= 1; - - return mask; - } - - public static GenericScale Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new GenericScale(); - if (bitStream.ReadMask()) - { - val.valueSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.value = bitStream.ReadVector3(FloatMeta.NoCompression()).ToUnityVector3(); - val.FieldsMask |= GenericScale.valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static GenericScale DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23_GenericScale_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new GenericScale(); - if (bitStream.ReadMask()) - { - val.valueSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.value = bitStream.ReadVector3(FloatMeta.NoCompression()).ToUnityVector3(); - val.FieldsMask |= valueMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"GenericScale(" + - $" value: { this.value }" + - $", valueSimFrame: { this.valueSimulationFrame }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _0109999de4f6d45bb8c13493b504dee7_1143969198414876421 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _0109999de4f6d45bb8c13493b504dee7_1143969198414876421.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _0109999de4f6d45bb8c13493b504dee7_1143969198414876421.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 18; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_0109999de4f6d45bb8c13493b504dee7_1143969198414876421)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_0109999de4f6d45bb8c13493b504dee7_1143969198414876421 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_0109999de4f6d45bb8c13493b504dee7_1143969198414876421.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _0109999de4f6d45bb8c13493b504dee7_1143969198414876421 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _0109999de4f6d45bb8c13493b504dee7_1143969198414876421(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _0109999de4f6d45bb8c13493b504dee7_1143969198414876421.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _0109999de4f6d45bb8c13493b504dee7_1143969198414876421.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_0109999de4f6d45bb8c13493b504dee7_1143969198414876421(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _0109999de4f6d45bb8c13493b504dee7_616379459864002610 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _0109999de4f6d45bb8c13493b504dee7_616379459864002610.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 19; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_0109999de4f6d45bb8c13493b504dee7_616379459864002610)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_0109999de4f6d45bb8c13493b504dee7_616379459864002610 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _0109999de4f6d45bb8c13493b504dee7_616379459864002610 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _0109999de4f6d45bb8c13493b504dee7_616379459864002610(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _0109999de4f6d45bb8c13493b504dee7_616379459864002610.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_0109999de4f6d45bb8c13493b504dee7_616379459864002610(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _0109999de4f6d45bb8c13493b504dee7_6732985197249073484 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _0109999de4f6d45bb8c13493b504dee7_6732985197249073484.objectAnchorSyncMask; - objectAnchorSyncSimulationFrame = frame; - } - - public static uint objectAnchorSyncMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame objectAnchorSyncSimulationFrame; - public Entity objectAnchorSync; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 20; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.objectAnchorSync, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.objectAnchorSync == fromEntity) - { - this.objectAnchorSync = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.objectAnchorSync, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_objectAnchorSync = true; - err = mapper.MapToRelativeEntity(this.objectAnchorSync, createParentMapping_objectAnchorSync, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_0109999de4f6d45bb8c13493b504dee7_6732985197249073484)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.objectAnchorSyncSimulationFrame = other.objectAnchorSyncSimulationFrame; - this.objectAnchorSync = other.objectAnchorSync; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_0109999de4f6d45bb8c13493b504dee7_6732985197249073484 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.objectAnchorSync; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _0109999de4f6d45bb8c13493b504dee7_6732985197249073484 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _0109999de4f6d45bb8c13493b504dee7_6732985197249073484(); - if (bitStream.ReadMask()) - { - - val.objectAnchorSync = bitStream.ReadEntity(); - val.FieldsMask |= _0109999de4f6d45bb8c13493b504dee7_6732985197249073484.objectAnchorSyncMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_0109999de4f6d45bb8c13493b504dee7_6732985197249073484(" + - $" objectAnchorSync: { this.objectAnchorSync }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932.objectAnchorSyncMask; - objectAnchorSyncSimulationFrame = frame; - } - - public static uint objectAnchorSyncMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame objectAnchorSyncSimulationFrame; - public Entity objectAnchorSync; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 21; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.objectAnchorSync, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.objectAnchorSync == fromEntity) - { - this.objectAnchorSync = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.objectAnchorSync, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_objectAnchorSync = true; - err = mapper.MapToRelativeEntity(this.objectAnchorSync, createParentMapping_objectAnchorSync, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.objectAnchorSyncSimulationFrame = other.objectAnchorSyncSimulationFrame; - this.objectAnchorSync = other.objectAnchorSync; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.objectAnchorSync; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932(); - if (bitStream.ReadMask()) - { - - val.objectAnchorSync = bitStream.ReadEntity(); - val.FieldsMask |= _0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932.objectAnchorSyncMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_0d27e1ad6d8e5ba4abca3216a92298f7_4384992023136877932(" + - $" objectAnchorSync: { this.objectAnchorSync }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 22; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_0d27e1ad6d8e5ba4abca3216a92298f7_7577043058907851794(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 23; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_0d27e1ad6d8e5ba4abca3216a92298f7_7947429143224902437(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _3889a458e94666d4784df30d8dd06d7d_6540142254599110064 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.activeFireEffectMask; - activeFireEffectSimulationFrame = frame; - FieldsMask |= _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.fireTimerMask; - fireTimerSimulationFrame = frame; - FieldsMask |= _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.bigFireTimerMask; - bigFireTimerSimulationFrame = frame; - } - - public static uint activeFireEffectMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame activeFireEffectSimulationFrame; - public System.Int32 activeFireEffect; - public static uint fireTimerMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame fireTimerSimulationFrame; - public System.Single fireTimer; - public static uint bigFireTimerMask => 0b00000000000000000000000000000100; - public AbsoluteSimulationFrame bigFireTimerSimulationFrame; - public System.Single bigFireTimer; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 24; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000111; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 3; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _activeFireEffect_Min = -1; - private static readonly System.Int32 _activeFireEffect_Max = 10; - private static readonly float _fireTimer_Min = -5f; - private static readonly float _fireTimer_Max = 100f; - private static readonly float _bigFireTimer_Min = -5f; - private static readonly float _bigFireTimer_Max = 100f; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_3889a458e94666d4784df30d8dd06d7d_6540142254599110064)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.activeFireEffectSimulationFrame = other.activeFireEffectSimulationFrame; - this.activeFireEffect = other.activeFireEffect; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.fireTimerSimulationFrame = other.fireTimerSimulationFrame; - this.fireTimer = other.fireTimer; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.bigFireTimerSimulationFrame = other.bigFireTimerSimulationFrame; - this.bigFireTimer = other.bigFireTimer; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_3889a458e94666d4784df30d8dd06d7d_6540142254599110064 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 3); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.activeFireEffect, _activeFireEffect_Min, _activeFireEffect_Max, "_3889a458e94666d4784df30d8dd06d7d_6540142254599110064.activeFireEffect", logger); - - data.activeFireEffect = Coherence.Utils.Bounds.Clamp(data.activeFireEffect, _activeFireEffect_Min, _activeFireEffect_Max); - - var fieldValue = data.activeFireEffect; - - - - bitStream.WriteIntegerRange(fieldValue, 4, -1); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.fireTimer, _fireTimer_Min, _fireTimer_Max, "_3889a458e94666d4784df30d8dd06d7d_6540142254599110064.fireTimer", logger); - - - var fieldValue = data.fireTimer; - - - - bitStream.WriteFloat(fieldValue, FloatMeta.ForFixedPoint(-5, 100, 0.001d)); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.bigFireTimer, _bigFireTimer_Min, _bigFireTimer_Max, "_3889a458e94666d4784df30d8dd06d7d_6540142254599110064.bigFireTimer", logger); - - - var fieldValue = data.bigFireTimer; - - - - bitStream.WriteFloat(fieldValue, FloatMeta.ForFixedPoint(-5, 100, 0.001d)); - } - - mask >>= 1; - - return mask; - } - - public static _3889a458e94666d4784df30d8dd06d7d_6540142254599110064 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(3); - } - - var val = new _3889a458e94666d4784df30d8dd06d7d_6540142254599110064(); - if (bitStream.ReadMask()) - { - - val.activeFireEffect = bitStream.ReadIntegerRange(4, -1); - val.FieldsMask |= _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.activeFireEffectMask; - } - if (bitStream.ReadMask()) - { - - val.fireTimer = bitStream.ReadFloat(FloatMeta.ForFixedPoint(-5, 100, 0.001d)); - val.FieldsMask |= _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.fireTimerMask; - } - if (bitStream.ReadMask()) - { - - val.bigFireTimer = bitStream.ReadFloat(FloatMeta.ForFixedPoint(-5, 100, 0.001d)); - val.FieldsMask |= _3889a458e94666d4784df30d8dd06d7d_6540142254599110064.bigFireTimerMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static _3889a458e94666d4784df30d8dd06d7d_6540142254599110064 DeserializeArchetype_3889a458e94666d4784df30d8dd06d7d__3889a458e94666d4784df30d8dd06d7d_6540142254599110064_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(3); - } - - var val = new _3889a458e94666d4784df30d8dd06d7d_6540142254599110064(); - if (bitStream.ReadMask()) - { - - val.activeFireEffect = bitStream.ReadIntegerRange(4, -1); - val.FieldsMask |= activeFireEffectMask; - } - if (bitStream.ReadMask()) - { - - val.fireTimer = bitStream.ReadFloat(FloatMeta.ForFixedPoint(-5, 100, 0.001d)); - val.FieldsMask |= fireTimerMask; - } - if (bitStream.ReadMask()) - { - - val.bigFireTimer = bitStream.ReadFloat(FloatMeta.ForFixedPoint(-5, 100, 0.001d)); - val.FieldsMask |= bigFireTimerMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"_3889a458e94666d4784df30d8dd06d7d_6540142254599110064(" + - $" activeFireEffect: { this.activeFireEffect }" + - $" fireTimer: { this.fireTimer }" + - $" bigFireTimer: { this.bigFireTimer }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(3, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(3, '0') })"; - } - } - public struct _3d92447627afdfc419ceeb6b26251a87_1406947345458511524 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _3d92447627afdfc419ceeb6b26251a87_1406947345458511524.energyMask; - energySimulationFrame = frame; - } - - public static uint energyMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame energySimulationFrame; - public System.Int32 energy; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 25; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _energy_Min = -2147483648; - private static readonly System.Int32 _energy_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_3d92447627afdfc419ceeb6b26251a87_1406947345458511524)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.energySimulationFrame = other.energySimulationFrame; - this.energy = other.energy; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_3d92447627afdfc419ceeb6b26251a87_1406947345458511524 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.energy, _energy_Min, _energy_Max, "_3d92447627afdfc419ceeb6b26251a87_1406947345458511524.energy", logger); - - data.energy = Coherence.Utils.Bounds.Clamp(data.energy, _energy_Min, _energy_Max); - - var fieldValue = data.energy; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _3d92447627afdfc419ceeb6b26251a87_1406947345458511524 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _3d92447627afdfc419ceeb6b26251a87_1406947345458511524(); - if (bitStream.ReadMask()) - { - - val.energy = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _3d92447627afdfc419ceeb6b26251a87_1406947345458511524.energyMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_3d92447627afdfc419ceeb6b26251a87_1406947345458511524(" + - $" energy: { this.energy }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777.objectAnchorSyncMask; - objectAnchorSyncSimulationFrame = frame; - } - - public static uint objectAnchorSyncMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame objectAnchorSyncSimulationFrame; - public Entity objectAnchorSync; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 26; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.objectAnchorSync, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.objectAnchorSync == fromEntity) - { - this.objectAnchorSync = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.objectAnchorSync, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_objectAnchorSync = true; - err = mapper.MapToRelativeEntity(this.objectAnchorSync, createParentMapping_objectAnchorSync, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.objectAnchorSyncSimulationFrame = other.objectAnchorSyncSimulationFrame; - this.objectAnchorSync = other.objectAnchorSync; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.objectAnchorSync; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777(); - if (bitStream.ReadMask()) - { - - val.objectAnchorSync = bitStream.ReadEntity(); - val.FieldsMask |= _451e73a8eddd14b2daf891b5ee6c2308_318412099543152777.objectAnchorSyncMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_451e73a8eddd14b2daf891b5ee6c2308_318412099543152777(" + - $" objectAnchorSync: { this.objectAnchorSync }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 27; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_451e73a8eddd14b2daf891b5ee6c2308_5879086033831766519(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 28; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_451e73a8eddd14b2daf891b5ee6c2308_6267697520601458368(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _7455a9685d292b843b28465a4faffd05_4295192434143702777 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _7455a9685d292b843b28465a4faffd05_4295192434143702777.enabledMask; - enabledSimulationFrame = frame; - } - - public static uint enabledMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame enabledSimulationFrame; - public System.Boolean enabled; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 29; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_7455a9685d292b843b28465a4faffd05_4295192434143702777)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.enabledSimulationFrame = other.enabledSimulationFrame; - this.enabled = other.enabled; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_7455a9685d292b843b28465a4faffd05_4295192434143702777 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.enabled; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _7455a9685d292b843b28465a4faffd05_4295192434143702777 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _7455a9685d292b843b28465a4faffd05_4295192434143702777(); - if (bitStream.ReadMask()) - { - - val.enabled = bitStream.ReadBool(); - val.FieldsMask |= _7455a9685d292b843b28465a4faffd05_4295192434143702777.enabledMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_7455a9685d292b843b28465a4faffd05_4295192434143702777(" + - $" enabled: { this.enabled }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _7455a9685d292b843b28465a4faffd05_486810980 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _7455a9685d292b843b28465a4faffd05_486810980.isBusyMask; - isBusySimulationFrame = frame; - } - - public static uint isBusyMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBusySimulationFrame; - public System.Boolean isBusy; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 30; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_7455a9685d292b843b28465a4faffd05_486810980)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBusySimulationFrame = other.isBusySimulationFrame; - this.isBusy = other.isBusy; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_7455a9685d292b843b28465a4faffd05_486810980 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBusy; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _7455a9685d292b843b28465a4faffd05_486810980 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _7455a9685d292b843b28465a4faffd05_486810980(); - if (bitStream.ReadMask()) - { - - val.isBusy = bitStream.ReadBool(); - val.FieldsMask |= _7455a9685d292b843b28465a4faffd05_486810980.isBusyMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_7455a9685d292b843b28465a4faffd05_486810980(" + - $" isBusy: { this.isBusy }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _7eef8177eb732314fb850470094a70c9_468635231 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _7eef8177eb732314fb850470094a70c9_468635231.enabledMask; - enabledSimulationFrame = frame; - } - - public static uint enabledMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame enabledSimulationFrame; - public System.Boolean enabled; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 31; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_7eef8177eb732314fb850470094a70c9_468635231)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.enabledSimulationFrame = other.enabledSimulationFrame; - this.enabled = other.enabled; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_7eef8177eb732314fb850470094a70c9_468635231 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.enabled; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _7eef8177eb732314fb850470094a70c9_468635231 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _7eef8177eb732314fb850470094a70c9_468635231(); - if (bitStream.ReadMask()) - { - - val.enabled = bitStream.ReadBool(); - val.FieldsMask |= _7eef8177eb732314fb850470094a70c9_468635231.enabledMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_7eef8177eb732314fb850470094a70c9_468635231(" + - $" enabled: { this.enabled }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _7eef8177eb732314fb850470094a70c9_468635232 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _7eef8177eb732314fb850470094a70c9_468635232.isBusyMask; - isBusySimulationFrame = frame; - } - - public static uint isBusyMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBusySimulationFrame; - public System.Boolean isBusy; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 32; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_7eef8177eb732314fb850470094a70c9_468635232)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBusySimulationFrame = other.isBusySimulationFrame; - this.isBusy = other.isBusy; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_7eef8177eb732314fb850470094a70c9_468635232 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBusy; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _7eef8177eb732314fb850470094a70c9_468635232 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _7eef8177eb732314fb850470094a70c9_468635232(); - if (bitStream.ReadMask()) - { - - val.isBusy = bitStream.ReadBool(); - val.FieldsMask |= _7eef8177eb732314fb850470094a70c9_468635232.isBusyMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_7eef8177eb732314fb850470094a70c9_468635232(" + - $" isBusy: { this.isBusy }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 33; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_89bb435d615753b4f86caa89fd2a5d9d_4071990166734286761(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 34; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_89bb435d615753b4f86caa89fd2a5d9d_4607038716989399198(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224.objectAnchorSyncMask; - objectAnchorSyncSimulationFrame = frame; - } - - public static uint objectAnchorSyncMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame objectAnchorSyncSimulationFrame; - public Entity objectAnchorSync; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 35; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.objectAnchorSync, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.objectAnchorSync == fromEntity) - { - this.objectAnchorSync = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.objectAnchorSync, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_objectAnchorSync = true; - err = mapper.MapToRelativeEntity(this.objectAnchorSync, createParentMapping_objectAnchorSync, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.objectAnchorSyncSimulationFrame = other.objectAnchorSyncSimulationFrame; - this.objectAnchorSync = other.objectAnchorSync; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.objectAnchorSync; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224(); - if (bitStream.ReadMask()) - { - - val.objectAnchorSync = bitStream.ReadEntity(); - val.FieldsMask |= _89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224.objectAnchorSyncMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_89bb435d615753b4f86caa89fd2a5d9d_7643438469673120224(" + - $" objectAnchorSync: { this.objectAnchorSync }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932.objectAnchorSyncMask; - objectAnchorSyncSimulationFrame = frame; - } - - public static uint objectAnchorSyncMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame objectAnchorSyncSimulationFrame; - public Entity objectAnchorSync; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 36; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.objectAnchorSync, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.objectAnchorSync == fromEntity) - { - this.objectAnchorSync = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.objectAnchorSync, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_objectAnchorSync = true; - err = mapper.MapToRelativeEntity(this.objectAnchorSync, createParentMapping_objectAnchorSync, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.objectAnchorSyncSimulationFrame = other.objectAnchorSyncSimulationFrame; - this.objectAnchorSync = other.objectAnchorSync; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.objectAnchorSync; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932(); - if (bitStream.ReadMask()) - { - - val.objectAnchorSync = bitStream.ReadEntity(); - val.FieldsMask |= _8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932.objectAnchorSyncMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_8d0ae98c8cb2746df8fa6b7fef5ee166_4384992023136877932(" + - $" objectAnchorSync: { this.objectAnchorSync }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 37; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_8d0ae98c8cb2746df8fa6b7fef5ee166_7577043058907851794(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 38; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_8d0ae98c8cb2746df8fa6b7fef5ee166_7947429143224902437(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _91ccee2338d92624a8021fda1c91e47c_1987083777327440787 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _91ccee2338d92624a8021fda1c91e47c_1987083777327440787.enabledMask; - enabledSimulationFrame = frame; - } - - public static uint enabledMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame enabledSimulationFrame; - public System.Boolean enabled; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 39; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_91ccee2338d92624a8021fda1c91e47c_1987083777327440787)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.enabledSimulationFrame = other.enabledSimulationFrame; - this.enabled = other.enabled; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_91ccee2338d92624a8021fda1c91e47c_1987083777327440787 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.enabled; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _91ccee2338d92624a8021fda1c91e47c_1987083777327440787 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _91ccee2338d92624a8021fda1c91e47c_1987083777327440787(); - if (bitStream.ReadMask()) - { - - val.enabled = bitStream.ReadBool(); - val.FieldsMask |= _91ccee2338d92624a8021fda1c91e47c_1987083777327440787.enabledMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_91ccee2338d92624a8021fda1c91e47c_1987083777327440787(" + - $" enabled: { this.enabled }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _91ccee2338d92624a8021fda1c91e47c_4713251173614319484 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _91ccee2338d92624a8021fda1c91e47c_4713251173614319484.isBusyMask; - isBusySimulationFrame = frame; - } - - public static uint isBusyMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBusySimulationFrame; - public System.Boolean isBusy; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 40; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_91ccee2338d92624a8021fda1c91e47c_4713251173614319484)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBusySimulationFrame = other.isBusySimulationFrame; - this.isBusy = other.isBusy; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_91ccee2338d92624a8021fda1c91e47c_4713251173614319484 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBusy; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _91ccee2338d92624a8021fda1c91e47c_4713251173614319484 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _91ccee2338d92624a8021fda1c91e47c_4713251173614319484(); - if (bitStream.ReadMask()) - { - - val.isBusy = bitStream.ReadBool(); - val.FieldsMask |= _91ccee2338d92624a8021fda1c91e47c_4713251173614319484.isBusyMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_91ccee2338d92624a8021fda1c91e47c_4713251173614319484(" + - $" isBusy: { this.isBusy }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 41; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_9ea9c7ad1465c4769a67e80391f1158b_2975753946441600970(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 42; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_9ea9c7ad1465c4769a67e80391f1158b_3324184583126450429(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174.IsFlailingMask; - IsFlailingSimulationFrame = frame; - FieldsMask |= _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174.IsCarryingMask; - IsCarryingSimulationFrame = frame; - } - - public static uint IsFlailingMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame IsFlailingSimulationFrame; - public System.Boolean IsFlailing; - public static uint IsCarryingMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame IsCarryingSimulationFrame; - public System.Boolean IsCarrying; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 43; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.IsFlailingSimulationFrame = other.IsFlailingSimulationFrame; - this.IsFlailing = other.IsFlailing; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.IsCarryingSimulationFrame = other.IsCarryingSimulationFrame; - this.IsCarrying = other.IsCarrying; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.IsFlailing; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.IsCarrying; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174(); - if (bitStream.ReadMask()) - { - - val.IsFlailing = bitStream.ReadBool(); - val.FieldsMask |= _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174.IsFlailingMask; - } - if (bitStream.ReadMask()) - { - - val.IsCarrying = bitStream.ReadBool(); - val.FieldsMask |= _a857fd6c221f7f04fa9ed500e317642a_4667129514690375174.IsCarryingMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_a857fd6c221f7f04fa9ed500e317642a_4667129514690375174(" + - $" IsFlailing: { this.IsFlailing }" + - $" IsCarrying: { this.IsCarrying }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967.isBusyMask; - isBusySimulationFrame = frame; - } - - public static uint isBusyMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBusySimulationFrame; - public System.Boolean isBusy; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 44; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBusySimulationFrame = other.isBusySimulationFrame; - this.isBusy = other.isBusy; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBusy; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967(); - if (bitStream.ReadMask()) - { - - val.isBusy = bitStream.ReadBool(); - val.FieldsMask |= _a857fd6c221f7f04fa9ed500e317642a_8551261703447512967.isBusyMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_a857fd6c221f7f04fa9ed500e317642a_8551261703447512967(" + - $" isBusy: { this.isBusy }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _b7bb309cd508641d3887ec91696ac623_1406947345458511524 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _b7bb309cd508641d3887ec91696ac623_1406947345458511524.energyMask; - energySimulationFrame = frame; - } - - public static uint energyMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame energySimulationFrame; - public System.Int32 energy; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 45; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _energy_Min = -2147483648; - private static readonly System.Int32 _energy_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_b7bb309cd508641d3887ec91696ac623_1406947345458511524)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.energySimulationFrame = other.energySimulationFrame; - this.energy = other.energy; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_b7bb309cd508641d3887ec91696ac623_1406947345458511524 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.energy, _energy_Min, _energy_Max, "_b7bb309cd508641d3887ec91696ac623_1406947345458511524.energy", logger); - - data.energy = Coherence.Utils.Bounds.Clamp(data.energy, _energy_Min, _energy_Max); - - var fieldValue = data.energy; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _b7bb309cd508641d3887ec91696ac623_1406947345458511524 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _b7bb309cd508641d3887ec91696ac623_1406947345458511524(); - if (bitStream.ReadMask()) - { - - val.energy = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _b7bb309cd508641d3887ec91696ac623_1406947345458511524.energyMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_b7bb309cd508641d3887ec91696ac623_1406947345458511524(" + - $" energy: { this.energy }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932.objectAnchorSyncMask; - objectAnchorSyncSimulationFrame = frame; - } - - public static uint objectAnchorSyncMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame objectAnchorSyncSimulationFrame; - public Entity objectAnchorSync; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 46; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.objectAnchorSync, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.objectAnchorSync == fromEntity) - { - this.objectAnchorSync = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.objectAnchorSync, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_objectAnchorSync = true; - err = mapper.MapToRelativeEntity(this.objectAnchorSync, createParentMapping_objectAnchorSync, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.objectAnchorSyncSimulationFrame = other.objectAnchorSyncSimulationFrame; - this.objectAnchorSync = other.objectAnchorSync; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.objectAnchorSync; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932(); - if (bitStream.ReadMask()) - { - - val.objectAnchorSync = bitStream.ReadEntity(); - val.FieldsMask |= _c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932.objectAnchorSyncMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_c76bd173fbfcfba44982ec0a19f9c897_4384992023136877932(" + - $" objectAnchorSync: { this.objectAnchorSync }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 47; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_c76bd173fbfcfba44982ec0a19f9c897_7577043058907851794(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 48; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_c76bd173fbfcfba44982ec0a19f9c897_7947429143224902437(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.MoveSpeedMask; - MoveSpeedSimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.GroundedMask; - GroundedSimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.CarryingBigMask; - CarryingBigSimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.IsChoppingMask; - IsChoppingSimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.IsSittingMask; - IsSittingSimulationFrame = frame; - } - - public static uint MoveSpeedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame MoveSpeedSimulationFrame; - public System.Single MoveSpeed; - public static uint GroundedMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame GroundedSimulationFrame; - public System.Boolean Grounded; - public static uint CarryingBigMask => 0b00000000000000000000000000000100; - public AbsoluteSimulationFrame CarryingBigSimulationFrame; - public System.Boolean CarryingBig; - public static uint IsChoppingMask => 0b00000000000000000000000000001000; - public AbsoluteSimulationFrame IsChoppingSimulationFrame; - public System.Boolean IsChopping; - public static uint IsSittingMask => 0b00000000000000000000000000010000; - public AbsoluteSimulationFrame IsSittingSimulationFrame; - public System.Boolean IsSitting; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 49; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000011111; - public bool HasFields() => true; - public bool HasRefFields() => false; - - private long[] simulationFrames; - - public long[] GetSimulationFrames() { - if (simulationFrames == null) - { - simulationFrames = new long[1]; - } - - simulationFrames[0] = MoveSpeedSimulationFrame; - - return simulationFrames; - } - - public int GetFieldCount() => 5; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - if ((FieldsMask & _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.MoveSpeedMask) != 0 && (min == null || this.MoveSpeedSimulationFrame < min)) - { - min = this.MoveSpeedSimulationFrame; - } - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.MoveSpeedSimulationFrame = other.MoveSpeedSimulationFrame; - this.MoveSpeed = other.MoveSpeed; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.GroundedSimulationFrame = other.GroundedSimulationFrame; - this.Grounded = other.Grounded; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.CarryingBigSimulationFrame = other.CarryingBigSimulationFrame; - this.CarryingBig = other.CarryingBig; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.IsChoppingSimulationFrame = other.IsChoppingSimulationFrame; - this.IsChopping = other.IsChopping; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.IsSittingSimulationFrame = other.IsSittingSimulationFrame; - this.IsSitting = other.IsSitting; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 5); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - if (isRefSimFrameValid) { - var simFrameDelta = data.MoveSpeedSimulationFrame - referenceSimulationFrame; - if (simFrameDelta > byte.MaxValue) { - simFrameDelta = byte.MaxValue; - } - - SerializeTools.WriteFieldSimFrameDelta(bitStream, (byte)simFrameDelta); - } else { - SerializeTools.WriteFieldSimFrameDelta(bitStream, 0); - } - - - var fieldValue = data.MoveSpeed; - - - - bitStream.WriteFloat(fieldValue, FloatMeta.NoCompression()); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.Grounded; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.CarryingBig; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.IsChopping; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.IsSitting; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(5); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322(); - if (bitStream.ReadMask()) - { - val.MoveSpeedSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.MoveSpeed = bitStream.ReadFloat(FloatMeta.NoCompression()); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.MoveSpeedMask; - } - if (bitStream.ReadMask()) - { - - val.Grounded = bitStream.ReadBool(); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.GroundedMask; - } - if (bitStream.ReadMask()) - { - - val.CarryingBig = bitStream.ReadBool(); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.CarryingBigMask; - } - if (bitStream.ReadMask()) - { - - val.IsChopping = bitStream.ReadBool(); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.IsChoppingMask; - } - if (bitStream.ReadMask()) - { - - val.IsSitting = bitStream.ReadBool(); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322.IsSittingMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322 DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_176131441763086322_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(5); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_176131441763086322(); - if (bitStream.ReadMask()) - { - val.MoveSpeedSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.MoveSpeed = bitStream.ReadFloat(FloatMeta.NoCompression()); - val.FieldsMask |= MoveSpeedMask; - } - if (bitStream.ReadMask()) - { - - val.Grounded = bitStream.ReadBool(); - val.FieldsMask |= GroundedMask; - } - if (bitStream.ReadMask()) - { - - val.CarryingBig = bitStream.ReadBool(); - val.FieldsMask |= CarryingBigMask; - } - if (bitStream.ReadMask()) - { - - val.IsChopping = bitStream.ReadBool(); - val.FieldsMask |= IsChoppingMask; - } - if (bitStream.ReadMask()) - { - - val.IsSitting = bitStream.ReadBool(); - val.FieldsMask |= IsSittingMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"_cd9bcc1feead9419fac0c5981ce85c23_176131441763086322(" + - $" MoveSpeed: { this.MoveSpeed }" + - $", MoveSpeedSimFrame: { this.MoveSpeedSimulationFrame }" + - $" Grounded: { this.Grounded }" + - $" CarryingBig: { this.CarryingBig }" + - $" IsChopping: { this.IsChopping }" + - $" IsSitting: { this.IsSitting }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(5, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(5, '0') })"; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181.textMask; - textSimulationFrame = frame; - } - - public static uint textMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame textSimulationFrame; - public System.String text; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 50; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.textSimulationFrame = other.textSimulationFrame; - this.text = other.text; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.text; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181(); - if (bitStream.ReadMask()) - { - - val.text = bitStream.ReadString(); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181.textMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181 DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181(); - if (bitStream.ReadMask()) - { - - val.text = bitStream.ReadString(); - val.FieldsMask |= textMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"_cd9bcc1feead9419fac0c5981ce85c23_3184128103638100181(" + - $" text: { this.text }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 51; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216 DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"_cd9bcc1feead9419fac0c5981ce85c23_4874302885197676216(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.positionMask; - positionSimulationFrame = frame; - } - - public static uint positionMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame positionSimulationFrame; - public Vector3 position; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 52; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - private long[] simulationFrames; - - public long[] GetSimulationFrames() { - if (simulationFrames == null) - { - simulationFrames = new long[1]; - } - - simulationFrames[0] = positionSimulationFrame; - - return simulationFrames; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly float _position_Min = -100f; - private static readonly float _position_Max = 600f; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - if ((FieldsMask & _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.positionMask) != 0 && (min == null || this.positionSimulationFrame < min)) - { - min = this.positionSimulationFrame; - } - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.positionSimulationFrame = other.positionSimulationFrame; - this.position = other.position; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - if (isRefSimFrameValid) { - var simFrameDelta = data.positionSimulationFrame - referenceSimulationFrame; - if (simFrameDelta > byte.MaxValue) { - simFrameDelta = byte.MaxValue; - } - - SerializeTools.WriteFieldSimFrameDelta(bitStream, (byte)simFrameDelta); - } else { - SerializeTools.WriteFieldSimFrameDelta(bitStream, 0); - } - - Coherence.Utils.Bounds.Check(data.position.x, _position_Min, _position_Max, "_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.position.x", logger); - Coherence.Utils.Bounds.Check(data.position.y, _position_Min, _position_Max, "_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.position.y", logger); - Coherence.Utils.Bounds.Check(data.position.z, _position_Min, _position_Max, "_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.position.z", logger); - - - var fieldValue = (data.position.ToCoreVector3()); - - - - bitStream.WriteVector3(fieldValue, FloatMeta.ForFixedPoint(-100, 600, 0.01d)); - } - - mask >>= 1; - - return mask; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408(); - if (bitStream.ReadMask()) - { - val.positionSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.position = bitStream.ReadVector3(FloatMeta.ForFixedPoint(-100, 600, 0.01d)).ToUnityVector3(); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408.positionMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408 DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408(); - if (bitStream.ReadMask()) - { - val.positionSimulationFrame = referenceSimulationFrame + DeserializerTools.ReadFieldSimFrameDelta(bitStream); - - val.position = bitStream.ReadVector3(FloatMeta.ForFixedPoint(-100, 600, 0.01d)).ToUnityVector3(); - val.FieldsMask |= positionMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"_cd9bcc1feead9419fac0c5981ce85c23_4998465150839130408(" + - $" position: { this.position }" + - $", positionSimFrame: { this.positionSimulationFrame }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentBackpackMask; - currentBackpackSimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentSkinToneMask; - currentSkinToneSimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentClothesMask; - currentClothesSimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentBodyMask; - currentBodySimulationFrame = frame; - FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentHairstyleMask; - currentHairstyleSimulationFrame = frame; - } - - public static uint currentBackpackMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame currentBackpackSimulationFrame; - public System.Int32 currentBackpack; - public static uint currentSkinToneMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame currentSkinToneSimulationFrame; - public System.Int32 currentSkinTone; - public static uint currentClothesMask => 0b00000000000000000000000000000100; - public AbsoluteSimulationFrame currentClothesSimulationFrame; - public System.Int32 currentClothes; - public static uint currentBodyMask => 0b00000000000000000000000000001000; - public AbsoluteSimulationFrame currentBodySimulationFrame; - public System.Int32 currentBody; - public static uint currentHairstyleMask => 0b00000000000000000000000000010000; - public AbsoluteSimulationFrame currentHairstyleSimulationFrame; - public System.Int32 currentHairstyle; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 53; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000011111; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 5; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _currentBackpack_Min = -2; - private static readonly System.Int32 _currentBackpack_Max = 3; - private static readonly System.Int32 _currentSkinTone_Min = -2; - private static readonly System.Int32 _currentSkinTone_Max = 20; - private static readonly System.Int32 _currentClothes_Min = -2147483648; - private static readonly System.Int32 _currentClothes_Max = 2147483647; - private static readonly System.Int32 _currentBody_Min = -2147483648; - private static readonly System.Int32 _currentBody_Max = 2147483647; - private static readonly System.Int32 _currentHairstyle_Min = -2147483648; - private static readonly System.Int32 _currentHairstyle_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.currentBackpackSimulationFrame = other.currentBackpackSimulationFrame; - this.currentBackpack = other.currentBackpack; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.currentSkinToneSimulationFrame = other.currentSkinToneSimulationFrame; - this.currentSkinTone = other.currentSkinTone; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.currentClothesSimulationFrame = other.currentClothesSimulationFrame; - this.currentClothes = other.currentClothes; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.currentBodySimulationFrame = other.currentBodySimulationFrame; - this.currentBody = other.currentBody; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.currentHairstyleSimulationFrame = other.currentHairstyleSimulationFrame; - this.currentHairstyle = other.currentHairstyle; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 5); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.currentBackpack, _currentBackpack_Min, _currentBackpack_Max, "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentBackpack", logger); - - data.currentBackpack = Coherence.Utils.Bounds.Clamp(data.currentBackpack, _currentBackpack_Min, _currentBackpack_Max); - - var fieldValue = data.currentBackpack; - - - - bitStream.WriteIntegerRange(fieldValue, 3, -2); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.currentSkinTone, _currentSkinTone_Min, _currentSkinTone_Max, "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentSkinTone", logger); - - data.currentSkinTone = Coherence.Utils.Bounds.Clamp(data.currentSkinTone, _currentSkinTone_Min, _currentSkinTone_Max); - - var fieldValue = data.currentSkinTone; - - - - bitStream.WriteIntegerRange(fieldValue, 5, -2); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.currentClothes, _currentClothes_Min, _currentClothes_Max, "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentClothes", logger); - - data.currentClothes = Coherence.Utils.Bounds.Clamp(data.currentClothes, _currentClothes_Min, _currentClothes_Max); - - var fieldValue = data.currentClothes; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.currentBody, _currentBody_Min, _currentBody_Max, "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentBody", logger); - - data.currentBody = Coherence.Utils.Bounds.Clamp(data.currentBody, _currentBody_Min, _currentBody_Max); - - var fieldValue = data.currentBody; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.currentHairstyle, _currentHairstyle_Min, _currentHairstyle_Max, "_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentHairstyle", logger); - - data.currentHairstyle = Coherence.Utils.Bounds.Clamp(data.currentHairstyle, _currentHairstyle_Min, _currentHairstyle_Max); - - var fieldValue = data.currentHairstyle; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(5); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618(); - if (bitStream.ReadMask()) - { - - val.currentBackpack = bitStream.ReadIntegerRange(3, -2); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentBackpackMask; - } - if (bitStream.ReadMask()) - { - - val.currentSkinTone = bitStream.ReadIntegerRange(5, -2); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentSkinToneMask; - } - if (bitStream.ReadMask()) - { - - val.currentClothes = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentClothesMask; - } - if (bitStream.ReadMask()) - { - - val.currentBody = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentBodyMask; - } - if (bitStream.ReadMask()) - { - - val.currentHairstyle = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618.currentHairstyleMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public static _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618 DeserializeArchetype_cd9bcc1feead9419fac0c5981ce85c23__cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618_LOD0(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(5); - } - - var val = new _cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618(); - if (bitStream.ReadMask()) - { - - val.currentBackpack = bitStream.ReadIntegerRange(3, -2); - val.FieldsMask |= currentBackpackMask; - } - if (bitStream.ReadMask()) - { - - val.currentSkinTone = bitStream.ReadIntegerRange(5, -2); - val.FieldsMask |= currentSkinToneMask; - } - if (bitStream.ReadMask()) - { - - val.currentClothes = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= currentClothesMask; - } - if (bitStream.ReadMask()) - { - - val.currentBody = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= currentBodyMask; - } - if (bitStream.ReadMask()) - { - - val.currentHairstyle = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= currentHairstyleMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - public override string ToString() - { - return $"_cd9bcc1feead9419fac0c5981ce85c23_8520998716179763618(" + - $" currentBackpack: { this.currentBackpack }" + - $" currentSkinTone: { this.currentSkinTone }" + - $" currentClothes: { this.currentClothes }" + - $" currentBody: { this.currentBody }" + - $" currentHairstyle: { this.currentHairstyle }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(5, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(5, '0') })"; - } - } - public struct _e74854605b68b435280bc0ac73fef6c1_6806255523165594879 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _e74854605b68b435280bc0ac73fef6c1_6806255523165594879.objectAnchorSyncMask; - objectAnchorSyncSimulationFrame = frame; - } - - public static uint objectAnchorSyncMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame objectAnchorSyncSimulationFrame; - public Entity objectAnchorSync; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 54; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.objectAnchorSync, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.objectAnchorSync == fromEntity) - { - this.objectAnchorSync = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.objectAnchorSync, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_objectAnchorSync = true; - err = mapper.MapToRelativeEntity(this.objectAnchorSync, createParentMapping_objectAnchorSync, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_e74854605b68b435280bc0ac73fef6c1_6806255523165594879)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.objectAnchorSyncSimulationFrame = other.objectAnchorSyncSimulationFrame; - this.objectAnchorSync = other.objectAnchorSync; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_e74854605b68b435280bc0ac73fef6c1_6806255523165594879 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.objectAnchorSync; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _e74854605b68b435280bc0ac73fef6c1_6806255523165594879 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _e74854605b68b435280bc0ac73fef6c1_6806255523165594879(); - if (bitStream.ReadMask()) - { - - val.objectAnchorSync = bitStream.ReadEntity(); - val.FieldsMask |= _e74854605b68b435280bc0ac73fef6c1_6806255523165594879.objectAnchorSyncMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_e74854605b68b435280bc0ac73fef6c1_6806255523165594879(" + - $" objectAnchorSync: { this.objectAnchorSync }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _e74854605b68b435280bc0ac73fef6c1_831233887725647233 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _e74854605b68b435280bc0ac73fef6c1_831233887725647233.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 55; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_e74854605b68b435280bc0ac73fef6c1_831233887725647233)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_e74854605b68b435280bc0ac73fef6c1_831233887725647233 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _e74854605b68b435280bc0ac73fef6c1_831233887725647233 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _e74854605b68b435280bc0ac73fef6c1_831233887725647233(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _e74854605b68b435280bc0ac73fef6c1_831233887725647233.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_e74854605b68b435280bc0ac73fef6c1_831233887725647233(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _e74854605b68b435280bc0ac73fef6c1_929081723536030390 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _e74854605b68b435280bc0ac73fef6c1_929081723536030390.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _e74854605b68b435280bc0ac73fef6c1_929081723536030390.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 56; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_e74854605b68b435280bc0ac73fef6c1_929081723536030390)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_e74854605b68b435280bc0ac73fef6c1_929081723536030390 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_e74854605b68b435280bc0ac73fef6c1_929081723536030390.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _e74854605b68b435280bc0ac73fef6c1_929081723536030390 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _e74854605b68b435280bc0ac73fef6c1_929081723536030390(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _e74854605b68b435280bc0ac73fef6c1_929081723536030390.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _e74854605b68b435280bc0ac73fef6c1_929081723536030390.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_e74854605b68b435280bc0ac73fef6c1_929081723536030390(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _ec47cd7906b7749f4853524abf78e799_432812263773753349 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _ec47cd7906b7749f4853524abf78e799_432812263773753349.holdingForUUIDMask; - holdingForUUIDSimulationFrame = frame; - FieldsMask |= _ec47cd7906b7749f4853524abf78e799_432812263773753349.isObjectPresentMask; - isObjectPresentSimulationFrame = frame; - FieldsMask |= _ec47cd7906b7749f4853524abf78e799_432812263773753349.syncConfigIdMask; - syncConfigIdSimulationFrame = frame; - } - - public static uint holdingForUUIDMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame holdingForUUIDSimulationFrame; - public System.String holdingForUUID; - public static uint isObjectPresentMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame isObjectPresentSimulationFrame; - public System.Boolean isObjectPresent; - public static uint syncConfigIdMask => 0b00000000000000000000000000000100; - public AbsoluteSimulationFrame syncConfigIdSimulationFrame; - public System.String syncConfigId; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 57; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000111; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 3; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_ec47cd7906b7749f4853524abf78e799_432812263773753349)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.holdingForUUIDSimulationFrame = other.holdingForUUIDSimulationFrame; - this.holdingForUUID = other.holdingForUUID; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.isObjectPresentSimulationFrame = other.isObjectPresentSimulationFrame; - this.isObjectPresent = other.isObjectPresent; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.syncConfigIdSimulationFrame = other.syncConfigIdSimulationFrame; - this.syncConfigId = other.syncConfigId; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_ec47cd7906b7749f4853524abf78e799_432812263773753349 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 3); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.holdingForUUID; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isObjectPresent; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.syncConfigId; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _ec47cd7906b7749f4853524abf78e799_432812263773753349 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(3); - } - - var val = new _ec47cd7906b7749f4853524abf78e799_432812263773753349(); - if (bitStream.ReadMask()) - { - - val.holdingForUUID = bitStream.ReadString(); - val.FieldsMask |= _ec47cd7906b7749f4853524abf78e799_432812263773753349.holdingForUUIDMask; - } - if (bitStream.ReadMask()) - { - - val.isObjectPresent = bitStream.ReadBool(); - val.FieldsMask |= _ec47cd7906b7749f4853524abf78e799_432812263773753349.isObjectPresentMask; - } - if (bitStream.ReadMask()) - { - - val.syncConfigId = bitStream.ReadString(); - val.FieldsMask |= _ec47cd7906b7749f4853524abf78e799_432812263773753349.syncConfigIdMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_ec47cd7906b7749f4853524abf78e799_432812263773753349(" + - $" holdingForUUID: { this.holdingForUUID }" + - $" isObjectPresent: { this.isObjectPresent }" + - $" syncConfigId: { this.syncConfigId }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(3, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(3, '0') })"; - } - } - public struct _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761.pathMask; - pathSimulationFrame = frame; - FieldsMask |= _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761.pathDirtyCounterMask; - pathDirtyCounterSimulationFrame = frame; - } - - public static uint pathMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame pathSimulationFrame; - public System.String path; - public static uint pathDirtyCounterMask => 0b00000000000000000000000000000010; - public AbsoluteSimulationFrame pathDirtyCounterSimulationFrame; - public System.Int32 pathDirtyCounter; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 58; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000011; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 2; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - private static readonly System.Int32 _pathDirtyCounter_Min = -2147483648; - private static readonly System.Int32 _pathDirtyCounter_Max = 2147483647; - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.pathSimulationFrame = other.pathSimulationFrame; - this.path = other.path; - } - - otherMask >>= 1; - if ((otherMask & 0x01) != 0) - { - this.pathDirtyCounterSimulationFrame = other.pathDirtyCounterSimulationFrame; - this.pathDirtyCounter = other.pathDirtyCounter; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 2); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.path; - - - - bitStream.WriteString(fieldValue); - } - - mask >>= 1; - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - Coherence.Utils.Bounds.Check(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max, "_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761.pathDirtyCounter", logger); - - data.pathDirtyCounter = Coherence.Utils.Bounds.Clamp(data.pathDirtyCounter, _pathDirtyCounter_Min, _pathDirtyCounter_Max); - - var fieldValue = data.pathDirtyCounter; - - - - bitStream.WriteIntegerRange(fieldValue, 32, -2147483648); - } - - mask >>= 1; - - return mask; - } - - public static _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(2); - } - - var val = new _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761(); - if (bitStream.ReadMask()) - { - - val.path = bitStream.ReadString(); - val.FieldsMask |= _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761.pathMask; - } - if (bitStream.ReadMask()) - { - - val.pathDirtyCounter = bitStream.ReadIntegerRange(32, -2147483648); - val.FieldsMask |= _f446f3c484ae048c4ba11ef7b8642420_4071990166734286761.pathDirtyCounterMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_f446f3c484ae048c4ba11ef7b8642420_4071990166734286761(" + - $" path: { this.path }" + - $" pathDirtyCounter: { this.pathDirtyCounter }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(2, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(2, '0') })"; - } - } - public struct _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198.isBeingCarriedMask; - isBeingCarriedSimulationFrame = frame; - } - - public static uint isBeingCarriedMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame isBeingCarriedSimulationFrame; - public System.Boolean isBeingCarried; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 59; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => false; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return default; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - return 0; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.isBeingCarriedSimulationFrame = other.isBeingCarriedSimulationFrame; - this.isBeingCarried = other.isBeingCarried; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.isBeingCarried; - - - - bitStream.WriteBool(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198(); - if (bitStream.ReadMask()) - { - - val.isBeingCarried = bitStream.ReadBool(); - val.FieldsMask |= _f446f3c484ae048c4ba11ef7b8642420_4607038716989399198.isBeingCarriedMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_f446f3c484ae048c4ba11ef7b8642420_4607038716989399198(" + - $" isBeingCarried: { this.isBeingCarried }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - public struct _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224 : ICoherenceComponentData - { - public void ResetFrame(AbsoluteSimulationFrame frame) - { - FieldsMask |= _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224.objectAnchorSyncMask; - objectAnchorSyncSimulationFrame = frame; - } - - public static uint objectAnchorSyncMask => 0b00000000000000000000000000000001; - public AbsoluteSimulationFrame objectAnchorSyncSimulationFrame; - public Entity objectAnchorSync; - - public uint FieldsMask { get; set; } - public uint StoppedMask { get; set; } - public uint GetComponentType() => 60; - public int PriorityLevel() => 100; - public const int order = 0; - public uint InitialFieldsMask() => 0b00000000000000000000000000000001; - public bool HasFields() => true; - public bool HasRefFields() => true; - - - public long[] GetSimulationFrames() { - return null; - } - - public int GetFieldCount() => 1; - - - - public HashSet GetEntityRefs() - { - return new HashSet() - { - this.objectAnchorSync, - }; - } - - public uint ReplaceReferences(Entity fromEntity, Entity toEntity) - { - uint refsMask = 0; - - if (this.objectAnchorSync == fromEntity) - { - this.objectAnchorSync = toEntity; - refsMask |= 1u << 0; - } - - FieldsMask |= refsMask; - - return refsMask; - } - - public IEntityMapper.Error MapToAbsolute(IEntityMapper mapper) - { - Entity absoluteEntity; - IEntityMapper.Error err; - err = mapper.MapToAbsoluteEntity(this.objectAnchorSync, false, out absoluteEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = absoluteEntity; - return IEntityMapper.Error.None; - } - - public IEntityMapper.Error MapToRelative(IEntityMapper mapper) - { - Entity relativeEntity; - IEntityMapper.Error err; - // We assume that the inConnection held changes with unresolved references, so the 'createMapping=true' is - // there only because there's a chance that the parent creation change will be processed after this one - // meaning there's no mapping for the parent yet. This wouldn't be necessary if mapping creation would happen - // in the clientWorld via create/destroy requests while here we would only check whether mapping exists or not. - var createParentMapping_objectAnchorSync = true; - err = mapper.MapToRelativeEntity(this.objectAnchorSync, createParentMapping_objectAnchorSync, - out relativeEntity); - - if (err != IEntityMapper.Error.None) - { - return err; - } - - this.objectAnchorSync = relativeEntity; - return IEntityMapper.Error.None; - } - - public ICoherenceComponentData Clone() => this; - public int GetComponentOrder() => order; - public bool IsSendOrdered() => false; - public bool IsWorldPositionComponent() => false; - - - public AbsoluteSimulationFrame? GetMinSimulationFrame() - { - AbsoluteSimulationFrame? min = null; - - - return min; - } - - public ICoherenceComponentData MergeWith(ICoherenceComponentData data) - { - var other = (_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224)data; - var otherMask = other.FieldsMask; - - FieldsMask |= otherMask; - StoppedMask &= ~(otherMask); - - if ((otherMask & 0x01) != 0) - { - this.objectAnchorSyncSimulationFrame = other.objectAnchorSyncSimulationFrame; - this.objectAnchorSync = other.objectAnchorSync; - } - - otherMask >>= 1; - StoppedMask |= other.StoppedMask; - - return this; - } - - public uint DiffWith(ICoherenceComponentData data) - { - throw new System.NotSupportedException($"{nameof(DiffWith)} is not supported in Unity"); - } - - public static uint Serialize(_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224 data, bool isRefSimFrameValid, AbsoluteSimulationFrame referenceSimulationFrame, IOutProtocolBitStream bitStream, Logger logger) - { - if (bitStream.WriteMask(data.StoppedMask != 0)) - { - bitStream.WriteMaskBits(data.StoppedMask, 1); - } - - var mask = data.FieldsMask; - - if (bitStream.WriteMask((mask & 0x01) != 0)) - { - - - var fieldValue = data.objectAnchorSync; - - - - bitStream.WriteEntity(fieldValue); - } - - mask >>= 1; - - return mask; - } - - public static _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224 Deserialize(AbsoluteSimulationFrame referenceSimulationFrame, InProtocolBitStream bitStream) - { - var stoppedMask = (uint)0; - if (bitStream.ReadMask()) - { - stoppedMask = bitStream.ReadMaskBits(1); - } - - var val = new _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224(); - if (bitStream.ReadMask()) - { - - val.objectAnchorSync = bitStream.ReadEntity(); - val.FieldsMask |= _f446f3c484ae048c4ba11ef7b8642420_7643438469673120224.objectAnchorSyncMask; - } - - val.StoppedMask = stoppedMask; - - return val; - } - - - public override string ToString() - { - return $"_f446f3c484ae048c4ba11ef7b8642420_7643438469673120224(" + - $" objectAnchorSync: { this.objectAnchorSync }" + - $" Mask: { System.Convert.ToString(FieldsMask, 2).PadLeft(1, '0') }, " + - $"Stopped: { System.Convert.ToString(StoppedMask, 2).PadLeft(1, '0') })"; - } - } - -} diff --git a/Assets/coherence/baked/Interop/baked_components.cs.meta b/Assets/coherence/baked/Interop/baked_components.cs.meta deleted file mode 100644 index 14bebc7..0000000 --- a/Assets/coherence/baked/Interop/baked_components.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b2dceb2282f8f4c7d987e237882ae907 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/StreamingAssets.meta b/Assets/coherence/baked_stubs.meta similarity index 77% rename from Assets/StreamingAssets.meta rename to Assets/coherence/baked_stubs.meta index ad1758a..8a998f1 100644 --- a/Assets/StreamingAssets.meta +++ b/Assets/coherence/baked_stubs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 906a73513dcb54944a46a0beb30cb932 +guid: de0268b79f0d04a7b8d7026979eeb0a2 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/coherence/baked_stubs/CommandsFor_Campfire_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_Campfire_Stub.cs new file mode 100644 index 0000000..e1db9b7 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_Campfire_Stub.cs @@ -0,0 +1,33 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_Campfire_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool BurnObject(this Campfire self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayInstantEffects(this Campfire self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool FireDiedDown(this Campfire self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool FireStateChanged(this Campfire self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_Campfire_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_Campfire_Stub.cs.meta new file mode 100644 index 0000000..723905e --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_Campfire_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 129fa87332e0b4bf0a248cc04e04fa86 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_Chair_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_Chair_Stub.cs new file mode 100644 index 0000000..fbb2e07 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_Chair_Stub.cs @@ -0,0 +1,21 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_Chair_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool ChangeState(this Chair self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_Chair_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_Chair_Stub.cs.meta new file mode 100644 index 0000000..879a68e --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_Chair_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dff740dc17e694b0b9c50fb34c227563 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_Chat_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_Chat_Stub.cs new file mode 100644 index 0000000..68f5b37 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_Chat_Stub.cs @@ -0,0 +1,21 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_Chat_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool SendChatMessage(this Chat self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_Chat_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_Chat_Stub.cs.meta new file mode 100644 index 0000000..64f3c49 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_Chat_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6c477505ab5184ac1ab64936a0430d40 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_ChopAction_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_ChopAction_Stub.cs new file mode 100644 index 0000000..a86e713 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_ChopAction_Stub.cs @@ -0,0 +1,21 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_ChopAction_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayChopSound(this ChopAction self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_ChopAction_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_ChopAction_Stub.cs.meta new file mode 100644 index 0000000..ba7b9ea --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_ChopAction_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a4656b8c0f5864c5ea68034ed34a9aea +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_ChoppableTree_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_ChoppableTree_Stub.cs new file mode 100644 index 0000000..5c38cf0 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_ChoppableTree_Stub.cs @@ -0,0 +1,29 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_ChoppableTree_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool Chop(this ChoppableTree self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayChopEffect(this ChoppableTree self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool ChangeState(this ChoppableTree self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_ChoppableTree_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_ChoppableTree_Stub.cs.meta new file mode 100644 index 0000000..8d7fdd0 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_ChoppableTree_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5060b37e149db4d87a7a75e737a6c426 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_Emotes_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_Emotes_Stub.cs new file mode 100644 index 0000000..e670e9e --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_Emotes_Stub.cs @@ -0,0 +1,29 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_Emotes_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayYesSound(this Emotes self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayNoSound(this Emotes self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayHeySound(this Emotes self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_Emotes_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_Emotes_Stub.cs.meta new file mode 100644 index 0000000..22296c8 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_Emotes_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6dc752354da7142a49f2502614f4dfc3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_GrabAction_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_GrabAction_Stub.cs new file mode 100644 index 0000000..84a3824 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_GrabAction_Stub.cs @@ -0,0 +1,25 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_GrabAction_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayPickUpSound(this GrabAction self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayDropSound(this GrabAction self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_GrabAction_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_GrabAction_Stub.cs.meta new file mode 100644 index 0000000..5a7d977 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_GrabAction_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 018701a0228864c9d92eb6bb079d3ea7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_KeeperRobot_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_KeeperRobot_Stub.cs new file mode 100644 index 0000000..fb2394a --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_KeeperRobot_Stub.cs @@ -0,0 +1,33 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_KeeperRobot_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayHumSound(this KeeperRobot self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayVoiceSound(this KeeperRobot self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayConjure(this KeeperRobot self, MessageTarget target, params object[] args) => false; +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayAppear(this KeeperRobot self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_KeeperRobot_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_KeeperRobot_Stub.cs.meta new file mode 100644 index 0000000..dfba7e8 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_KeeperRobot_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 47683490a3faf46fcafe7d6f2709148f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_ObjectAnchor_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_ObjectAnchor_Stub.cs new file mode 100644 index 0000000..54af2c4 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_ObjectAnchor_Stub.cs @@ -0,0 +1,21 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_ObjectAnchor_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool ChangeLinkedObjectStateAuth(this ObjectAnchor self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_ObjectAnchor_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_ObjectAnchor_Stub.cs.meta new file mode 100644 index 0000000..4db221a --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_ObjectAnchor_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6cfb66732685340c9b39df96e4d9da3d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_PositionedObject_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_PositionedObject_Stub.cs new file mode 100644 index 0000000..809582b --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_PositionedObject_Stub.cs @@ -0,0 +1,21 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_PositionedObject_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlayReappearShaderEffect(this PositionedObject self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_PositionedObject_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_PositionedObject_Stub.cs.meta new file mode 100644 index 0000000..4b9aba1 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_PositionedObject_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 43efa74347ad343ba8d2acdba6263dba +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_SitAction_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_SitAction_Stub.cs new file mode 100644 index 0000000..162cecf --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_SitAction_Stub.cs @@ -0,0 +1,21 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_SitAction_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool PlaySitSound(this SitAction self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_SitAction_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_SitAction_Stub.cs.meta new file mode 100644 index 0000000..c69ecc9 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_SitAction_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ec8212f5d9d0747a48a901a94fd97eb7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/baked_stubs/CommandsFor_UnityEngine_Animator_Stub.cs b/Assets/coherence/baked_stubs/CommandsFor_UnityEngine_Animator_Stub.cs new file mode 100644 index 0000000..356cd11 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_UnityEngine_Animator_Stub.cs @@ -0,0 +1,21 @@ +// Copyright (c) coherence ApS. +// For all coherence generated code, the coherence SDK license terms apply. See the license file in the coherence Package root folder for more information. + +// +// Generated file. DO NOT EDIT! +// + +using Coherence; +using Coherence.Toolkit; + +#if UNITY_EDITOR || COHERENCE_COMMAND_EXTENSIONS_STUBS_IN_BUILD +[UnityEngine.Scripting.Preserve] +public static class CommandsFor_UnityEngine_Animator_Stub +{ +#if !COHERENCE_COMMAND_EXTENSIONS_STUBS_DONT_OBSOLETE + [System.Obsolete("This is a generated stub. Bake and use a matching generated extension for your method.")] +#endif + public static bool SetTrigger(this UnityEngine.Animator self, MessageTarget target, params object[] args) => false; +} +#endif + diff --git a/Assets/coherence/baked_stubs/CommandsFor_UnityEngine_Animator_Stub.cs.meta b/Assets/coherence/baked_stubs/CommandsFor_UnityEngine_Animator_Stub.cs.meta new file mode 100644 index 0000000..fe69c39 --- /dev/null +++ b/Assets/coherence/baked_stubs/CommandsFor_UnityEngine_Animator_Stub.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2d0d9640f44c54bc691f3ef0d3a4cb54 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/coherence/slugs.json b/Assets/coherence/slugs.json deleted file mode 100644 index 0140229..0000000 --- a/Assets/coherence/slugs.json +++ /dev/null @@ -1 +0,0 @@ -{"cgqlbqlbo1hvlpolchog":"apr 23 1.6.1_2 v1","cke7octklouml7ml5lrg":"simulator-development","d1sh0s9qpo2572df6bv0":"simulator-release"} \ No newline at end of file diff --git a/Packages/manifest.json b/Packages/manifest.json index 444e2c9..c1be43e 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -18,7 +18,7 @@ "com.unity.timeline": "1.7.7", "com.unity.toolchain.macos-arm64-linux-x86_64": "1.0.1", "com.unity.ugui": "1.0.0", - "io.coherence.sdk": "2.1.0", + "io.coherence.sdk": "file:/Users/asya/Downloads/io.coherence.sdk-2.2.0-pre.3.tgz", "com.unity.modules.ai": "1.0.0", "com.unity.modules.androidjni": "1.0.0", "com.unity.modules.animation": "1.0.0", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index 04f5501..539012f 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -268,19 +268,18 @@ } }, "io.coherence.sdk": { - "version": "2.1.0", + "version": "file:/Users/asya/Downloads/io.coherence.sdk-2.2.0-pre.3.tgz", "depth": 0, - "source": "registry", + "source": "local-tarball", "dependencies": { + "com.unity.nuget.newtonsoft-json": "2.0.0", "com.unity.profiling.core": "1.0.2", - "com.unity.modules.physics": "1.0.0", "com.unity.modules.animation": "1.0.0", - "com.unity.modules.physics2d": "1.0.0", "com.unity.modules.jsonserialize": "1.0.0", - "com.unity.nuget.newtonsoft-json": "2.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.physics2d": "1.0.0", "com.unity.modules.unitywebrequest": "1.0.0" - }, - "url": "https://registry.npmjs.org" + } }, "com.unity.modules.ai": { "version": "1.0.0", diff --git a/ProjectSettings/CoherenceSettings.asset b/ProjectSettings/CoherenceSettings.asset index 9c0ffd8..4e367e0 100644 --- a/ProjectSettings/CoherenceSettings.asset +++ b/ProjectSettings/CoherenceSettings.asset @@ -16,477 +16,90 @@ MonoBehaviour: portalToken: localRoomsCleanupTimeSeconds: 120 localWorldHostAuthority: 0 - rsConsoleLogLevel: 2 - rsLogToFile: 0 - rsLogFilePath: Logs/rs_logs.txt - rsFileLogLevel: 1 + rsConsoleLogLevel: 0 + rsLogToFile: 1 + rsLogFilePath: 2.2.rs.logs.txt + rsFileLogLevel: 3 reportAnalytics: 0 RSBundlingEnabled: 1 keepConnectionAlive: 1 + useUnlockToken: 0 activeSchemas: [] organization: - id: c1ho23prn6r43hh5tc40 - name: coherence - slug: coherence + id: c1mnh99rn6r9re0fhp00 + name: AsyaTest2 + slug: asya-test-2 projects: - - id: ca2n0qidrumoo4rdrqpg - portal_token: 25ed13a7cfbd42959505328f7a807b27 - runtime_key: 408426e482d14fc498f5809e20dd110f - name: bossa-test - - id: c1qqlhprn6r13rhqchc0 - portal_token: 43d29b6fd6c24ce1beed3afff360b9b21 - runtime_key: 1c7ecf7f478242b99d1154cd25b6a54a - name: Brit Project - - id: cgqlbqlbo1hvlpolchog - portal_token: cb78d85b6a984fed88fa806e3b5c8fe3 - runtime_key: 3f2154ade8334278aac056f46461c185 - name: Campfire tutorial - - id: d5oj3f2tq2r3p24fuqvg - portal_token: 7b3ccfaa6a0c4e0f9ff1eedc74e3987e - runtime_key: 78f81e58948c4990a98609a6d24a330c - name: CotL_test - - id: c87eo3hvpaj215o05qog - portal_token: 93ab6eb3108f41e3a83fa9abfa5e3b13 - runtime_key: 5fd9768951104386aaa8361105b7bdfc - name: crosswords - - id: d3ru7hdbei2u2unqe950 - portal_token: 693115569522453ca74870c98a0c4a0b - runtime_key: 58daf314c2a24e6b988a87b45025c962 - name: cult-of-the-lamb-POC - - id: ciikv9e4h3r2dug11s60 - portal_token: 19837926ff504c578c11f8d13be5a45f - runtime_key: 0564872aa4454a6aacb52480ce5f2015 - name: deleteme - - id: c2ja2p171ic52mpm7dbg - portal_token: dc4703f0e5064f0eb6903504c420627a1 - runtime_key: 2729fc3b33e64692aef43e141cba4630 - name: DemoLive - - id: c63buvpvpaj6a0bo3lng - portal_token: 44c256f8680046a7a481cf658255e0ca - runtime_key: 753b0bf930354c3aa1726f0e812d725e - name: diego-test - - id: d0j3jcpqpo27lbbh89kg - portal_token: 56bf4a69e29948c7ad5f1e2ab6dc2e8b - runtime_key: 38080f545fab4955bc5c84855db17239 - name: Dissonance-Test - - id: c5ju61hvpaje03oc52og - portal_token: c3a15901d9814dafac895e06492e92af - runtime_key: 82f8ce391e8347bb877e2c5cdc4bf33e - name: DystopiaDebug - - id: c1rvbaprn6r0j4nph1dg - portal_token: ffae592146b64431b63cddd0e210dc421 - runtime_key: 4557203888364af1b3e505590e127f5c - name: Dystopia Demo - - id: cha95j5bo1hvoimddk10 - portal_token: 6848ee833e124ede8d4738c37b00e82f - runtime_key: f8a38d319e1f470caba36a62983d35a7 - name: eriks-self-hosting-testbed - - id: cnk5nni2t1ck6t1vopr0 - portal_token: 29565dd462a14fc39b339da50b339135 - runtime_key: 5121ef6fa15d4635af57be5d90038642 - name: filip-sandbox - - id: d2685spqpo2bmb8u9v10 - portal_token: 4afaa9059e00410b9debd44b1b8ef2be - runtime_key: 1d5f60e4241445bf8f552bf96f6e5ec4 - name: filip-sandbox-2 - - id: d629jcitq2r9gs3976ug - portal_token: 9aeb4c6a765540e4bd23d6e00299eaa7 - runtime_key: e22ad73f90174c5dbcb92a348026b866 - name: filip-sandbox-3 - - id: c66nlm1vpaj4fd318qj0 - portal_token: fe2c7ede6e7d40f494d08660c3627b1e - runtime_key: 1ee63f3d3d444bd490160bee41de4018 - name: blog-alex-11-21 - - id: cetumgdbo1hk1jjq3j00 - portal_token: db81058c01214f659ec3eef2b05549d5 - runtime_key: f2618e8d1484459db317d1c207413c5b - name: First Steps tutorial - - id: cfd5qvlbo1hlnu2ck7g0 - portal_token: 80f7e7d9b74f4d57a5d53d143c8c4e68 - runtime_key: 40e155ef8f654621a3b0df1c4c58e275 - name: fran-demo - - id: c2uugfhvpaja30j5b7ig - portal_token: c0aff0dfe93f4b868331062c70e04f5c1 - runtime_key: 3143a4d0e5fc402fac47d407e2de27ba - name: fran-sandbox - - id: cf9qb6tbo1hkudglmj6g - portal_token: be0cebc74b6c4163b06e93be74f073ed - runtime_key: ba8bd4968b294268b952a04310083413 - name: fran-test-2 - - id: cie35864h3rcrsmvge2g - portal_token: 11aea052099d4c988e1dd6280893dee1 - runtime_key: ea1e3190894e42a29c0924f4a8c48bb3 - name: fran-test-3 - - id: cf9btkdbo1hkudgle3g0 - portal_token: 82f765268a9f49cc873f649839fec149 - runtime_key: b53633d68ea64cfd8de4b966cc5bf723 - name: fran-test - - id: c23808prn6r7buj9tva0 - portal_token: e31aba6a5aca47c38179fb6866af6e011 - runtime_key: 22c07de87a8241838c9e7933e4ece5d1 - name: gamejam-alex-coop - - id: c3dj6spvpaj1518hidtg - portal_token: 13a8d2b4a75f4d5488313664977b96ec - runtime_key: b1daa513a8f04fd496cabbd1b8ec2bf2 - name: gamejam-astral-beats - - id: c25u7khrn6rc5f53kcfg - portal_token: ec105997200c4a3888bf88efef265aae1 - runtime_key: 9dabe45a8bd44fc09e2d85e5f854bb51 - name: gamejam-asya-poly - - id: c3deti1vpaj6da9kc42g - portal_token: 8f3a582e414c43df9c1409d60698e957 - runtime_key: aa293426c07f4a34a68402ff397a8bb0 - name: gamejam-builder - - id: c24sr5prn6rc5f53f410 - portal_token: 77eb72bcacd744ce91c77ef5c1c8f9991 - runtime_key: 8589f5eaebd84f4fb795f8b39d537752 - name: gamejam-cary-beaver - - id: c3dkcdpvpaj1518hj30g - portal_token: 11101bb2cb1a47d1afdb92f719860dcc - runtime_key: de7d22d0bd504eb1b2bef94bf28535b6 - name: gamejam-cary-connected - - id: chv1vne4h3r5m0r6abvg - portal_token: 81d419a4f83346368bfe854bcac64748 - runtime_key: 78623e83ff0b4670b5cf5614f5413ba8 - name: gamejam-cary-hockey - - id: c9sm27adrumj14jd4ing - portal_token: c4daa8fe93ff4076b9ee738e3b19de4a - runtime_key: df6001a019a742f89e1dfd62150c4a2e - name: gamejam-cary-jenga - - id: cbop7s3ri4d151dfu9cg - portal_token: bf6eb93e096d4d00bb11f6505c74f07f - runtime_key: 85d3a0aa01094f42baf51faf949b2a2e - name: gamejam-cary-place - - id: cdqjeagefgla8ptue13g - portal_token: a1866e8fc6e941229c159556e7a96deb - runtime_key: 09a9191068484f5db927ef8bb1159c67 - name: gamejam-cary-ragdoll - - id: c85bsh1vpajbck2s1as0 - portal_token: d8ce311d8a79438d86c836e2f2c06e35 - runtime_key: 58ee2045a4f74d2e9b99370f3180707e - name: gamejam-cary-shipcombat - - id: cs24f27088d66d59mt80 - portal_token: 1a4aacef93c24e2eb3939a74eca293e7 - runtime_key: ac52ef44acda4c0f81b2cd4a469c02a5 - name: gamejam-cary-skull - - id: chr2uqfssp0f76kq0d70 - portal_token: 5d5a15b5b21744b287c4d2e75a6b29a4 - runtime_key: 5c53175b571d423e953142d60f36281c - name: gamejam-cary-steam - - id: cpt0j922t1crm0dvjjpg - portal_token: 69095d7e6db24587a9d23ddad20c6b31 - runtime_key: 939ffddde99a4d32ae59650ed8fb39b6 - name: gamejam-cary-sulfer - - id: d0d5br1qpo24ejtla3k0 - portal_token: 12a25f37a6af43ef9d3871929bf560c2 - runtime_key: 8f9de595312d47c1afad1975e9931399 - name: gamejam-cary-troll - - id: d1lcaapqpo24hf4jbbsg - portal_token: 8c2fedfd0d234008b25b08ecc5e0dc10 - runtime_key: 66ec6418cb394b6da0efd098e3f234c2 - name: gamejam-cary-valet - - id: cpp3usa2t1cuc1aol2p0 - portal_token: 92d64b53b94d42cea6a60cf9872c68ae - runtime_key: 6654d212384540aea9680ec6054c649b - name: gamejam-cary-vroom - - id: cbpv3mrri4d4gvqru320 - portal_token: 55a9f9fb83e74ddfa292258c5b6db30b - runtime_key: f8a6d7df770947f382218b5d0f081151 - name: gamejam-cary-zones - - id: cl1vvl0glpul012q317g - portal_token: 3753d34d24ac40c2a361da2195768828 - runtime_key: 2727ce8aa8c9492ba5c2ca987a1b60af - name: gamejam-city - - id: cge0p2dbo1hk33mtq00g - portal_token: 46775181479d469baf4acc12ae24bb22 - runtime_key: 8051c2f18a8f49a094f496fe1b4f6600 - name: gamejam-desert - - id: cgc5j0dbo1hk33ms95n0 - portal_token: 6750a285d70c4f1f898342ef9cf9b2de - runtime_key: 3781198050e64f6ea41db4ddad505c92 - name: gamejam-dollhouse - - id: c3d1ff9vpaj1518h8mgg - portal_token: 5f3cc15eb5c348d884e29faed1727b95 - runtime_key: f5da4780b809459fbc50a573a94538e2 - name: gamejam-droids - - id: ckvpfhgglpuo2m1r7pig - portal_token: a9bd34a6c0424f86ab94dcc070cd874f - runtime_key: 5a7b3e2be328474bbf1d42434ea81d14 - name: gamejam-entity-commander - - id: cdpniggefgla8pttitq0 - portal_token: d0515d4a6b8547b39431b6cb174d42d0 - runtime_key: 939e09b04955431d98e06d58ff12aead - name: gamejam-farmball - - id: cdp5vhoefgl26598sk50 - portal_token: bf4427f905d14987a9e39eb4ebfa0677 - runtime_key: b748552c6c4f4e2db548aa1d4be0ccf8 - name: gamejam-farmee - - id: cpol77i2t1cgjn39aqb0 - portal_token: b24ec3dbc96341fa93524f1f3fe6514c - runtime_key: ac3188f204ae4422ae06b7de859d90d5 - name: gamejam-filip-mmorpg - - id: d3hpjcuff8gga7dsc2v0 - portal_token: add5972389b9414796351fcb57834bf6 - runtime_key: 70a126f10b0647d39bf88c413887b574 - name: gamejam-filip-playground - - id: chupmp64h3r13c3drsg0 - portal_token: 6d9d1199941d4e45b64af66464e25e87 - runtime_key: fef9657b446a497a992623b5cec5c4b5 - name: gamejam-filip-sandbox - - id: c3etdj9vpajat8h4r0hg - portal_token: 657b4d3d42ab48f6a90bdc598eca3ac4 - runtime_key: 1a4fd9477da8497aa492391587be6632 - name: gamejam-fran-cauldron - - id: c5dca21vpaj5383np0a0 - portal_token: 335bf295338d4842af6dcdba6bb7d5c4 - runtime_key: c457eaaa8d8f4128905663432c221c8a - name: gamejam-gardance - - id: c345ru9vpaj8eh43vf20 - portal_token: 7ce1e733a1874ff1a89e86b783e0ab5a - runtime_key: 0f86e3e5d6ee43afb814c817f6a6c58e - name: gamejam-invaders - - id: c25sle9rn6rc5f53k0n0 - portal_token: 615599f105cb4057bd0974f048ef3b321 - runtime_key: d176ea9ba04f4b16ae8885daba784e2a - name: gamejam-josh - - id: c9v460adrumvg2koqsm0 - portal_token: 83cef27c72af4b08b222edb5be50dd04 - runtime_key: 45844f8fd6d048b99518edae5ec368f6 - name: gamejam-katamari - - id: c5eqvc9vpaj01ogv8uq0 - portal_token: 0c9674859ec544a38163b4d399226232 - runtime_key: f74beaa407de49c49fe9556e348617f1 - name: gamejam-lost-animals - - id: c6bo4chvpajah6djg380 - portal_token: d692bfe914054edfac5c50a58557ab97 - runtime_key: 8439287f56684d0bad38c998058381cc - name: gamejam-mage-arena - - id: c9ujl9qdrumgsrfei8fg - portal_token: 725827f83a964af9af700023f7acabbc - runtime_key: 147042a876104329bd1fb9be0713f40d - name: gamejam-pachinko - - id: c240poprn6rc5f53as00 - portal_token: 611963e316474900ab462c39050d795d1 - runtime_key: 16afd078b95e408fb72752cade95d2bf - name: gamejam-pirates - - id: c2e1bp971ic4hd1fbjcg - portal_token: b616429f8a904ceab97ccbce910120741 - runtime_key: 15c378074da24eb79e8d2e29d622f800 - name: gamejam-plastic - - id: cgf1a9lbo1hk33munn4g - portal_token: 1f6ce2a75c2e465ba6d88edbbfcf019e - runtime_key: 3f474cd5a5664f27874c0cd527d50baf - name: gamejam-rampart - - id: cppcd122t1cuc1aotkdg - portal_token: 76a97af1dff34499b0f859e14ba3b03f - runtime_key: f5d7767a37cf466883d34d5963e0e802 - name: gamejam-ride - - id: c5dcd4pvpaj5383np3qg - portal_token: 6a3fca79f87e4806bd2da4ba0f6413f3 - runtime_key: 88d464efcd7c4e70b418f83a0143c9bc - name: gamejam-rooms-team-three - - id: cppd7ea2t1cgjn3al8c0 - portal_token: 62449f547abc403eb7de66ae2c524d71 - runtime_key: f9264529a25a48d185e53a6ae95209ef - name: gamejam-sandeep-2024-06 - - id: chutlie4h3r5dbjj242g - portal_token: ec5f1688b1dc4615a2847e6c1b5ebad7 - runtime_key: 7f1ac456fec84e3e8266b57972f794b0 - name: gamejam-sandeep-22-05-30 - - id: chtpuvvssp09mluo8fug - portal_token: 8f1e7522e2334323a9923ad890136322 - runtime_key: cad94db6986842ee9c510e6b5d1d4742 - name: gamejam-shipwreck - - id: ci5f80u4h3r8e49mepj0 - portal_token: a880d247ee5447ad8030f5a0a922022b - runtime_key: 8fc1f6c1fd1c4672af97a565a7221993 - name: gamejam-shipwreck-test - - id: c84e8l1vpajbck2rflag - portal_token: 098eca6afef842ce8e48ce79e6399c62 - runtime_key: 21153be26760400ba787a9e3a653226d - name: gamejam-shooter - - id: c1vd9h1rn6ra3o38bj70 - portal_token: 2d5e7dc96b9d45a2a9f62d9fc13e623b1 - runtime_key: 7df9ff5259574205ba4ff209f3ce26bb - name: gamejam-supersoldiers - - id: c6rlhmhvpaj8kd81a1eg - portal_token: 2a963fef394848228efcf2dcc676c8a4 - runtime_key: 63eee47dc05a4ab8a59301fdbc441d84 - name: gamejam-supersoldiers-2 - - id: c6bqpfpvpaj60q5cdo0g - portal_token: 0a9b6f0da7664def9b71262388e12cff - runtime_key: 953628a4a5be4d628e78c4890628b64d - name: gamejam-supersoldiers-client - - id: chsrdjnssp0al5b99pq0 - portal_token: 400a4843caff4e6e990299134d15a454 - runtime_key: 1b244b247eb5483ea52cf63282f0e8d4 - name: gamejam-supersoldiers-lobbies - - id: d4dmje1qpo25rn3r2sv0 - portal_token: 75e08711f5cd4e21a4418ca613becac1 - runtime_key: 0cb59a115c29481380c927982120d45d - name: gamejam-supersoldiers-mobile - - id: cl0f2d22t1clqq2cvtng - portal_token: 0273493b0a02468f868aa77d2f726cb0 - runtime_key: ad995e89548d49ab9a94e875586818d9 - name: supersoldiers-rsl - - id: c9t1ieadrumj14jdb960 - portal_token: 2f773fe8214a44e28be9a09f0d7c67f8 - runtime_key: 60703954f06c4504a9b93b0085cb9329 - name: gamejam-tic - - id: c6j2l3hvpajbe717lb9g - portal_token: ef9171e7135a416389a5a5519ccd68a5 - runtime_key: be0a8c710563462ea7320738d1b95fc3 - name: gamejam-viking - - id: ccq9h4rri4dfk7hnacdg - portal_token: fb6679c264a244eb9b0a942738c6fcca - runtime_key: 597ce17bf2354bf899576ca8f0c7d023 - name: gamejam-vlad-2023-04 - - id: c20urvprn6r88l81cksg - portal_token: 62229c2dd52b4cec8d278f69977bc0921 - runtime_key: 9a5def4ee8954dfcb14eb34ff9dfa271 - name: GetStarted - - id: cq3trri2t1cuokpcr2v0 - portal_token: dfacbc756b424bf8a2c596e3084e99f4 - runtime_key: a068c3658e5e4dda95166c665160b53c - name: headless-test - - id: c67uu8pvpaj278k3jhu0 - portal_token: e9e02feed82f4edcb303d5bf3ef32a36 - runtime_key: e66ff202c7e5452fa00b02f64d4ecf41 - name: hellfront - - id: c6npu81vpaj453erbg60 - portal_token: 40a2e4e531f04c729524d17c89f90a97 - runtime_key: 037134dc5fbe4df8a6290645d9ac9b57 - name: input-owner-test - - id: cphgvm4pb608atnc0bkg - portal_token: 00aa107cff9e4c3a877035e2e0968753 - runtime_key: f1d006ab3d8946c0a65e7ba20706fba7 - name: integration-tests - - id: cvv1rlhqpo20c6f03cqg - portal_token: 595324d8e4e8440aa773d651a1283420 - runtime_key: b3c9cbec90e54fd4b6cf35012b8acc16 - name: issue-7910-sim-auth - - id: d2desbdbei2o1lbvm8c0 - portal_token: 10dc927052cb4bbf9563bc1b79a44d52 - runtime_key: 5dcd510adc2944b6a8aa35c2ae69a2c7 - name: Jamtastic - - id: ci30ck64h3r3tqo51mig - portal_token: 806dc6302fe64f4590d1342de7230f73 - runtime_key: 6e842791247e40cabd01cd53689053fc - name: vlad-debug-new-project - - id: c95f1itt84j4lk44akbg - portal_token: 50ad8bc4a3e3427b9924d4b005045c37 - runtime_key: ef38ee3c045347a19a9276eadc887158 - name: lego-staging - - id: com1jdi2t1ch2t9ao1c0 - portal_token: 8bb75ecc20a245c3afb0fb530f8c3f30 - runtime_key: 003a15eff070484c8e07e842d93c9b00 - name: leos-playground - - id: cccpp8jri4db8gho0300 - portal_token: 52b0fd2912994d57afc27278c531ca45 - runtime_key: 026c917fabc1407aba22fa7391cd7e94 - name: miguel-sandbox - - id: d2o4icdbei2gct49id30 - portal_token: 5ecae1e395c14d86a5453fa05b01ed10 - runtime_key: fd8a940f3be442debea210694c1151b0 - name: MobileDemo - - id: c85orapvpajbck2s9eg0 - portal_token: d4e7a8c718794573a324dcd59d270fbb - runtime_key: 87f08d50582f471d81f3f7ee8054cc4a - name: MoonBoot - - id: c7ldvepvpaj54s68i780 - portal_token: 33c6209b4cfd4e7db19be66a432c818e - runtime_key: b56bc6a561f64b8587c928aa1cbbca19 - name: Playground Original - - id: cs7f6bv088d66d5ip0vg - portal_token: 0f91226d6b8f42f590f524e238273a30 - runtime_key: 875a93101dad4adcbc396fcb8ba507a5 - name: poc-cary-SR2 - - id: cq6vqv22t1cvi86mnrm0 - portal_token: 8df3e5069715487988ab01577e77652f - runtime_key: f74fc222291a48c3a7995b5fc086c72f - name: poc-cary-sulfur - - id: c92sm7lt84j1ocj5ch40 - portal_token: d4e2085ebfb9431e8d9c21cd0a351d3a - runtime_key: 5d9a08eb7f3c450d98e98221cbf26893 - name: poc-HH2 - - id: cveqcqboc4rb2mlootl0 - portal_token: 7c030531ed52494e93a6ebf2c00d219d - runtime_key: 7c5043629bc6410988c942d9470513a9 - name: poc-wagon - - id: c8thu75t84j7j6jms59g - portal_token: 945a1ddd59584bddbff75f837ed4c953 - runtime_key: 20929b8417734cef815808e372542fb4 - name: prefab-mapper-testbed - - id: d0cue3hqpo26m25gapo0 - portal_token: 7e5a97b598704dd2bcf04ffce8ea2957 - runtime_key: c3ac12c0d5c744cb8b35b1f526d249d3 - name: quickjam-fran-fas - - id: cijujre4h3r1k70qptfg - portal_token: cb02130145cb46309cb750225b5cfd9a - runtime_key: c9fa0252cb044ccb9dc71d5721f633f9 - name: rpg-builder - - id: cges0t5bo1hk33mujkb0 - portal_token: 46a7f53269ff4f1ab47a20fd56b986d4 - runtime_key: cf8a1fd16fae46bd8f534143fe090181 - name: space - - id: cii07vm4h3raiuvmat80 - portal_token: 6355e20c075442b9b4a72e1f6c77c644 - runtime_key: 13e3929ec97c4ddf8b77adddae39120e - name: squingle - - id: c92n8tdt84j1ocj4mv8g - portal_token: 530467a2520d4954806db267fbc20d0e - runtime_key: 09196e4708e741bfb36ba1521e11abb1 - name: synced-data-structures - - id: c81um01vpajbck2pt7t0 - portal_token: c527398de9b74070ad675d7316d26699 - runtime_key: 7c0cdd9a2f304699b38599acd1e6d9b4 - name: Take Home Test - - id: c8h1flpvpaj96oi2b6eg - portal_token: ec5b6980057147cd98b5960038734872 - runtime_key: 34f58d3ae9004554ba8bc7927869a12a - name: test - - id: cstso3f088d1lg1inen0 - portal_token: 335078ba96914df082a4eb3231b24da1 - runtime_key: a21a1def043c4ecfbd94a601f5fd3891 - name: test-disconnecting-simulators - - id: cifibb64h3r39085frsg - portal_token: 8186e54f680a4b0fba0b5285012853a9 - runtime_key: f9d5be7388294ed89a766e5febefdbdb - name: test-local-rs - - id: d0dl5qpqpo226aapkvsg - portal_token: 782677708d1b4bb99b0bec4b602c0514 - runtime_key: 6679bd9038ea41b2b6e3cc151adb6993 - name: TGAuthSim - - id: c7p6m2hvpaj7objpe88g - portal_token: 0214923ba9ae4c25a986522d0518d37f - runtime_key: 7771d77e79664dd5acbf01d58b65dd6a - name: TG Dystopia Demo - - id: cgdghp5bo1hhtjb6mjsg - portal_token: da1be22511d64a8ca8aac28fd39ba27c - runtime_key: 6f1ddc3e0d8c488196166c52710778ab - name: Transitions - - id: crooofq2t1crjl8vftig - portal_token: b097e94bbb454fe597118ae5ab049189 - runtime_key: 327953d3096c4dd88a4d32715c5bbc62 - name: unit-tests - - id: cbfv5mbri4d014v2oe5g - portal_token: e794fffa82f3479bbb09c1dd758d7cf6 - runtime_key: 53ab3d230cee4cf7afadda7383734624 - name: cloudbuild-release-testproject - - id: ckna19gglpuk1q1oidig - portal_token: f3b289a956e04d26bda29a10a60a7d79 - runtime_key: 1942cfd2d7c54f0680d5f92d1bfcd401 - name: vampire-survivors - - id: cg50ibdbo1hunat290ng - portal_token: 212ebb72d56f40a39d142d2ee0464b3f - runtime_key: 2dd3e73dd3374feea2391ae1f831868d - name: vlad test - - id: c81q151vpajbck2pp1ng - portal_token: c4bc2739f29c4974881a80de119cf6c3 - runtime_key: c3b7f8f56bb245bf996d560c62dd8018 - name: Vojins Proj - - id: c64hgmhvpajes1o4vsfg - portal_token: 8ec7a14bdfc84ba8a87821e93f655500 - runtime_key: 97229597ee2a44bb87755752b9aaa1ea - name: webgl-test-sandeep + - id: d095tn9qpo250m0osp5g + portal_token: 797f5ed2b6da407fa79b91a116b86382 + runtime_key: 8581e3d0f67b4b0db703594e41511a6a + name: asdfa + - id: c2fs84h71ic1k2mqlktg + portal_token: 04868934e4f94c0190e7f44b0506a5a31 + runtime_key: 1cc93228c3ea46d0898d58c83f74b51c + name: asya-playground + - id: cke7octklouml7ml5lrg + portal_token: c3b77691987a4e8287bcb081cc91a311 + runtime_key: dfd8f781fadc4c13bdbe782e793e52f1 + name: campfire1 + - id: d1sh0s9qpo2572df6bv0 + portal_token: e9542dd7392548a3be2fb02a8711c5cf + runtime_key: 322c7f2a1c944f8ea1aa8b6c64336ac8 + name: deve + - id: cg51kh5bo1hunat2a8j0 + portal_token: d81c30a60d064424a5a3579130d8cbfd + runtime_key: f71d90848e2f43d2b03a1f6a5a56051a + name: dystopia + - id: cf7aun5bo1hssa8gsg90 + portal_token: 26e1bf6cf47942bf817588a69ec20bc6 + runtime_key: 96267c87447c4739bac94cecf3400c1a + name: firststeps + - id: cg34t0tbo1hvll6seg80 + portal_token: 50e73f16d4704c978a5f604113ffe92a + runtime_key: 1c7d1d59a8ac49cd931d8d4d82d84c6a + name: hdpr-2021 + - id: c1mnkn9rn6r9re0fhq60 + portal_token: 0fc72a6cd1d44f4d8ea0eee814d1a9bd1 + runtime_key: 2b2707aedae146bba9d1dce31734f066 + name: Lobby-1 + - id: cpasffa2t1cqa1b0s1u0 + portal_token: ef0019890335427083941c138985e92a + runtime_key: 5f9dd0f43e6e41ada2063e259ac5c37a + name: lobby-2 + - id: cthk4djoc4r4q37rqna0 + portal_token: e51db791f37d454d9624ba26698a5ad8 + runtime_key: d974c37d73a14787af3f715c1011d025 + name: My ProjectWebGL1.4 + - id: chlsmu7ssp04t13jkg9g + portal_token: eb78fe1fabaa4378905ccac04c643038 + runtime_key: 1c2f767a42724065b8987da017da3c1c + name: next-wildlife + - id: c1mnlg9rn6r9re0fhqjg + portal_token: b228a2ec00da4e25adef50285497a74b1 + runtime_key: d5c86013049841eb811319e810773837 + name: Project 2 + - id: d1sh0v9qpo2572df6c7g + portal_token: 22ec290e93574b8c858afc32b0201a0a + runtime_key: 5becf929e5c946ae9797775fb3b31a07 + name: rele + - id: c2h5ebp71ic1k2mqrfq0 + portal_token: 94b102643c734135a91e4c07f01de8501 + runtime_key: 1188a7011bed4f91a795071f9405e5f2 + name: supersoldiers + - id: ciikdju4h3r2dug10ps0 + portal_token: 7e76ad8f22724f5a97d5804bc9ac5ba8 + runtime_key: e45ba61c80eb45a0beccace7aa223d3a + name: supersoldiers-lobby + - id: cfcmaalbo1hqgv2au6f0 + portal_token: fd174459d57742a69f0923082b3b8484 + runtime_key: 02bfa41743634c248feac5d85482acf0 + name: Test Compression + - id: c1mnl49rn6r9re0fhqe0 + portal_token: 2c459d49299c4e1d940a4a3fa3ead0f11 + runtime_key: ba8eb0370d8f4b29b761c7efb7bf4ff0 + name: Gamejam Viking + - id: cc1o1nbri4d6034ck1og + portal_token: b365422079154b8c9e53f028712f4333 + runtime_key: a8b45ed5cf694cc0856cd74217459dc8 + name: wildlife multipleProjects: [] diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index f2fe6da..cb9836f 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -834,7 +834,7 @@ PlayerSettings: scriptingDefineSymbols: Android: Server: - Standalone: COHERENCE_DISABLE_LOG_WARNING + Standalone: COHERENCE_DISABLE_LOG_WARNING;COHERENCE_LOG_DEBUG WebGL: COHERENCE_LOG_DEBUG;COHERENCE_LOG_TRACE iPhone: additionalCompilerArguments: {} From 6e0dca45fcda3298891389b1052d733b349d7c7b Mon Sep 17 00:00:00 2001 From: asya Date: Wed, 22 Jul 2026 00:40:12 +0300 Subject: [PATCH 3/6] updated scene for simulator --- .../SelectionHighlight/HighlightOutline.mat | 4 +- Assets/Scenes/Main.unity | 128 +++++++++++++++++- ProjectSettings/CoherenceSettings.asset | 4 +- ProjectSettings/ProjectSettings.asset | 4 +- 4 files changed, 132 insertions(+), 8 deletions(-) diff --git a/Assets/Art/Effects/SelectionHighlight/HighlightOutline.mat b/Assets/Art/Effects/SelectionHighlight/HighlightOutline.mat index 67dac42..2c4452a 100644 --- a/Assets/Art/Effects/SelectionHighlight/HighlightOutline.mat +++ b/Assets/Art/Effects/SelectionHighlight/HighlightOutline.mat @@ -8,7 +8,7 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: HighlightOutline - m_Shader: {fileID: -6465566751694194690, guid: da929e4a5ec894e5da78762c53a465d3, + m_Shader: {fileID: -6465566751694194690, guid: abcf3ae5e7fa4422da83e0d051f08dea, type: 3} m_Parent: {fileID: 0} m_ModifiedSerializedProperties: 0 @@ -65,7 +65,7 @@ Material: - _Strength_t: 1 - _Strength_w: 1 - _Surface: 0 - - _Thickness: 0.8 + - _Thickness: 0.4 - _World_space_Variation: 3 - _ZTest: 8 - _ZWrite: 1 diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index c2db96b..2010f13 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -26234,6 +26234,54 @@ Transform: type: 3} m_PrefabInstance: {fileID: 1624837533} m_PrefabAsset: {fileID: 0} +--- !u!1 &949011307 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 949011308} + - component: {fileID: 949011309} + m_Layer: 0 + m_Name: AutoSimulatorConnection + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &949011308 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 949011307} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1384396892} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &949011309 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 949011307} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: cb9923c3fc734990b2fcc0c59fb6fa98, type: 3} + m_Name: + m_EditorClassIdentifier: + reconnectTime: 3 + attemptsBeforeRefetch: 3 + autoLoginToCloud: 1 + bridge: {fileID: 0} --- !u!1001 &949608104 PrefabInstance: m_ObjectHideFlags: 0 @@ -40074,6 +40122,8 @@ Transform: - {fileID: 503013440} - {fileID: 438728332} - {fileID: 64174767} + - {fileID: 949011308} + - {fileID: 2106038983} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &1386038091 stripped @@ -41515,8 +41565,8 @@ MonoBehaviour: m_PersistentCalls: m_Calls: [] uniqueId: - autoLoginAsGuest: 1 - playerAccount: 0 + autoLoginAsGuest: 0 + playerAccount: 2 --- !u!4 &1423719545 Transform: m_ObjectHideFlags: 0 @@ -48797,6 +48847,11 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 2375060055151760671, guid: 3899d1d755bc04d48bf3f1dab37a3f3b, + type: 3} + propertyPath: m_AnchoredPosition.x + value: -33 + objectReference: {fileID: 0} - target: {fileID: 3642171110511019655, guid: 3899d1d755bc04d48bf3f1dab37a3f3b, type: 3} propertyPath: m_AnchorMax.y @@ -60177,6 +60232,75 @@ Transform: type: 3} m_PrefabInstance: {fileID: 2105996753} m_PrefabAsset: {fileID: 0} +--- !u!1 &2106038982 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2106038983} + - component: {fileID: 2106038984} + m_Layer: 0 + m_Name: CoherenceCloudLogin + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &2106038983 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2106038982} + serializedVersion: 2 + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1384396892} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &2106038984 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2106038982} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8e1204023f91ac64f930df8b0ee0dde5, type: 3} + m_Name: + m_EditorClassIdentifier: + login: 1 + usernameCloudUniqueIdOrIdentity: + rid: 3859272015834513408 + passwordTokenTicketOrCode: + rid: 3859272015834513409 + autoSignup: 1 + logInOnLoad: 1 + logInSimulators: 1 + onLoggedIn: + m_PersistentCalls: + m_Calls: [] + onLoginFailed: + m_PersistentCalls: + m_Calls: [] + references: + version: 2 + RefIds: + - rid: 3859272015834513408 + type: {class: StringTextInput, ns: Coherence.Toolkit, asm: Coherence.Toolkit} + data: + text: + - rid: 3859272015834513409 + type: {class: StringTextInput, ns: Coherence.Toolkit, asm: Coherence.Toolkit} + data: + text: --- !u!1001 &2110263722 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/ProjectSettings/CoherenceSettings.asset b/ProjectSettings/CoherenceSettings.asset index 4e367e0..e07738b 100644 --- a/ProjectSettings/CoherenceSettings.asset +++ b/ProjectSettings/CoherenceSettings.asset @@ -12,7 +12,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: a6b58ca8e478745dfab801a85671962e, type: 3} m_Name: m_EditorClassIdentifier: - showHubModuleQuickHelp: 0 + showHubModuleQuickHelp: 1 portalToken: localRoomsCleanupTimeSeconds: 120 localWorldHostAuthority: 0 @@ -20,7 +20,7 @@ MonoBehaviour: rsLogToFile: 1 rsLogFilePath: 2.2.rs.logs.txt rsFileLogLevel: 3 - reportAnalytics: 0 + reportAnalytics: 1 RSBundlingEnabled: 1 keepConnectionAlive: 1 useUnlockToken: 0 diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index cb9836f..500d303 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -834,8 +834,8 @@ PlayerSettings: scriptingDefineSymbols: Android: Server: - Standalone: COHERENCE_DISABLE_LOG_WARNING;COHERENCE_LOG_DEBUG - WebGL: COHERENCE_LOG_DEBUG;COHERENCE_LOG_TRACE + Standalone: COHERENCE_DISABLE_LOG_WARNING;COHERENCE_LOG_DEBUG;COHERENCE_LOG_TRACE + WebGL: COHERENCE_LOG_DEBUG iPhone: additionalCompilerArguments: {} platformArchitecture: {} From 02a35950faa4cb7abde1f7d447ab3bcdd543e028 Mon Sep 17 00:00:00 2001 From: asya Date: Tue, 28 Jul 2026 20:14:04 +0300 Subject: [PATCH 4/6] upgraded to 2.2 --- 2.2.rs.logs.txt | 139 + .../Runtime/Reflections/PlanarReflections.cs | 11 +- .../Scripts/UI/StylizedWaterAbout.uxml | 4 +- .../UI/StylizedWaterAcknowledgements.uxml | 4 +- .../Scripts/UI/StylizedWaterDetectIssues.uxml | 20 +- .../Scripts/UI/StylizedWaterSupport.uxml | 18 +- .../Scripts/UI/StylizedWaterToolbar.uxml | 4 +- .../World Position From Depth.shadersubgraph | 1437 +++++++- .../Color/Color Adjustment.shadersubgraph | 738 +++- .../Color/Depth Color.shadersubgraph | 2286 +++++++++++- .../Libraries/Color/HSV Lerp.shadersubgraph | 641 +++- .../Color/Horizon Color.shadersubgraph | 796 ++++- .../Color/Shore Color.shadersubgraph | 26 + .../Depth/Scene Position.shadersubgraph | 50 +- .../Foam/Foam Shadow Offset.shadersubgraph | 30 +- .../Planar Reflections.shadersubgraph | 1341 ++++++- .../Additional Lighting.shadersubgraph | 11 + .../Blended Normals.shadersubgraph | 1363 ++++++- .../Surface and Lighting/Fog.shadersubgraph | 1217 ++++++- .../Lighting.shadersubgraph | 3159 +++++++++++++++-- .../Main Light.shadersubgraph | 438 ++- .../Main Lighting.shadersubgraph | 9 + .../UV/Mobile Refract UV.shadersubgraph | 1834 +++++++++- .../Libraries/UV/Refract UV.shadersubgraph | 2947 ++++++++++++++- .../Libraries/UV/Underwater UV.shadersubgraph | 1154 +++++- .../Libraries/UV/Water UV.shadersubgraph | 1250 ++++++- .../Libraries/Waves/Waves.shadersubgraph | 1338 ++++++- Assets/Prefabs/Characters/KeeperRobot.prefab | 148 +- .../{2.2.0-pre.3.meta => 2.2.0.meta} | 2 +- .../{2.2.0-pre.3 => 2.2.0}/Worlds UI.meta | 2 +- .../Worlds UI/ConnectDialogWorldView.cs | 0 .../Worlds UI/ConnectDialogWorldView.cs.meta | 0 .../Worlds UI/SpinnerAnimWorlds.anim | 0 .../Worlds UI/SpinnerAnimWorlds.anim.meta | 0 .../Worlds UI/SpinnerAnimWorlds.controller | 0 .../SpinnerAnimWorlds.controller.meta | 0 .../Worlds UI/World Connection Dialog.prefab | 0 .../World Connection Dialog.prefab.meta | 0 .../Worlds UI/WorldDialogUI.cs | 0 .../Worlds UI/WorldDialogUI.cs.meta | 0 .../Worlds UI/Worlds UI.unity | 0 .../Worlds UI/Worlds UI.unity.meta | 0 .../WorldsInputFieldTextFontSetter.cs | 0 .../WorldsInputFieldTextFontSetter.cs.meta | 0 Assets/Scenes/Main.unity | 2 +- Assets/Scripts/Robot/KeeperRobot.cs | 5 + Assets/coherence/Gathered.schema | 65 +- Assets/coherence/RuntimeSettings.asset | 6 +- Assets/coherence/SimulatorSlugs.asset | 2 +- Assets/coherence/baked/BakeInfo.cs | 2 +- ...ceSync_a857fd6c221f7f04fa9ed500e317642a.cs | 140 +- ...ceSync_c76bd173fbfcfba44982ec0a19f9c897.cs | 8 +- ...ceSync_cd9bcc1feead9419fac0c5981ce85c23.cs | 28 +- ...ceSync_e74854605b68b435280bc0ac73fef6c1.cs | 8 +- ...ceSync_ec47cd7906b7749f4853524abf78e799.cs | 6 +- ...ceSync_f446f3c484ae048c4ba11ef7b8642420.cs | 8 +- Packages/manifest.json | 2 +- Packages/packages-lock.json | 7 +- ProjectSettings/CoherenceSettings.asset | 2 +- ProjectSettings/ProjectSettings.asset | 4 +- 60 files changed, 21030 insertions(+), 1682 deletions(-) rename Assets/Samples/coherence/{2.2.0-pre.3.meta => 2.2.0.meta} (77%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI.meta (77%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/ConnectDialogWorldView.cs (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/ConnectDialogWorldView.cs.meta (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/SpinnerAnimWorlds.anim (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/SpinnerAnimWorlds.anim.meta (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/SpinnerAnimWorlds.controller (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/SpinnerAnimWorlds.controller.meta (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/World Connection Dialog.prefab (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/World Connection Dialog.prefab.meta (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/WorldDialogUI.cs (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/WorldDialogUI.cs.meta (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/Worlds UI.unity (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/Worlds UI.unity.meta (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/WorldsInputFieldTextFontSetter.cs (100%) rename Assets/Samples/coherence/{2.2.0-pre.3 => 2.2.0}/Worlds UI/WorldsInputFieldTextFontSetter.cs.meta (100%) diff --git a/2.2.rs.logs.txt b/2.2.rs.logs.txt index 22a7351..aaed9d4 100644 --- a/2.2.rs.logs.txt +++ b/2.2.rs.logs.txt @@ -192,3 +192,142 @@ {"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T22:06:17.081+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} {"level":"panic","error":"web signalling start: listen tcp 127.0.0.1:32002: bind: address already in use","time":"2026-07-14T22:06:17.083+03:00","message":"failed to start web signalling"} {"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-14T22:06:28.068+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-22T20:48:38.524+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-22T20:59:24.267+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-22T23:19:09.542+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID 8665bf19118bc39dcff68eb61b7b9dfb2f420810 expected d78538fde15005c2eb1b7f4538a3bdb028668df7","logId":122,"time":"2026-07-22T23:55:20.745+03:00","message":"run error"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-22T23:55:29.442+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-22T23:55:31.649+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-22T23:55:34.665+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-22T23:55:37.675+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-22T23:55:40.708+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-22T23:55:40.733+03:00","message":"run error"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-23T01:08:06.441+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-23T13:41:38.115+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-23T13:41:40.185+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-23T13:41:40.271+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-23T13:41:43.21+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-23T13:41:43.312+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-23T13:41:46.215+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-23T13:41:46.379+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-23T13:41:49.254+03:00","message":"run error"} +{"level":"error","project-id":"local","logger":"netMgr","error":"wrong schemaID d78538fde15005c2eb1b7f4538a3bdb028668df7 expected 8665bf19118bc39dcff68eb61b7b9dfb2f420810","logId":122,"time":"2026-07-23T13:41:49.428+03:00","message":"run error"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-23T14:37:03.339+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-23T15:23:08.308+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-27T20:25:48.296+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 145 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.986+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 149 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 157 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 143 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 144 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 133 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 146 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 154 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 135 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 137 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 151 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 152 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 136 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.987+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 140 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 156 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 153 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 138 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 155 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 142 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 141 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 150 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 158 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 147 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 139 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 134 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 148 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:09.988+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 176 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.017+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 159 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.017+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 167 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.017+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 172 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.017+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 179 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.017+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 170 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 164 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 161 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 160 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 168 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 181 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 171 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 165 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 163 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 177 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 166 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 178 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 175 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 162 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.018+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 173 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.019+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 174 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.019+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 180 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.019+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 169 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.019+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 191 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.063+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 199 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.063+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 195 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.063+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 189 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.063+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 190 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.063+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 194 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.063+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 193 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.063+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 192 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.063+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 185 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 196 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 203 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 183 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 182 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 204 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 186 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 184 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 200 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 198 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 201 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 197 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 205 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 188 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 202 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.064+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 187 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.065+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 209 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.092+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 224 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.092+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 219 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.092+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 220 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 223 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 214 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 221 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 216 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 225 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 213 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 211 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 215 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 222 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 207 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 218 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 217 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 208 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 206 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 227 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 226 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 212 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 210 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.093+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 243 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 244 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 228 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 231 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 230 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 241 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 237 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 236 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 235 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 234 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 242 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.11+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 232 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.111+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 239 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.111+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 229 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.111+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 238 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.111+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 233 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.111+03:00","message":"create entity request failed"} +{"level":"error","project-id":"local","logger":"entityManager","error":"cannot create entity, invalid request : cid: 352 cannot create entity [abs_ent 240 (0)] : not authorized to create/update entities","logId":37,"time":"2026-07-27T20:26:10.111+03:00","message":"create entity request failed"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-27T20:26:41.264+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"error","logAlert":1,"error":"could not run with log : network init: WEB server setup: web muxer setup error: error when starting webrtc udp port : listen udp 127.0.0.1:32003: bind: address already in use ","exit_code":10,"logId":8,"time":"2026-07-27T20:26:41.266+03:00","message":"error with exit code"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-27T20:26:51.556+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} +{"level":"warn","maxCCU":100,"logId":71,"time":"2026-07-27T20:28:05.932+03:00","message":"unlock token isn't provided, the Replication Server will run in restriced mode with limited CCU"} diff --git a/Assets/Art/Shaders/Stylized Water For URP/Scripts/Runtime/Reflections/PlanarReflections.cs b/Assets/Art/Shaders/Stylized Water For URP/Scripts/Runtime/Reflections/PlanarReflections.cs index 953172e..49cd3b8 100644 --- a/Assets/Art/Shaders/Stylized Water For URP/Scripts/Runtime/Reflections/PlanarReflections.cs +++ b/Assets/Art/Shaders/Stylized Water For URP/Scripts/Runtime/Reflections/PlanarReflections.cs @@ -205,7 +205,16 @@ private void DoPlanarReflections(ScriptableRenderContext context, Camera camera) var data = new PlanarReflectionSettingData(); data.Set(); BeginPlanarReflections?.Invoke(context, _reflectionCamera); - if (_reflectionCamera.WorldToViewportPoint(reflectionTarget.transform.position).z < 100000) UniversalRenderPipeline.RenderSingleCamera(context, _reflectionCamera); + if (_reflectionCamera.WorldToViewportPoint(reflectionTarget.transform.position).z < 100000) + { + // RenderSingleCamera is obsolete, but its suggested replacement (RenderPipeline.SubmitRenderRequest + // with UniversalRenderer.SingleCameraRequest) starts a new top-level pipeline pass and isn't meant + // to be called reentrantly from inside an active beginCameraRendering callback like this one. + // Keeping the obsolete call here is intentional until URP supports nested single-camera renders. +#pragma warning disable CS0618 + UniversalRenderPipeline.RenderSingleCamera(context, _reflectionCamera); +#pragma warning restore CS0618 + } data.Restore(); Shader.SetGlobalTexture(_planarReflectionTextureId, _reflectionTexture); } diff --git a/Assets/Art/Shaders/Stylized Water For URP/Scripts/UI/StylizedWaterAbout.uxml b/Assets/Art/Shaders/Stylized Water For URP/Scripts/UI/StylizedWaterAbout.uxml index da418fb..f8ea5b1 100644 --- a/Assets/Art/Shaders/Stylized Water For URP/Scripts/UI/StylizedWaterAbout.uxml +++ b/Assets/Art/Shaders/Stylized Water For URP/Scripts/UI/StylizedWaterAbout.uxml @@ -1,6 +1,6 @@ - -