ModernUO/Projects/UOContent/Engines/ML Quests/MLQuestPackets.cs
Kamron Batman b4b1b0b122
fix(core): Converts more packets and switches to Moq (#415)
- [X] Switches testing to moq for mocking
- [X] Converts race changer packets
- [X] Renames some more folders and misc cleanup
2021-01-16 22:09:05 -08:00

32 lines
1.5 KiB
C#

/*************************************************************************
* ModernUO *
* Copyright (C) 2019-2021 - ModernUO Development Team *
* Email: hi@modernuo.com *
* File: MLQuestPackets.cs *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*************************************************************************/
using Server.Network;
namespace Server.Engines.MLQuests
{
public static class MLQuestPackets
{
public static unsafe void SendRaceChanger(this NetState ns, bool female, Race newRace)
{
ns?.Send(stackalloc byte[] { 0xBF, 0x00, 0x07, 0x00, 0x2A, *(byte*)&female, (byte)(newRace.RaceID + 1) });
}
public static void SendCloseRaceChanger(this NetState ns)
{
ns?.Send(stackalloc byte[] { 0xBF, 0x00, 0x07, 0x00, 0x2A, 0x0, 0xFF });
}
}
}