-
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.
- Loading branch information
1 parent
eea2af9
commit 88d10a8
Showing
14 changed files
with
3,972 additions
and
19 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
Arrowgene.Ddon.GameServer/Handler/CharacterDecideCharacterIdHandler.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,25 @@ | ||
using Arrowgene.Buffers; | ||
using Arrowgene.Ddon.GameServer.Dump; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class CharacterDecideCharacterIdHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(CharacterDecideCharacterIdHandler)); | ||
|
||
|
||
public CharacterDecideCharacterIdHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_CHARACTER_DECIDE_CHARACTER_ID_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
client.Send(GameDump.Dump_13); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Arrowgene.Ddon.GameServer/Handler/ConnectionLoginHandler.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,24 @@ | ||
using Arrowgene.Ddon.GameServer.Dump; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class ConnectionLoginHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(ConnectionLoginHandler)); | ||
|
||
|
||
public ConnectionLoginHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_CONNECTION_LOGIN_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
client.Send(GameDump.Dump_4); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Arrowgene.Ddon.GameServer/Handler/ConnectionMoveOutServerHandler.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,24 @@ | ||
using Arrowgene.Ddon.GameServer.Dump; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class ConnectionMoveOutServerHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(ConnectionMoveOutServerHandler)); | ||
|
||
|
||
public ConnectionMoveOutServerHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_CONNECTION_MOVE_OUT_SERVER_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
client.Send(GameDump.Dump_29); | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
Arrowgene.Ddon.GameServer/Handler/ConnectionPingHandler.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,28 @@ | ||
using Arrowgene.Buffers; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class ConnectionPingHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(ConnectionPingHandler)); | ||
|
||
|
||
public ConnectionPingHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_CONNECTION_PING_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
IBuffer buffer = new StreamBuffer(); | ||
buffer.WriteUInt32(0, Endianness.Big); | ||
buffer.WriteUInt32(0, Endianness.Big); | ||
buffer.WriteBytes(new byte[15]); | ||
client.Send(new Packet(PacketId.S2C_CONNECTION_PING_RES, buffer.GetAllBytes(), PacketSource.Server)); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Arrowgene.Ddon.GameServer/Handler/LoadingInfoLoadingGetInfoHandler.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,24 @@ | ||
using Arrowgene.Ddon.GameServer.Dump; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class LoadingInfoLoadingGetInfoHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(LoadingInfoLoadingGetInfoHandler)); | ||
|
||
|
||
public LoadingInfoLoadingGetInfoHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_LOADING_INFO_LOADING_GET_INFO_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
client.Send(GameDump.Dump_21); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Arrowgene.Ddon.GameServer/Handler/ServerGetGameSettingHandler.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,24 @@ | ||
using Arrowgene.Ddon.GameServer.Dump; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class ServerGetGameSettingHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(ServerGetGameSettingHandler)); | ||
|
||
|
||
public ServerGetGameSettingHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_SERVER_GET_GAME_SETTING_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
client.Send(GameDump.Dump_10); | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
Arrowgene.Ddon.GameServer/Handler/ServerGetRealTimeHandler.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,28 @@ | ||
using Arrowgene.Buffers; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class ServerGetRealTimeHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(ServerGetRealTimeHandler)); | ||
|
||
|
||
public ServerGetRealTimeHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_SERVER_GET_REAL_TIME_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
IBuffer buffer = new StreamBuffer(); | ||
buffer.WriteUInt32(0, Endianness.Big); | ||
buffer.WriteUInt32(0, Endianness.Big); | ||
buffer.WriteBytes(new byte[15]); | ||
client.Send(new Packet(PacketId.S2C_SERVER_GET_REAL_TIME_RES, buffer.GetAllBytes(), PacketSource.Server)); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Arrowgene.Ddon.GameServer/Handler/ServerGetServerListHandler.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,24 @@ | ||
using Arrowgene.Ddon.GameServer.Dump; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class ServerGetServerListHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(ServerGetServerListHandler)); | ||
|
||
|
||
public ServerGetServerListHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_SERVER_GET_SERVER_LIST_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
client.Send(GameDump.Dump_23); | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
Arrowgene.Ddon.GameServer/Handler/StageGetStageListHandler.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,24 @@ | ||
using Arrowgene.Ddon.GameServer.Dump; | ||
using Arrowgene.Ddon.Server.Logging; | ||
using Arrowgene.Ddon.Server.Network; | ||
using Arrowgene.Logging; | ||
|
||
namespace Arrowgene.Ddon.GameServer.Handler | ||
{ | ||
public class StageGetStageListHandler : PacketHandler<GameClient> | ||
{ | ||
private static readonly DdonLogger Logger = LogProvider.Logger<DdonLogger>(typeof(StageGetStageListHandler)); | ||
|
||
|
||
public StageGetStageListHandler(DdonGameServer server) : base(server) | ||
{ | ||
} | ||
|
||
public override PacketId Id => PacketId.C2S_STAGE_GET_STAGE_LIST_REQ; | ||
|
||
public override void Handle(GameClient client, Packet packet) | ||
{ | ||
client.Send(GameDump.Dump_19); | ||
} | ||
} | ||
} |
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