public static void ProcessWrittenBookCallback(object customData, IGameObject book) { BookWrittenData bookWrittenData = customData as BookWrittenData; if (bookWrittenData == null) { return; } try { BookWritten.ProcessCallback(bookWrittenData, book as BookWritten); } catch (Exception ex) { StyledNotification.Show(new StyledNotification.Format("ProcessWrittenBookCallback: " + ex.Message, StyledNotification.NotificationStyle.kGameMessagePositive)); } }
public static void ProcessBookWrittenCallback(object customData, IGameObject book) { BookWrittenData data = customData as BookWrittenData; if (data == null) { return; } try { BookWritten.ProcessCallback(data, book as BookWritten); } catch (Exception e) { Common.Exception(data.ID, e); } }