forked from ZaneDubya/UltimaXNA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ZaneDubya#451 from ZaneDubya/msx752-Party-System
Based on @msx752's party system (PR ZaneDubya#400). Adds party system to Ultima.Player.PlayerState instance. New gumps: party gump, party status gump. Addresses issues ZaneDubya#421, ZaneDubya#330, parts of ZaneDubya#313, possibly others?
- Loading branch information
Showing
55 changed files
with
1,710 additions
and
755 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ public enum ChatMode { | |
Whisper, | ||
Emote, | ||
Party, | ||
PartyPrivate, | ||
Guild, | ||
Alliance | ||
} | ||
|
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
22 changes: 22 additions & 0 deletions
22
dev/Ultima/Network/Client/Extensions/GuildLocationQueryPacket.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,22 @@ | ||
/*************************************************************************** | ||
* GuildLocationQueryPacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Extensions { | ||
/// <summary> | ||
/// MapUO Protocol: Requests the position of all guild members. | ||
/// </summary> | ||
public class GuildLocationQueryPacket : SendPacket { | ||
public GuildLocationQueryPacket() | ||
: base(0xF0, "Query Guild Member Locations") { | ||
Stream.Write((byte)0); | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
dev/Ultima/Network/Client/Extensions/PartyLocationQueryPacket.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,22 @@ | ||
/*************************************************************************** | ||
* PartyLocationQueryPacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Extensions { | ||
/// <summary> | ||
/// MapUO Protocol: Requests the position of all party members. | ||
/// </summary> | ||
public class PartyLocationQueryPacket : SendPacket { | ||
public PartyLocationQueryPacket() | ||
: base(0xF0, "Query Party Member Locations") { | ||
Stream.Write((byte)0); | ||
} | ||
} | ||
} |
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,21 @@ | ||
/*************************************************************************** | ||
* PartyAcceptPacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
public class PartyAcceptPacket : SendPacket { | ||
public PartyAcceptPacket(Serial invitingPartyLeader) | ||
: base(0xbf, "Party Join Accept") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)8); | ||
Stream.Write(invitingPartyLeader); | ||
} | ||
} | ||
} |
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,21 @@ | ||
/*************************************************************************** | ||
* PartyDeclinePacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
public class PartyDeclinePacket : SendPacket { | ||
public PartyDeclinePacket(Serial invitingPartyLeader) | ||
: base(0xbf, "Party Join Decline") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)9); | ||
Stream.Write(invitingPartyLeader); | ||
} | ||
} | ||
} |
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,22 @@ | ||
/*************************************************************************** | ||
* PartyLeavePacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
using UltimaXNA.Ultima.World; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
public class PartyLeavePacket : SendPacket { | ||
public PartyLeavePacket() | ||
: base(0xbf, "Leave Party") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)2); | ||
Stream.Write(WorldModel.PlayerSerial); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
dev/Ultima/Network/Client/Partying/PartyLootEnablePacket.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,21 @@ | ||
/*************************************************************************** | ||
* PartyCanLootPacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
class PartyCanLootPacket : SendPacket { | ||
public PartyCanLootPacket(bool isLootable) | ||
: base(0xbf, "Party Can Loot") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)6); | ||
Stream.Write(isLootable); | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
dev/Ultima/Network/Client/Partying/PartyPrivateMessagePacket.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,22 @@ | ||
/*************************************************************************** | ||
* PartyPrivateMessagePacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
public class PartyPrivateMessagePacket : SendPacket { | ||
public PartyPrivateMessagePacket(Serial memberSerial, string msg) | ||
: base(0xbf, "Private Party Message") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)3); | ||
Stream.Write(memberSerial); | ||
Stream.WriteBigUniNull(msg); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
dev/Ultima/Network/Client/Partying/PartyPublicMessagePacket.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,21 @@ | ||
/*************************************************************************** | ||
* PartyPublicMessagePacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
public class PartyPublicMessagePacket : SendPacket { | ||
public PartyPublicMessagePacket(string msg) | ||
: base(0xbf, "Public Party Message") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)4); | ||
Stream.WriteBigUniNull(msg); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
dev/Ultima/Network/Client/Partying/PartyRemoveMemberPacket.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,21 @@ | ||
/*************************************************************************** | ||
* PartyRemoveMemberPacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
public class PartyRemoveMemberPacket : SendPacket { | ||
public PartyRemoveMemberPacket(Serial serial) | ||
: base(0xbf, "Remove Party Member") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)2); | ||
Stream.Write(serial); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
dev/Ultima/Network/Client/Partying/PartyRequestAddTargetPacket.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,21 @@ | ||
/*************************************************************************** | ||
* PartyRequestAddTargetPacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
class PartyRequestAddTargetPacket : SendPacket { | ||
public PartyRequestAddTargetPacket() | ||
: base(0xbf, "Add Party Member") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)1); | ||
Stream.Write(0); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
dev/Ultima/Network/Client/Partying/PartyRequestRemoveTargetPacket.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,21 @@ | ||
/*************************************************************************** | ||
* PartyRequestRemoveTargetPacket.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. | ||
* | ||
***************************************************************************/ | ||
using UltimaXNA.Core.Network.Packets; | ||
|
||
namespace UltimaXNA.Ultima.Network.Client.Partying { | ||
public class PartyRequestRemoveTargetPacket : SendPacket { | ||
public PartyRequestRemoveTargetPacket() | ||
: base(0xbf, "Remove Party Member") { | ||
Stream.Write((short)6); | ||
Stream.Write((byte)2); | ||
Stream.Write(0); | ||
} | ||
} | ||
} |
Oops, something went wrong.