Package com.jackdaw.chatwithnpc.npc
Class NPCDataManager
java.lang.Object
com.jackdaw.chatwithnpc.npc.NPCDataManager
A serializer used to read or write the data from the files.
This data is related to the NPC's chat content.
Read or Write the data file with some information, each file just record one relative information.
-
Method Summary
-
Method Details
-
isExist
public boolean isExist()Check if the file is existed.- Returns:
- true if the file is existed, otherwise false.
-
sync
public void sync()Synchronize the data from the file to the NPC. -
save
public void save()Save the data from the NPC to the file.
-