ModernUO/Projects/UOContent/Engines/ML Quests
Kamron Batman 10a69bf754
feat: Adds a memory mirrored ring buffer for networking. (#1533)
## Breaking Changes

Incoming packet registration signature has changed to:
```cs
delegate* void OnReceiveCallback(NetState state, SpanReader reader, int packetLength);

IncomingPackets.Register(int packetID, int length, bool ingame, OnReceiveCallback onReceive);
```

For example, an incoming packet handler signature would now look like this:
```cs
public static void SomeIncomingPacket(NetState state, SpanReader reader, int packetLength)
{
    // Parse the data
}
```

## Summary

Updates the network Pipe class to use a mirrored memory technique. This technique involves mapping the same physical memory to two contiguous virtual memory spaces so the byte buffer appears duplicated. This allows writing to a double-sized array to wrap around without the need for the `CircularBuffer` classes.

In practice this allows us to use `Span<byte>` as if the buffer was a regular array.


### Bug Fixes

- [X] Fixes bad fixed length string parsing
2023-10-09 00:57:53 -07:00
..
Definitions fix: Optimizes TextDefinition to eliminate allocations. Removes TextDefinition ctor. (#1221) 2022-10-30 16:53:23 -07:00
Gumps feat: Adds a memory mirrored ring buffer for networking. (#1533) 2023-10-09 00:57:53 -07:00
Items fix: Codegens ML Quest items (#1522) 2023-09-30 00:46:07 -07:00
Mobiles fix: Fixes crafter deserialize, cleans up bandages, and codegens misc items (#1350) 2023-02-25 00:54:12 -08:00
Objectives fix: Cleans up FindItems and removes allocations (#1516) 2023-09-28 22:20:36 -07:00
Rewards fix: Optimizes TextDefinition to eliminate allocations. Removes TextDefinition ctor. (#1221) 2022-10-30 16:53:23 -07:00
IQuestGiver.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00
MLQuest.cs fix: Optimizes TextDefinition to eliminate allocations. Removes TextDefinition ctor. (#1221) 2022-10-30 16:53:23 -07:00
MLQuestContext.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00
MLQuestEntry.cs feat: Adds TextDefinition serialization support. (#1217) 2022-10-30 01:42:48 -07:00
MLQuestPackets.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
MLQuestPersistence.cs fix: Fixes NPE in champ titles (#1434) 2023-07-28 00:39:10 -07:00
MLQuestSystem.cs fix: Cleans up murder system (#1428) 2023-07-16 00:04:30 -07:00
QuestArea.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00
QuesterNameAttribute.cs fix(core): Converts more packets and switches to Moq (#415) 2021-01-16 22:09:05 -08:00