mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-23 11:05:56 +02:00
Added all the base code for managing world-scope groups.
This commit is contained in:
parent
09e1e31e79
commit
31b13300ac
20 changed files with 940 additions and 4 deletions
18
FFXIVClassic World Server/DataObjects/Group/Group.cs
Normal file
18
FFXIVClassic World Server/DataObjects/Group/Group.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_World_Server.DataObjects.Group
|
||||
{
|
||||
class Group
|
||||
{
|
||||
public readonly ulong groupIndex;
|
||||
|
||||
public Group(ulong groupIndex)
|
||||
{
|
||||
this.groupIndex = groupIndex;
|
||||
}
|
||||
}
|
||||
}
|
28
FFXIVClassic World Server/DataObjects/Group/Linkshell.cs
Normal file
28
FFXIVClassic World Server/DataObjects/Group/Linkshell.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_World_Server.DataObjects.Group
|
||||
{
|
||||
class Linkshell : Group
|
||||
{
|
||||
public ulong dbId;
|
||||
public string name;
|
||||
public ushort crestId;
|
||||
public uint master;
|
||||
public ushort rank;
|
||||
|
||||
public Dictionary<ulong, LinkshellMember> members = new Dictionary<ulong, LinkshellMember>();
|
||||
|
||||
public Linkshell(ulong dbId, ulong groupIndex, string name, ushort crestId, uint master, ushort rank) : base(groupIndex)
|
||||
{
|
||||
this.dbId = dbId;
|
||||
this.name = name;
|
||||
this.crestId = crestId;
|
||||
this.master = master;
|
||||
this.rank = rank;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_World_Server.DataObjects.Group
|
||||
{
|
||||
class LinkshellMember
|
||||
{
|
||||
public readonly uint charaId;
|
||||
public readonly ulong lsId;
|
||||
public readonly ushort slot;
|
||||
public readonly ushort rank;
|
||||
|
||||
public LinkshellMember(uint charaId, ulong lsId, ushort slot, ushort rank)
|
||||
{
|
||||
this.charaId = charaId;
|
||||
this.lsId = lsId;
|
||||
this.slot = slot;
|
||||
this.rank = rank;
|
||||
}
|
||||
}
|
||||
}
|
19
FFXIVClassic World Server/DataObjects/Group/Party.cs
Normal file
19
FFXIVClassic World Server/DataObjects/Group/Party.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_World_Server.DataObjects.Group
|
||||
{
|
||||
class Party : Group
|
||||
{
|
||||
public uint leader;
|
||||
public List<uint> members = new List<uint>();
|
||||
|
||||
public Party(ulong groupId, uint leaderCharaId) : base(groupId)
|
||||
{
|
||||
this.leader = leaderCharaId;
|
||||
}
|
||||
}
|
||||
}
|
21
FFXIVClassic World Server/DataObjects/Group/Relation.cs
Normal file
21
FFXIVClassic World Server/DataObjects/Group/Relation.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_World_Server.DataObjects.Group
|
||||
{
|
||||
class Relation : Group
|
||||
{
|
||||
public uint charaHost, charaOther;
|
||||
public uint command;
|
||||
|
||||
public Relation(ulong groupIndex, uint host, uint other, uint command) : base (groupIndex)
|
||||
{
|
||||
this.charaHost = host;
|
||||
this.charaOther = other;
|
||||
this.command = command;
|
||||
}
|
||||
}
|
||||
}
|
19
FFXIVClassic World Server/DataObjects/Group/RetainerGroup.cs
Normal file
19
FFXIVClassic World Server/DataObjects/Group/RetainerGroup.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_World_Server.DataObjects.Group
|
||||
{
|
||||
class RetainerGroup : Group
|
||||
{
|
||||
public uint owner;
|
||||
public Dictionary<uint, RetainerGroupMember> members = new Dictionary<uint, RetainerGroupMember>();
|
||||
|
||||
public RetainerGroup(ulong groupId, uint owner) : base(groupId)
|
||||
{
|
||||
this.owner = owner;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FFXIVClassic_World_Server.DataObjects.Group
|
||||
{
|
||||
class RetainerGroupMember
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue