Skip to content

Commit

Permalink
Merge pull request #185 from sebastian-heinz/develop
Browse files Browse the repository at this point in the history
new release
  • Loading branch information
alborrajo authored Jun 7, 2023
2 parents 66053ba + db478ab commit 51d7728
Show file tree
Hide file tree
Showing 412 changed files with 315,136 additions and 4,235 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
*.exe binary
*.dll binary
*.pfx binary
*.csv binary
*.csv binary

research/* linguist-generated=true
research/dti/* linguist-generated=true
235 changes: 235 additions & 0 deletions .vscode/ddon.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,235 @@
{
// Place your área de trabajo de ddo-server snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"C2S - Request Packet Structure": {
"scope": "csharp",
"prefix": "c2s",
"description": "Request packet structure and serializer",
"body": [
"using Arrowgene.Buffers;",
"using Arrowgene.Ddon.Shared.Model;",
"using Arrowgene.Ddon.Shared.Network;",
"",
"namespace Arrowgene.Ddon.Shared.Entity.PacketStructure",
"{",
"\tpublic class $1 : IPacketStructure",
"\t{",
"\t\tpublic PacketId Id => PacketId.$2;",
"",
"\t\tpublic $1()",
"\t\t{",
"\t\t\t",
"\t\t}",
"",
"\t\t$0",
"",
"\t\tpublic class Serializer : PacketEntitySerializer<$1>",
"\t\t{",
"\t\t\tpublic override void Write(IBuffer buffer, $1 obj)",
"\t\t\t{",
"\t\t\t\t",
"\t\t\t}",
"",
"\t\t\tpublic override $1 Read(IBuffer buffer)",
"\t\t\t{",
"\t\t\t\t$1 obj = new $1();",
"\t\t\t\t",
"\t\t\t\treturn obj;",
"\t\t\t}",
"\t\t}",
"",
"\t}",
"}",
]
},
"S2C - Response Packet Structure": {
"scope": "csharp",
"prefix": "s2c",
"description": "Response packet structure and serializer",
"body": [
"using Arrowgene.Buffers;",
"using Arrowgene.Ddon.Shared.Model;",
"using Arrowgene.Ddon.Shared.Network;",
"",
"namespace Arrowgene.Ddon.Shared.Entity.PacketStructure",
"{",
"\tpublic class $1 : ServerResponse",
"\t{",
"\t\tpublic override PacketId Id => PacketId.$2;",
"",
"\t\tpublic $1()",
"\t\t{",
"\t\t\t",
"\t\t}",
"",
"\t\t$0",
"",
"\t\tpublic class Serializer : PacketEntitySerializer<$1>",
"\t\t{",
"\t\t\tpublic override void Write(IBuffer buffer, $1 obj)",
"\t\t\t{",
"\t\t\t\tWriteServerResponse(buffer, obj);",
"\t\t\t\t",
"\t\t\t}",
"",
"\t\t\tpublic override $1 Read(IBuffer buffer)",
"\t\t\t{",
"\t\t\t\t$1 obj = new $1();",
"\t\t\t\tReadServerResponse(buffer, obj);",
"\t\t\t\t",
"\t\t\t\treturn obj;",
"\t\t\t}",
"\t\t}",
"\t}",
"}",
]
},
"CData - Structure and serializer": {
"scope": "csharp",
"prefix": "cdata",
"description": "Structure and serializer",
"body": [
"using System.Collections.Generic;",
"using Arrowgene.Buffers;",
"using Arrowgene.Ddon.Shared.Model;",
" ",
"namespace Arrowgene.Ddon.Shared.Entity.Structure",
"{",
" public class $1",
" {",
" public $1() {",
" ",
" }",
" ",
" $0",
" ",
" public class Serializer : EntitySerializer<$1>",
" {",
" public override void Write(IBuffer buffer, $1 obj)",
" {",
" ",
" }",
" ",
" public override $1 Read(IBuffer buffer)",
" {",
" $1 obj = new $1();",
" ",
" return obj;",
" }",
" }",
" }",
"}"
]
},
"Handler - Packet handler": {
"scope": "csharp",
"prefix": "handler",
"description": "Packet handler",
"body": [
"using System.Linq;",
"using Arrowgene.Ddon.Server;",
"using Arrowgene.Ddon.Server.Network;",
"using Arrowgene.Ddon.Shared.Entity.PacketStructure;",
"using Arrowgene.Ddon.Shared.Entity.Structure;",
"using Arrowgene.Ddon.Shared.Model;",
"using Arrowgene.Ddon.Shared.Network;",
"using Arrowgene.Logging;",
"",
"namespace Arrowgene.Ddon.GameServer.Handler",
"{",
"\tpublic class $1 : GameStructurePacketHandler<C2S$2>",
"\t{",
"\t\tprivate static readonly ServerLogger Logger = LogProvider.Logger<ServerLogger>(typeof($1));",
"\t\t",
"\t\tpublic $1(DdonGameServer server) : base(server)",
"\t\t{",
"\t\t}",
"",
"\t\tpublic override void Handle(GameClient client, StructurePacket<C2S$2> packet)",
"\t\t{",
"\t\t\t$0",
"\t\t}",
"\t}",
"}"
]
},
"Structure Serializer": {
"scope": "csharp",
"prefix": "serializer",
"description": "Generic structure serializer",
"body": [
"public class Serializer : EntitySerializer<$1>",
"{",
"\tpublic override void Write(IBuffer buffer, $1 obj)",
"\t{",
"\t\t$0",
"\t}",
"",
"\tpublic override $1 Read(IBuffer buffer)",
"\t{",
"\t\t$1 obj = new $1();",
"\t\t",
"\t\treturn obj;",
"\t}",
"}"
]
},
"Packet Structure Serializer": {
"scope": "csharp",
"prefix": "packetserializer",
"description": "Packet structure serializer",
"body": [
"public class Serializer : PacketEntitySerializer<$1>",
"{",
"\tpublic override void Write(IBuffer buffer, $1 obj)",
"\t{",
"\t\t$0",
"\t}",
"",
"\tpublic override $1 Read(IBuffer buffer)",
"\t{",
"\t\t$1 obj = new $1();",
"\t\t",
"\t\treturn obj;",
"\t}",
"}"
]
},
"Response Structure Serializer": {
"scope": "csharp",
"prefix": "responseserializer",
"description": "Response packet structure serializer",
"body": [
"public class Serializer : PacketEntitySerializer<$1>",
"{",
"\tpublic override void Write(IBuffer buffer, $1 obj)",
"\t{",
"\t\tWriteServerResponse(buffer, obj);",
"\t\t$0",
"\t}",
"",
"\tpublic override $1 Read(IBuffer buffer)",
"\t{",
"\t\t$1 obj = new $1();",
"\t\tReadServerResponse(buffer, obj);",
"\t\t",
"\t\treturn obj;",
"\t}",
"}"
]
},
}
11 changes: 9 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"fudge.auto-using",
"jeff-hykin.better-cpp-syntax",
"ms-dotnettools.csharp",
"jchannon.csharpextensions",
"notblank00.hexeditor"
"kreativ-software.csharpextensions",
"notblank00.hexeditor",
"wayou.vscode-todo-highlight",
"usernamehw.errorlens",
"mechatroner.rainbow-csv",
"yo1dog.cursor-align",
"wmaurer.change-case",
"softwareape.numbermonger",
"maziac.hex-hover-converter"
]
}
27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,33 @@
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "packet",
"command": "dotnet",
"type":"process",
"args": [
"run",
"--project",
"${workspaceFolder}/Arrowgene.Ddon.Cli/Arrowgene.Ddon.Cli.csproj",
"packet",
"${input:pathToYaml}",
"${input:camelliaKey}"
],
"problemMatcher": "$msCompile"
}
],
"inputs": [
{
"id": "pathToYaml",
"description": "Path to Wireshark packet capture YAML",
"default": "C:\\Users\\xx\\Downloads\\dumps\\85_11.yaml",
"type": "promptString"
},
{
"id": "camelliaKey",
"description": "Camellia Key",
"type": "promptString"
}
]
}
3 changes: 2 additions & 1 deletion Arrowgene.Ddon.Cli/Arrowgene.Ddon.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<Version>$(Version)</Version>
<Copyright>Copyright © 2019-2022 DDON Team</Copyright>
</PropertyGroup>
<Import Project="./../SetSourceRevision.targets" />
<ItemGroup>
<ProjectReference Include="..\Arrowgene.Ddon.Client\Arrowgene.Ddon.Client.csproj" />
<ProjectReference Include="..\Arrowgene.Ddon.GameServer\Arrowgene.Ddon.GameServer.csproj" />
Expand All @@ -18,7 +19,7 @@
<ProjectReference Include="..\Arrowgene.Ddon.WebServer\Arrowgene.Ddon.WebServer.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Arrowgene.Logging" Version="1.1.2" />
<PackageReference Include="Arrowgene.Logging" Version="1.2.1" />
</ItemGroup>

</Project>
Loading

0 comments on commit 51d7728

Please sign in to comment.