/// <summary> /// 設定シートからパラメータを更新する /// </summary> /// <param name="entity"></param> public override void UpdateParameter(IResourceSettingEntity entity) { if (entity is CharacterSheetEntity characterEntity) { FilePath = characterEntity.FilePath; OffsetX += characterEntity.OffsetX; OffsetY += characterEntity.OffsetY; } }
/// <summary> /// 設定シートからパラメータを更新する /// </summary> /// <param name="entity"></param> public override void UpdateParameter(IResourceSettingEntity entity) { if (entity is CharacterSheetEntity characterEntity) { FilePath = characterEntity.FilePath; OffsetX += characterEntity.FaceX; OffsetY += characterEntity.FaceY; ScaleX = (characterEntity.FaceScaleX != 0 && ScaleX == 1) ? characterEntity.FaceScaleX : ScaleX; ScaleY = (characterEntity.FaceScaleY != 0 && ScaleY == 1) ? characterEntity.FaceScaleY : ScaleY; } }
/// <summary> /// 設定シートのEntityからパラメータを更新する /// </summary> /// <param name="entity"></param> public virtual void UpdateParameter(IResourceSettingEntity entity) { }