Skip to content

Commit

Permalink
Configure Items
Browse files Browse the repository at this point in the history
  • Loading branch information
avkviring committed Jan 23, 2024
1 parent 70b7bff commit c41af36
Show file tree
Hide file tree
Showing 72 changed files with 5,739 additions and 490 deletions.
3 changes: 1 addition & 2 deletions client/Net/Embedded/Src/Src.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
<Pack>true</Pack>
<PackagePath>runtimes/osx-x64/native/libcheetah_embedded.dylib</PackagePath>
</Content>
<Protobuf Include="..\..\..\..\proto\shared.proto" GrpcServices="both" CompileOutputs="true" />
<Protobuf Include="..\..\..\..\proto\internal.proto" GrpcServices="both" CompileOutputs="true" />
<Protobuf Include="..\..\..\..\proto\service.proto" GrpcServices="both" CompileOutputs="true" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Serilog.AspNetCore" Version="6.0.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"rootNamespace": "Games.Cheetah.Client",
"references": [
"games.cheetah.grpc",
"games.cheetah.client",
"games.cheetah.grpc.admin",
"games.cheetah.grpc.shared"
"games.cheetah.client"
],
"includePlatforms": [
"Editor"
Expand Down
2 changes: 1 addition & 1 deletion client/Unity/Packages/games.cheetah.client/Tests.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
using Games.Cheetah.Client.Codec;
using Games.Cheetah.Client.Types.Field;
using Games.Cheetah.EmbeddedServer.API;
using Games.Cheetah.GRPC.Internal;
using Games.Cheetah.Realtime.GRPC;
using NUnit.Framework;
using FieldType = Games.Cheetah.GRPC.Shared.FieldType;

namespace Games.Cheetah.Client.Tests.Server.Helpers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"Unity.Collections",
"games.cheetah.client",
"games.cheetah.client.editor",
"games.cheetah.grpc.admin",
"games.cheetah.grpc.shared",
"games.cheetah.grpc.internal",
"games.cheetah.realtime.grpc",
"games.cheetah.embedded-server",
"games.cheetah.grpc"
],
Expand Down
1 change: 0 additions & 1 deletion client/Unity/Packages/games.cheetah.client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"repository": "github:cheetah-game-platform/platform",
"dependencies": {
"games.cheetah.grpc": "999.999.999",
"games.cheetah.grpc.shared": "999.999.999",
"com.unity.collections": "1.2.4"
},
"hideInEditor": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Net;
using System.Net.Http;
using Games.Cheetah.EmbeddedServer.FFI;
using Games.Cheetah.Realtime.GRPC;
using Grpc.Net.Client;
using Grpc.Net.Client.Web;
using static Games.Cheetah.GRPC.Internal.Internal;
using Logger = Games.Cheetah.EmbeddedServer.FFI.Logger;

#if UNITY_5_3_OR_NEWER
Expand Down Expand Up @@ -79,15 +79,15 @@ private static unsafe Server.BindSocket NewBindSocket(IPAddress bindAddress, ush
}


public InternalClient CreateGrpcClient()
public RealtimeServerManagementService.RealtimeServerManagementServiceClient CreateGrpcClient()
{
var channel = GrpcChannel.ForAddress(
GetInternalWebGrpcUri(), new GrpcChannelOptions
{
HttpHandler = new GrpcWebHandler(new HttpClientHandler()),
}
);
return new InternalClient(channel);
return new RealtimeServerManagementService.RealtimeServerManagementServiceClient(channel);
}

public void Destroy()
Expand All @@ -102,7 +102,8 @@ public string GetUdpGameHost()
{
unsafe
{
return $"{description.gameIp[0]}.{description.gameIp[1]}.{description.gameIp[2]}.{description.gameIp[3]}";
return
$"{description.gameIp[0]}.{description.gameIp[1]}.{description.gameIp[2]}.{description.gameIp[3]}";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"references": [
"games.cheetah.grpc",
"games.cheetah.client",
"games.cheetah.grpc.internal"
"games.cheetah.realtime.grpc"
],
"allowUnsafeCode": true,
"overrideReferences": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Games.Cheetah.Client.Codec;
using Games.Cheetah.Client.Types.Network;
using Games.Cheetah.EmbeddedServer.API;
using Games.Cheetah.GRPC.Internal;
using Games.Cheetah.Realtime.GRPC;
using NUnit.Framework;

namespace Games.Cheetah.EmbeddedServer.Tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"games.cheetah.grpc",
"games.cheetah.client",
"games.cheetah.embedded-server",
"games.cheetah.grpc.internal"
"games.cheetah.realtime.grpc"
],
"includePlatforms": [
"Editor"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"games.cheetah.grpc": "999.999.999",
"games.cheetah.client": "999.999.999",
"games.cheetah.grpc.internal": "999.999.999"
"games.cheetah.realtime.grpc": "999.999.999"
},
"hideInEditor": false,
"type": "library",
Expand Down

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions client/Unity/Packages/games.cheetah.grpc.internal/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions client/Unity/Packages/games.cheetah.grpc.shared/.npmignore

This file was deleted.

8 changes: 0 additions & 8 deletions client/Unity/Packages/games.cheetah.grpc.shared/Runtime.meta

This file was deleted.

Empty file.

This file was deleted.

Loading

0 comments on commit c41af36

Please sign in to comment.