Optimizations
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Jovian.EncounterSystem {
|
||||
public enum QuestLogEventType {
|
||||
@@ -46,9 +45,12 @@ namespace Jovian.EncounterSystem {
|
||||
}
|
||||
|
||||
public IEnumerable<string> ResolvedEncounterIds() {
|
||||
return entries
|
||||
.Select(entry => entry.encounterInternalId)
|
||||
.Where(id => !string.IsNullOrEmpty(id));
|
||||
for(int i = 0; i < entries.Count; i++) {
|
||||
var id = entries[i].encounterInternalId;
|
||||
if(!string.IsNullOrEmpty(id)) {
|
||||
yield return id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Record(QuestLogEventType type, IEncounter from, IEncounter to) {
|
||||
|
||||
Reference in New Issue
Block a user