-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add InGuild ReadOnly property to ICharacterProvider * Add GuildEventNotifer and Subscriber * Add GuildReply handler * Add GuildTake handler * Add Dialog and Resource IDs * Provider MessageBoxFactory and GuildSessionProvider to dialog * Add Get/Set GuildDescription to GuildActions * Add GuildDescription to GuildSessionRepository * Add Modify guild state Looks up guild description Added modify description box that updates description * Make link underlined and remove `*` from start of line * cleanup * remove InGuild * Fix back action * formatting * Refactor from PR * Change list style to `Small` for modify state * Fix code formatting violations * Modify state transition mechanism to use well-named static instances of State class with more explicit default values --------- Co-authored-by: Ethan Moffat <ethan@moffat.io>
- Loading branch information
1 parent
32b10d8
commit 3e09fb0
Showing
11 changed files
with
384 additions
and
178 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using AutomaticTypeMapper; | ||
using EOLib.Domain.Interact; | ||
using EOLib.Domain.Interact.Guild; | ||
using EOLib.Domain.Login; | ||
using EOLib.Domain.Map; | ||
using EOLib.Net.Handlers; | ||
using Moffat.EndlessOnline.SDK.Protocol.Net; | ||
using Moffat.EndlessOnline.SDK.Protocol.Net.Server; | ||
using Optional; | ||
using System.Collections.Generic; | ||
|
||
namespace EOLib.PacketHandlers.Guild | ||
{ | ||
[AutoMappedType] | ||
|
||
public class GuildTakeHandler : InGameOnlyPacketHandler<GuildTakeServerPacket> | ||
{ | ||
private readonly IGuildSessionRepository _guildSessionRepository; | ||
|
||
public override PacketFamily Family => PacketFamily.Guild; | ||
|
||
public override PacketAction Action => PacketAction.Take; | ||
|
||
public GuildTakeHandler(IPlayerInfoProvider playerInfoProvider, | ||
IGuildSessionRepository guildSessionRepository) | ||
: base(playerInfoProvider) | ||
{ | ||
_guildSessionRepository = guildSessionRepository; | ||
} | ||
|
||
public override bool HandlePacket(GuildTakeServerPacket packet) | ||
{ | ||
_guildSessionRepository.GuildDescription = packet.Description; | ||
|
||
return true; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.