private static void OnCoordinateBeingSaved(Human character, CustomParameter coordinateFile) { KoikatuAPI.Logger.LogDebug($"Saving coordinate"); foreach (var controller in GetBehaviours(character)) { controller.OnCoordinateBeingSavedInternal(coordinateFile); } try { CoordinateSaving?.Invoke(null, new CoordinateEventArgs(character, coordinateFile)); } catch (Exception e) { KoikatuAPI.Logger.LogError(e); } }
private static void OnCoordinateBeingSaved(ChaControl character, ChaFileCoordinate coordinateFile) { #if EC || AI KoikatuAPI.Logger.LogDebug($"Saving coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character)}\""); #elif KK KoikatuAPI.Logger.LogDebug($"Saving coord \"{coordinateFile.coordinateName}\" to chara \"{GetLogName(character)}\" / {(ChaFileDefine.CoordinateType)character.fileStatus.coordinateType}"); #endif foreach (var controller in GetBehaviours(character)) { controller.OnCoordinateBeingSavedInternal(coordinateFile); } try { CoordinateSaving?.Invoke(null, new CoordinateEventArgs(character, coordinateFile)); } catch (Exception e) { KoikatuAPI.Logger.LogError(e); } }