Skip to content

Commit 4d8861d

Browse files
committed
Merge branch 'dev/tp-mem'
2 parents 65e1a0d + cb34232 commit 4d8861d

File tree

60 files changed

+905
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+905
-51
lines changed

complex.slnx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<Solution>
22
<Folder Name="/App/">
3+
<Project Path="src\App\Common\Data\Common.Data.csproj" Type="Classic C#" />
34
<Project Path="src\App\Common\Runtime\Common.csproj" Type="Classic C#" />
45
<Project Path="src\App\Server\Server.csproj" Type="Classic C#" />
56
</Folder>
@@ -16,6 +17,7 @@
1617
<Project Path="src\Shared\Shared.Sys\Runtime.Tests\Shared.Sys.Tests.csproj" Type="Classic C#" />
1718
<Project Path="src\Shared\Shared.Sys\Runtime\Shared.Sys.csproj" Type="Classic C#" />
1819
<Project Path="src\Shared\Shared.Tp\Asp~\Shared.Tp.Asp.csproj" Type="Classic C#" />
20+
<Project Path="src\Shared\Shared.Tp\Data.Mem\Shared.Tp.Data.Mem.csproj" Type="Classic C#" />
1921
<Project Path="src\Shared\Shared.Tp\Data.Web\Shared.Tp.Data.Web.csproj" Type="Classic C#" />
2022
<Project Path="src\Shared\Shared.Tp\Rtc\Shared.Tp.Rtc.csproj" Type="Classic C#" />
2123
<Project Path="src\Shared\Shared.Tp\Runtime.Tests\Shared.Tp.Tests.csproj" Type="Classic C#" />

src/App/Client/Assets/Scripts/Logic/ClientSession.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
using System.Threading;
55
using System.Threading.Tasks;
66
using Client.UI;
7+
using Common.Data;
78
using Common.Logic;
89
using Common.Meta;
910
using Diagnostics.Debug;
1011
using Shared.Log;
1112
using Shared.Options;
1213
using Shared.Tp;
1314
using Shared.Tp.Data;
14-
using Shared.Tp.Data.Web;
1515
using Shared.Tp.Ext.Hand;
1616
using Shared.Tp.Ext.Misc;
1717
using Shared.Tp.Rtc;
@@ -140,8 +140,8 @@ private void Update()
140140
}
141141

142142
SyncOptions ISyncHandler<ClientState, ServerState>.Options => context.syncOptions;
143-
IObjWriter<ClientState> ISyncHandler<ClientState, ServerState>.LocalWriter { get; } = new WebObjWriter<ClientState>();
144-
IObjReader<ServerState> ISyncHandler<ClientState, ServerState>.RemoteReader { get; } = new WebObjReader<ServerState>();
143+
IObjWriter<ClientState> ISyncHandler<ClientState, ServerState>.LocalWriter { get; } = TickStateFactory.CreateObjWriter<ClientState>();
144+
IObjReader<ServerState> ISyncHandler<ClientState, ServerState>.RemoteReader { get; } = TickStateFactory.CreateObjReader<ServerState>();
145145

146146
ClientState ISyncHandler<ClientState, ServerState>.MakeLocalState(int sendIndex)
147147
{

src/App/Client/Assets/Scripts/Logic/ClientTap.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Common.Data;
12
using Common.Logic;
23
using Shared.Log;
34
using UnityEngine;

src/App/Client/Assets/Scripts/Logic/PeerTap.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Common.Data;
12
using Common.Logic;
23
using TMPro;
34
using UnityEngine;

src/App/Client/Assets/Scripts/Logic/StateExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Common.Data;
12
using Common.Logic;
23
using UnityEngine;
34

File renamed without changes.

src/App/Common/Runtime/Editor/ReadOnlyAttribute.cs.meta renamed to src/App/Client/Assets/Scripts/UI/ReadOnlyAttribute.cs.meta

File renamed without changes.

src/App/Client/Packages/manifest.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@
2828
"scopes": [
2929
"org.nuget"
3030
]
31+
},
32+
{
33+
"name": "TryApp NuGet",
34+
"url": "https://unitynuget.tryapp.org",
35+
"scopes": [
36+
"org.nuget.memorypack"
37+
],
38+
"overrideBuiltIns": true
39+
},
40+
{
41+
"name": "OpenUPM",
42+
"url": "https://package.openupm.com",
43+
"scopes": [
44+
"com.cysharp.unitask",
45+
"com.cysharp.memorypack",
46+
"com.playeveryware.eos"
47+
],
48+
"overrideBuiltIns": true
3149
}
3250
]
3351
}

src/App/Client/Packages/packages-lock.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,23 @@
121121
"locator.api": "0.1.0"
122122
}
123123
},
124+
"org.nuget.memorypack.core": {
125+
"version": "1.21.4",
126+
"depth": 1,
127+
"source": "registry",
128+
"dependencies": {
129+
"org.nuget.system.collections.immutable": "6.0.0",
130+
"org.nuget.system.runtime.compilerservices.unsafe": "6.0.0"
131+
},
132+
"url": "https://unitynuget.tryapp.org"
133+
},
134+
"org.nuget.memorypack.generator": {
135+
"version": "1.21.4",
136+
"depth": 1,
137+
"source": "registry",
138+
"dependencies": {},
139+
"url": "https://unitynuget.tryapp.org"
140+
},
124141
"org.nuget.microsoft.bcl.asyncinterfaces": {
125142
"version": "9.0.4",
126143
"depth": 2,
@@ -204,6 +221,16 @@
204221
"dependencies": {},
205222
"url": "https://unitynuget-registry.openupm.com"
206223
},
224+
"org.nuget.system.collections.immutable": {
225+
"version": "6.0.0",
226+
"depth": 2,
227+
"source": "registry",
228+
"dependencies": {
229+
"org.nuget.system.runtime.compilerservices.unsafe": "6.0.0",
230+
"org.nuget.system.memory": "4.5.4"
231+
},
232+
"url": "https://unitynuget-registry.openupm.com"
233+
},
207234
"org.nuget.system.componentmodel.annotations": {
208235
"version": "5.0.0",
209236
"depth": 3,
@@ -338,7 +365,9 @@
338365
"depth": 0,
339366
"source": "local",
340367
"dependencies": {
341-
"shared.sys": "0.1.0"
368+
"shared.sys": "0.1.0",
369+
"org.nuget.memorypack.core": "1.21.4",
370+
"org.nuget.memorypack.generator": "1.21.4"
342371
}
343372
},
344373
"shared.web": {

src/App/Client/ProjectSettings/PackageManagerSettings.asset

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,29 @@ MonoBehaviour:
3535
m_IsDefault: 0
3636
m_Capabilities: 0
3737
m_ConfigSource: 4
38-
m_UserSelectedRegistryName: Unity NuGet
38+
- m_Id: scoped:project:TryApp NuGet
39+
m_Name: TryApp NuGet
40+
m_Url: https://unitynuget.tryapp.org
41+
m_Scopes:
42+
- org.nuget.memorypack
43+
m_IsDefault: 0
44+
m_Capabilities: 0
45+
m_ConfigSource: 4
46+
- m_Id: scoped:project:OpenUPM
47+
m_Name: OpenUPM
48+
m_Url: https://package.openupm.com
49+
m_Scopes:
50+
- com.cysharp.unitask
51+
- com.cysharp.memorypack
52+
- com.playeveryware.eos
53+
m_IsDefault: 0
54+
m_Capabilities: 0
55+
m_ConfigSource: 4
56+
m_UserSelectedRegistryName: TryApp NuGet
3957
m_UserAddingNewScopedRegistry: 0
4058
m_RegistryInfoDraft:
4159
m_Modified: 0
4260
m_ErrorMessage:
43-
m_UserModificationsInstanceId: -862
61+
m_UserModificationsInstanceId: -864
4462
m_OriginalInstanceId: -866
4563
m_LoadAssets: 0

0 commit comments

Comments
 (0)