Implementing zone settings from DB.

This commit is contained in:
Filip Maj 2016-01-17 01:51:02 -05:00
parent 9d67718060
commit 0e85e2bddf
3 changed files with 58 additions and 3 deletions

View file

@ -25,7 +25,8 @@ namespace FFXIVClassic_Map_Server
private int halfWidth, halfHeight;
private List<Actor>[,] actorBlock;
public Zone(uint id, string zoneName, ushort regionId, bool canStealth, bool isInn, bool canRideChocobo, bool isInstanceRaid) : base(id)
public Zone(uint id, string zoneName, ushort regionId, ushort bgmDay, ushort bgmNight, ushort bgmBattle, bool canStealth, bool isInn, bool canRideChocobo, bool isInstanceRaid)
: base(id)
{
this.zoneName = zoneName;
@ -35,6 +36,10 @@ namespace FFXIVClassic_Map_Server
this.canRideChocobo = canRideChocobo;
this.isInstanceRaid = isInstanceRaid;
this.bgmDay = bgmDay;
this.bgmNight = bgmNight;
this.bgmBattle = bgmBattle;
this.displayNameId = 0;
this.customDisplayName = "_areaMaster";
this.actorName = String.Format("_areaMaster@{0:X5}",id<<8);