mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 22:14:39 +02:00
Capitalized the DataObject class.
This commit is contained in:
parent
9097e557ed
commit
aae051d73f
53 changed files with 99 additions and 62 deletions
|
@ -21,7 +21,7 @@ along with Project Meteor Server. If not, see <https:www.gnu.org/licenses/>.
|
|||
|
||||
using MySql.Data.MySqlClient;
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class GuildleveData
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@ using MySql.Data.MySqlClient;
|
|||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class InventoryItem
|
||||
{
|
||||
|
|
|
@ -22,7 +22,7 @@ along with Project Meteor Server. If not, see <https:www.gnu.org/licenses/>.
|
|||
using MySql.Data.MySqlClient;
|
||||
using System;
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class ItemData
|
||||
{
|
||||
|
|
28
Map Server/DataObjects/QuestData.cs
Normal file
28
Map Server/DataObjects/QuestData.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class QuestData
|
||||
{
|
||||
public uint Id { get; }
|
||||
public string ClassName { get; }
|
||||
public string Name { get; }
|
||||
public uint PrerequisiteQuest { get; }
|
||||
public int MinLevel { get; }
|
||||
public int MinGCRank { get; }
|
||||
|
||||
public QuestData(uint id, string className, string name, uint prereq, int minLv, int minGcRank)
|
||||
{
|
||||
Id = id;
|
||||
ClassName = className;
|
||||
Name = Name;
|
||||
PrerequisiteQuest = prereq;
|
||||
MinLevel = minLv;
|
||||
MinGCRank = minGcRank;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@ along with Project Meteor Server. If not, see <https:www.gnu.org/licenses/>.
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class RecruitmentDetails
|
||||
{
|
||||
|
|
|
@ -19,7 +19,7 @@ along with Project Meteor Server. If not, see <https:www.gnu.org/licenses/>.
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class SeamlessBoundry
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ using System;
|
|||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class SearchEntry
|
||||
{
|
||||
|
|
|
@ -26,8 +26,9 @@ using Meteor.Map.packets.send.actor;
|
|||
using System.Collections.Generic;
|
||||
using Meteor.Map.actors.chara.npc;
|
||||
using static Meteor.Map.Actors.Quest;
|
||||
using static Meteor.Map.Actors.QuestState;
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class Session
|
||||
{
|
||||
|
@ -167,7 +168,7 @@ namespace Meteor.Map.dataobjects
|
|||
Quest[] quests = playerActor.GetQuestsForNpc(npc);
|
||||
if (quests.Length != 0)
|
||||
{
|
||||
ENpcQuestInstance questInstance = quests[0].GetENpcInstance(npc.GetActorClassId());
|
||||
QuestENpc questInstance = quests[0].GetQuestState().GetENpc(npc.GetActorClassId());
|
||||
QueuePacket(npc.GetSetEventStatusPackets());
|
||||
QueuePacket(SetActorQuestGraphicPacket.BuildPacket(npc.Id, questInstance.questFlagType));
|
||||
}
|
||||
|
@ -179,7 +180,7 @@ namespace Meteor.Map.dataobjects
|
|||
}
|
||||
}
|
||||
|
||||
public void UpdateQuestNpcInInstance(ENpcQuestInstance questInstance, bool clearInstance = false)
|
||||
public void UpdateQuestNpcInInstance(QuestENpc questInstance, bool clearInstance = false)
|
||||
{
|
||||
LockUpdates(true);
|
||||
Actor actor = actorInstanceList.Find(x => x is Npc npc && npc.GetActorClassId().Equals(questInstance.actorClassId));
|
||||
|
|
|
@ -19,6 +19,6 @@ along with Project Meteor Server. If not, see <https:www.gnu.org/licenses/>.
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ using System.Collections.Concurrent;
|
|||
using System.Net;
|
||||
using Meteor.Map.packets.WorldPackets.Send;
|
||||
|
||||
namespace Meteor.Map.dataobjects
|
||||
namespace Meteor.Map.DataObjects
|
||||
{
|
||||
class ZoneConnection
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue