/// <summary> /// Returns all NPCTypeHandlers for the given NPCPrototype /// </summary> public static NPCTypeHandler[] GetNPCTypeHandlers(NPCEntry entry) { NPCTypeHandler[] npcTypeHandlerArray = new NPCTypeHandler[entry.SetFlagIndices.Length]; for (int index = 0; index < npcTypeHandlerArray.Length; ++index) { npcTypeHandlerArray[index] = NPCMgr.NPCTypeHandlers[entry.SetFlagIndices[index]]; } return(npcTypeHandlerArray); }
/// <summary> /// Returns all NPCTypeHandlers for the given NPCPrototype /// </summary> public static NPCTypeHandler[] GetNPCTypeHandlers(NPCEntry entry) { var handlers = new NPCTypeHandler[entry.SetFlagIndices.Length]; for (var i = 0; i < handlers.Length; i++) { handlers[i] = NPCTypeHandlers[entry.SetFlagIndices[i]]; } return(handlers); }