-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Moves network related events to UOContent using code generation (…
…#1945) ### Summary - Moves `CharacterCreated` event to UOContent using code generated event _CharacterCreatedEvent_. - Moves `TargetByResourceMacro` event to UOContent using code generated event _TargetByResourceMacro_. - Moves `GameLogin` event to UOContent using code generated event _GameLoginEvent_. - Moves `ServerList` event to UOContent using code generated event _ServerListEvent_. - Streamlines ProfessionInfo > [!IMPORTANT] > **Developer Note** > Custom scripts that use any of these event sinks will need to be updated to use the new code generated events.
- Loading branch information
1 parent
4110556
commit 47e16a0
Showing
14 changed files
with
208 additions
and
310 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
46 changes: 46 additions & 0 deletions
46
Projects/UOContent/Engines/Character Creation/CharacterCreatedEvent.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,46 @@ | ||
using Server.Accounting; | ||
using Server.Network; | ||
|
||
namespace Server.Engines.CharacterCreation; | ||
Check notice on line 4 in Projects/UOContent/Engines/Character Creation/CharacterCreatedEvent.cs GitHub Actions / Qodana for .NETNamespace does not correspond to file location
|
||
|
||
public class CharacterCreatedEventArgs( | ||
NetState state, IAccount a, string name, bool female, | ||
int hue, byte[] stats, CityInfo city, (SkillName, byte)[] skills, | ||
int shirtHue, int pantsHue, int hairId, int hairHue, | ||
int beardId, int beardHue, int profession, Race race | ||
) | ||
{ | ||
public NetState State { get; } = state; | ||
|
||
public IAccount Account { get; } = a; | ||
|
||
public Mobile Mobile { get; set; } | ||
|
||
public string Name { get; } = name; | ||
|
||
public bool Female { get; } = female; | ||
|
||
public int Hue { get; } = hue; | ||
|
||
public byte[] Stats { get; } = stats; | ||
|
||
public CityInfo City { get; } = city; | ||
|
||
public (SkillName, byte)[] Skills { get; } = skills; | ||
|
||
public int ShirtHue { get; } = shirtHue; | ||
|
||
public int PantsHue { get; } = pantsHue; | ||
|
||
public int HairID { get; } = hairId; | ||
|
||
public int HairHue { get; } = hairHue; | ||
|
||
public int BeardID { get; } = beardId; | ||
|
||
public int BeardHue { get; } = beardHue; | ||
|
||
public int Profession { get; set; } = profession; | ||
|
||
public Race Race { get; } = race; | ||
} |
Oops, something went wrong.