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.
This commit is contained in:
parent
4110556e89
commit
47e16a03fe
14 changed files with 207 additions and 309 deletions
|
|
@ -0,0 +1,46 @@
|
|||
using Server.Accounting;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Engines.CharacterCreation;
|
||||
|
||||
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;
|
||||
}
|
||||
1352
Projects/UOContent/Engines/Character Creation/CharacterCreation.cs
Normal file
1352
Projects/UOContent/Engines/Character Creation/CharacterCreation.cs
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue