mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-04-23 12:49:34 +08:00
更新测试项目引用;更新匿名服务器的逻辑
This commit is contained in:
parent
1e4940bd4e
commit
303c0baf9b
@ -47,6 +47,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OshimaServers", "..\OshimaG
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OshimaMaps", "..\OshimaGameModule\OshimaMaps\OshimaMaps.csproj", "{CDA0BCC1-0097-4D52-9895-A706D0523FBF}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OshimaMaps", "..\OshimaGameModule\OshimaMaps\OshimaMaps.csproj", "{CDA0BCC1-0097-4D52-9895-A706D0523FBF}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OshimaWebAPI", "..\OshimaGameModule\OshimaWebAPI\OshimaWebAPI.csproj", "{F82AF14E-9E06-442B-9407-86398B314DA9}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -93,6 +95,10 @@ Global
|
|||||||
{CDA0BCC1-0097-4D52-9895-A706D0523FBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{CDA0BCC1-0097-4D52-9895-A706D0523FBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{CDA0BCC1-0097-4D52-9895-A706D0523FBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{CDA0BCC1-0097-4D52-9895-A706D0523FBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{CDA0BCC1-0097-4D52-9895-A706D0523FBF}.Release|Any CPU.Build.0 = Release|Any CPU
|
{CDA0BCC1-0097-4D52-9895-A706D0523FBF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{F82AF14E-9E06-442B-9407-86398B314DA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{F82AF14E-9E06-442B-9407-86398B314DA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{F82AF14E-9E06-442B-9407-86398B314DA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{F82AF14E-9E06-442B-9407-86398B314DA9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
<ProjectReference Include="..\..\FunGame.Core\FunGame.Core.csproj" />
|
<ProjectReference Include="..\..\FunGame.Core\FunGame.Core.csproj" />
|
||||||
<ProjectReference Include="..\..\OshimaGameModule\OshimaCore\OshimaCore.csproj" />
|
<ProjectReference Include="..\..\OshimaGameModule\OshimaCore\OshimaCore.csproj" />
|
||||||
<ProjectReference Include="..\..\OshimaGameModule\OshimaModules\OshimaModules.csproj" />
|
<ProjectReference Include="..\..\OshimaGameModule\OshimaModules\OshimaModules.csproj" />
|
||||||
|
<ProjectReference Include="..\..\OshimaGameModule\OshimaServers\OshimaServers.csproj" />
|
||||||
|
<ProjectReference Include="..\..\OshimaGameModule\OshimaWebAPI\OshimaWebAPI.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Milimoe.FunGame.Core.Api.Utility;
|
using Milimoe.FunGame.Core.Api.Utility;
|
||||||
using Oshima.Core.Controllers;
|
using Oshima.FunGame.WebAPI.Controllers;
|
||||||
using Oshima.FunGame.OshimaModules;
|
using Oshima.FunGame.OshimaModules;
|
||||||
using Oshima.FunGame.OshimaServers.Service;
|
using Oshima.FunGame.OshimaServers.Service;
|
||||||
|
|
||||||
|
@ -58,6 +58,14 @@ namespace Milimoe.FunGame.Testing.Tests
|
|||||||
{
|
{
|
||||||
await HTTPClient.Send(SocketMessageType.AnonymousGameServer, OshimaGameModuleConstant.Anonymous);
|
await HTTPClient.Send(SocketMessageType.AnonymousGameServer, OshimaGameModuleConstant.Anonymous);
|
||||||
}
|
}
|
||||||
|
if (str == "scadd")
|
||||||
|
{
|
||||||
|
Dictionary<string, object> data = [];
|
||||||
|
data.Add("command", "scadd");
|
||||||
|
data.Add("qq", 1);
|
||||||
|
data.Add("sc", 1);
|
||||||
|
await HTTPClient.Send(SocketMessageType.AnonymousGameServer, OshimaGameModuleConstant.Anonymous, data);
|
||||||
|
}
|
||||||
if (str == "wsclose")
|
if (str == "wsclose")
|
||||||
{
|
{
|
||||||
await HTTPClient.Send(SocketMessageType.EndGame);
|
await HTTPClient.Send(SocketMessageType.EndGame);
|
||||||
@ -243,7 +251,7 @@ namespace Milimoe.FunGame.Testing.Tests
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WritelnSystemInfo(string msg)
|
public override void WritelnSystemInfo(string msg, LogLevel level, bool useLevel)
|
||||||
{
|
{
|
||||||
Console.WriteLine(msg);
|
Console.WriteLine(msg);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user