-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from alborrajo/feature/chat
Feature/chat
- Loading branch information
Showing
14 changed files
with
336 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
|
||
{ | ||
// Use IntelliSense to find out which attributes exist for C# debugging | ||
// Use hover for the description of the existing attributes | ||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | ||
"name": ".NET Core Launch (console)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
// If you have changed target frameworks, make sure to update the program path. | ||
"program": "${workspaceFolder}/Arrowgene.Ddon.Cli/bin/Debug/netcoreapp3.0/Arrowgene.Ddon.Cli.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/Arrowgene.Ddon.Cli", | ||
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console | ||
"console": "internalConsole", | ||
"stopAtEntry": false | ||
}, | ||
{ | ||
"name": ".NET Core Attach", | ||
"type": "coreclr", | ||
"request": "attach" | ||
}, | ||
{ | ||
// Use IntelliSense to find out which attributes exist for C# debugging | ||
// Use hover for the description of the existing attributes | ||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md | ||
"name": "DDOn Server Start", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
// If you have changed target frameworks, make sure to update the program path. | ||
"program": "${workspaceFolder}/Arrowgene.Ddon.Cli/bin/Debug/netcoreapp3.0/Arrowgene.Ddon.Cli.dll", | ||
"args": ["server", "start"], | ||
"cwd": "${workspaceFolder}/Arrowgene.Ddon.Cli", | ||
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console | ||
"console": "integratedTerminal", | ||
"stopAtEntry": false, | ||
"logging": { | ||
"moduleLoad": false | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/Arrowgene.Ddon.Cli/Arrowgene.Ddon.Cli.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/Arrowgene.Ddon.Cli/Arrowgene.Ddon.Cli.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "watch", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"watch", | ||
"run", | ||
"${workspaceFolder}/Arrowgene.Ddon.Cli/Arrowgene.Ddon.Cli.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
Arrowgene.Ddon.Shared/Entity/Structure/CDataLobbyChatMsgNotice.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using Arrowgene.Buffers; | ||
|
||
namespace Arrowgene.Ddon.Shared.Entity.Structure | ||
{ | ||
public class CDataLobbyChatMsgNotice { | ||
|
||
// Unidentified variables from the PS4 version: | ||
// ucType (u8) (use CDataLobbyChatMsgType when identified) | ||
// unHandleId (u32) | ||
|
||
public CDataLobbyChatMsgNotice() { | ||
unk0 = 0; | ||
unk1 = 0; | ||
characterBaseInfo = new CDataLobbyChatMsgNoticeCharacterBaseInfo(); | ||
unk2 = 0; | ||
unk3 = 0; | ||
unk4 = 0; | ||
strMessage = string.Empty; | ||
} | ||
|
||
public byte unk0; | ||
public uint unk1; | ||
public CDataLobbyChatMsgNoticeCharacterBaseInfo characterBaseInfo; | ||
public byte unk2; | ||
public uint unk3; | ||
public uint unk4; | ||
public string strMessage; | ||
} | ||
|
||
public class CDataLobbyChatMsgNoticeSerializer : EntitySerializer<CDataLobbyChatMsgNotice> { | ||
public override void Write(IBuffer buffer, CDataLobbyChatMsgNotice obj) | ||
{ | ||
WriteByte(buffer, obj.unk0); | ||
WriteUInt32(buffer, obj.unk1); | ||
WriteEntity<CDataLobbyChatMsgNoticeCharacterBaseInfo>(buffer, obj.characterBaseInfo); | ||
WriteByte(buffer, obj.unk2); | ||
WriteUInt32(buffer, obj.unk3); | ||
WriteUInt32(buffer, obj.unk4); | ||
WriteMtString(buffer, obj.strMessage); | ||
} | ||
|
||
public override CDataLobbyChatMsgNotice Read(IBuffer buffer) | ||
{ | ||
CDataLobbyChatMsgNotice obj = new CDataLobbyChatMsgNotice(); | ||
obj.unk0 = ReadByte(buffer); | ||
obj.unk1 = ReadUInt32(buffer); | ||
obj.characterBaseInfo = ReadEntity<CDataLobbyChatMsgNoticeCharacterBaseInfo>(buffer); | ||
obj.unk2 = ReadByte(buffer); | ||
obj.unk3 = ReadUInt32(buffer); | ||
obj.unk4 = ReadUInt32(buffer); | ||
obj.strMessage = ReadMtString(buffer); | ||
return obj; | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
Arrowgene.Ddon.Shared/Entity/Structure/CDataLobbyChatMsgNoticeCharacter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Arrowgene.Buffers; | ||
|
||
namespace Arrowgene.Ddon.Shared.Entity.Structure | ||
{ | ||
public class CDataLobbyChatMsgNoticeCharacterBaseInfo | ||
{ | ||
public CDataLobbyChatMsgNoticeCharacterBaseInfo() | ||
{ | ||
characterId = 0; | ||
strFirstName = string.Empty; | ||
strLastName = string.Empty; | ||
strClanName = string.Empty; | ||
} | ||
|
||
public uint characterId; | ||
public string strFirstName; | ||
public string strLastName; | ||
public string strClanName; | ||
} | ||
|
||
public class CDataLobbyChatMsgNoticeCharacterSerializer : EntitySerializer<CDataLobbyChatMsgNoticeCharacterBaseInfo> { | ||
public override void Write(IBuffer buffer, CDataLobbyChatMsgNoticeCharacterBaseInfo obj) | ||
{ | ||
WriteUInt32(buffer, obj.characterId); | ||
WriteMtString(buffer, obj.strFirstName); | ||
WriteMtString(buffer, obj.strLastName); | ||
WriteMtString(buffer, obj.strClanName); | ||
} | ||
|
||
public override CDataLobbyChatMsgNoticeCharacterBaseInfo Read(IBuffer buffer) | ||
{ | ||
CDataLobbyChatMsgNoticeCharacterBaseInfo obj = new CDataLobbyChatMsgNoticeCharacterBaseInfo(); | ||
obj.characterId = ReadByte(buffer); | ||
obj.strFirstName = ReadMtString(buffer); | ||
obj.strLastName = ReadMtString(buffer); | ||
obj.strClanName = ReadMtString(buffer); | ||
return obj; | ||
} | ||
} | ||
} |
Oops, something went wrong.