Added all the base code for managing world-scope groups.

This commit is contained in:
Filip Maj 2016-12-12 19:03:25 -05:00
parent 09e1e31e79
commit 31b13300ac
20 changed files with 940 additions and 4 deletions

View 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;
}
}
}

View 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;
}
}
}

View file

@ -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;
}
}
}

View 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;
}
}
}

View 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;
}
}
}

View 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;
}
}
}

View file

@ -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
{
}
}