15 lines
306 B
C++
15 lines
306 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "NpcDatabase.h"
|
|
|
|
bool UNpcDatabase::FindNpc(FName NpcID, FNpc& Npc) {
|
|
for(int i = 0; i < AllNpcData.Num(); i++) {
|
|
if(AllNpcData[i].NpcID == NpcID) {
|
|
Npc = AllNpcData[i];
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|