mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 22:14:39 +02:00
Renamed Item dataobject to ItemData. Added guildleve data.
This commit is contained in:
parent
44a76c94af
commit
2d7d10a417
12 changed files with 806 additions and 22 deletions
|
@ -27,7 +27,8 @@ namespace FFXIVClassic_Map_Server
|
|||
private static CommandProcessor mCommandProcessor = new CommandProcessor();
|
||||
private static ZoneConnection mWorldConnection = new ZoneConnection();
|
||||
private static WorldManager mWorldManager;
|
||||
private static Dictionary<uint, Item> mGamedataItems;
|
||||
private static Dictionary<uint, ItemData> mGamedataItems;
|
||||
private static Dictionary<uint, GuildleveData> mGamedataGuildleves;
|
||||
private static StaticActors mStaticActors;
|
||||
|
||||
private PacketProcessor mProcessor;
|
||||
|
@ -43,6 +44,8 @@ namespace FFXIVClassic_Map_Server
|
|||
|
||||
mGamedataItems = Database.GetItemGamedata();
|
||||
Program.Log.Info("Loaded {0} items.", mGamedataItems.Count);
|
||||
mGamedataGuildleves = Database.GetGuildleveGamedata();
|
||||
Program.Log.Info("Loaded {0} guildleves.", mGamedataGuildleves.Count);
|
||||
|
||||
mWorldManager = new WorldManager(this);
|
||||
mWorldManager.LoadZoneList();
|
||||
|
@ -267,7 +270,7 @@ namespace FFXIVClassic_Map_Server
|
|||
return mWorldManager;
|
||||
}
|
||||
|
||||
public static Dictionary<uint, Item> GetGamedataItems()
|
||||
public static Dictionary<uint, ItemData> GetGamedataItems()
|
||||
{
|
||||
return mGamedataItems;
|
||||
}
|
||||
|
@ -282,7 +285,7 @@ namespace FFXIVClassic_Map_Server
|
|||
return mStaticActors.FindStaticActor(name);
|
||||
}
|
||||
|
||||
public static Item GetItemGamedata(uint id)
|
||||
public static ItemData GetItemGamedata(uint id)
|
||||
{
|
||||
if (mGamedataItems.ContainsKey(id))
|
||||
return mGamedataItems[id];
|
||||
|
@ -290,5 +293,13 @@ namespace FFXIVClassic_Map_Server
|
|||
return null;
|
||||
}
|
||||
|
||||
public static GuildleveData GetGuildleveGamedata(uint id)
|
||||
{
|
||||
if (mGamedataGuildleves.ContainsKey(id))
|
||||
return mGamedataGuildleves[id];
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue