mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 06:24:38 +02:00
Push command loading implemented.
This commit is contained in:
parent
9bc3fc8dd7
commit
fb1d22d731
4 changed files with 31 additions and 6 deletions
|
@ -271,8 +271,13 @@ namespace FFXIVClassic_Map_Server
|
|||
classPath,
|
||||
displayNameId,
|
||||
propertyFlags,
|
||||
eventConditions
|
||||
eventConditions,
|
||||
pushCommand,
|
||||
pushCommandSub,
|
||||
pushCommandPriority
|
||||
FROM gamedata_actor_class
|
||||
LEFT JOIN gamedata_actor_pushcommand
|
||||
ON gamedata_actor_class.id = gamedata_actor_pushcommand.id
|
||||
WHERE classPath <> ''
|
||||
";
|
||||
|
||||
|
@ -294,7 +299,18 @@ namespace FFXIVClassic_Map_Server
|
|||
else
|
||||
eventConditions = "{}";
|
||||
|
||||
ActorClass actorClass = new ActorClass(id, classPath, nameId, propertyFlags, eventConditions);
|
||||
ushort pushCommand = 0;
|
||||
ushort pushCommandSub = 0;
|
||||
byte pushCommandPriority = 0;
|
||||
|
||||
if (!reader.IsDBNull(reader.GetOrdinal("pushCommand")))
|
||||
{
|
||||
pushCommand = reader.GetUInt16("pushCommand");
|
||||
pushCommandSub = reader.GetUInt16("pushCommandSub");
|
||||
pushCommandPriority = reader.GetByte("pushCommandPriority");
|
||||
}
|
||||
|
||||
ActorClass actorClass = new ActorClass(id, classPath, nameId, propertyFlags, eventConditions, pushCommand, pushCommandSub, pushCommandPriority);
|
||||
actorClasses.Add(id, actorClass);
|
||||
count++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue