Added a load player character function to the database class. As I went through, changed the various properties to their correct datatype. Also added Work object to Character.

This commit is contained in:
Filip Maj
2016-01-09 23:22:10 -05:00
parent c9f35a207b
commit 4dec77aa69
8 changed files with 353 additions and 16 deletions

View File

@@ -5,6 +5,7 @@ using FFXIVClassic_Lobby_Server.packets;
using FFXIVClassic_Map_Server.dataobjects.database;
using FFXIVClassic_Map_Server.lua;
using FFXIVClassic_Map_Server.packets.send.actor;
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -39,6 +40,20 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
public uint[] timers = new uint[20];
public uint currentTitle;
public byte gcCurrent;
public byte gcRankLimsa;
public byte gcRankGridania;
public byte gcRankUldah;
public bool hasChocobo;
public bool hasGoobbue;
public byte chocoboAppearance;
public string chocoboName;
public uint achievementPoints;
PlayerWork playerWork = new PlayerWork();
public Player(uint actorID) : base(actorID)
@@ -150,6 +165,9 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
public bool isMyPlayer(uint otherActorId)
{
return actorId == otherActorId;
}
}
}
}