//When adventure start/inited. public void OnAdventureCallback(AIDungeonWrapper.Adventure adventure) { //It might be called when game started. (webpage opened) //It sometimes return empty values at last one. (only id and empty message aray exist) //Use adventure id for check the game was changed. //Basically, Action seems like guaranteed index order but i'm not sure. //Should sort by createdAt? ***id was not related with index*** this.OnAdventure?.Invoke(adventure); }
//Adventure updated. public void OnAdventureUpdatedCallback(AIDungeonWrapper.Adventure adventure) { this.OnAdventureUpdated?.Invoke(adventure); }
//Memoty,Authors Note changed. (Pin, Remember) public void OnUpdateAdventureMemoryCallback(AIDungeonWrapper.Adventure adventure) { //memory, memory might be edited. this.OnUpdateAdventureMemory?.Invoke(adventure); }