├── Editor.meta ├── Editor ├── DisplayLayerData.cs ├── DisplayLayerData.cs.meta ├── FullSerializer.meta ├── FullSerializer │ ├── Aot.meta │ ├── Aot │ │ ├── fsAotCompilationManager.cs │ │ ├── fsAotCompilationManager.cs.meta │ │ ├── fsAotVersionInfo.cs │ │ ├── fsAotVersionInfo.cs.meta │ │ ├── fsIAotConverter.cs │ │ └── fsIAotConverter.cs.meta │ ├── Converters.meta │ ├── Converters │ │ ├── Unity.meta │ │ ├── Unity │ │ │ ├── AnimationCurve_DirectConverter.cs │ │ │ ├── AnimationCurve_DirectConverter.cs.meta │ │ │ ├── Bounds_DirectConverter.cs │ │ │ ├── Bounds_DirectConverter.cs.meta │ │ │ ├── GUIStyleState_DirectConverter.cs │ │ │ ├── GUIStyleState_DirectConverter.cs.meta │ │ │ ├── GUIStyle_DirectConverter.cs │ │ │ ├── GUIStyle_DirectConverter.cs.meta │ │ │ ├── Gradient_DirectConverter.cs │ │ │ ├── Gradient_DirectConverter.cs.meta │ │ │ ├── Keyframe_DirectConverter.cs │ │ │ ├── Keyframe_DirectConverter.cs.meta │ │ │ ├── LayerMask_DirectConverter.cs │ │ │ ├── LayerMask_DirectConverter.cs.meta │ │ │ ├── RectOffset_DirectConverter.cs │ │ │ ├── RectOffset_DirectConverter.cs.meta │ │ │ ├── Rect_DirectConverter.cs │ │ │ ├── Rect_DirectConverter.cs.meta │ │ │ ├── UnityEvent_Converter.cs │ │ │ └── UnityEvent_Converter.cs.meta │ │ ├── fsArrayConverter.cs │ │ ├── fsArrayConverter.cs.meta │ │ ├── fsDateConverter.cs │ │ ├── fsDateConverter.cs.meta │ │ ├── fsDictionaryConverter.cs │ │ ├── fsDictionaryConverter.cs.meta │ │ ├── fsEnumConverter.cs │ │ ├── fsEnumConverter.cs.meta │ │ ├── fsForwardConverter.cs │ │ ├── fsForwardConverter.cs.meta │ │ ├── fsGuidConverter.cs │ │ ├── fsGuidConverter.cs.meta │ │ ├── fsIEnumerableConverter.cs │ │ ├── fsIEnumerableConverter.cs.meta │ │ ├── fsKeyValuePairConverter.cs │ │ ├── fsKeyValuePairConverter.cs.meta │ │ ├── fsNullableConverter.cs │ │ ├── fsNullableConverter.cs.meta │ │ ├── fsPrimitiveConverter.cs │ │ ├── fsPrimitiveConverter.cs.meta │ │ ├── fsReflectedConverter.cs │ │ ├── fsReflectedConverter.cs.meta │ │ ├── fsTypeConverter.cs │ │ ├── fsTypeConverter.cs.meta │ │ ├── fsWeakReferenceConverter.cs │ │ └── fsWeakReferenceConverter.cs.meta │ ├── Internal.meta │ ├── Internal │ │ ├── fsCyclicReferenceManager.cs │ │ ├── fsCyclicReferenceManager.cs.meta │ │ ├── fsOption.cs │ │ ├── fsOption.cs.meta │ │ ├── fsPortableReflection.cs │ │ ├── fsPortableReflection.cs.meta │ │ ├── fsTypeExtensions.cs │ │ ├── fsTypeExtensions.cs.meta │ │ ├── fsVersionManager.cs │ │ ├── fsVersionManager.cs.meta │ │ ├── fsVersionedType.cs │ │ └── fsVersionedType.cs.meta │ ├── Reflection.meta │ ├── Reflection │ │ ├── fsMetaProperty.cs │ │ ├── fsMetaProperty.cs.meta │ │ ├── fsMetaType.cs │ │ ├── fsMetaType.cs.meta │ │ ├── fsReflectionUtility.cs │ │ ├── fsReflectionUtility.cs.meta │ │ ├── fsTypeCache.cs │ │ └── fsTypeCache.cs.meta │ ├── fsBaseConverter.cs │ ├── fsBaseConverter.cs.meta │ ├── fsConfig.cs │ ├── fsConfig.cs.meta │ ├── fsContext.cs │ ├── fsContext.cs.meta │ ├── fsConverter.cs │ ├── fsConverter.cs.meta │ ├── fsConverterRegistrar.cs │ ├── fsConverterRegistrar.cs.meta │ ├── fsData.cs │ ├── fsData.cs.meta │ ├── fsDirectConverter.cs │ ├── fsDirectConverter.cs.meta │ ├── fsExceptions.cs │ ├── fsExceptions.cs.meta │ ├── fsISerializationCallbacks.cs │ ├── fsISerializationCallbacks.cs.meta │ ├── fsIgnoreAttribute.cs │ ├── fsIgnoreAttribute.cs.meta │ ├── fsJsonParser.cs │ ├── fsJsonParser.cs.meta │ ├── fsJsonPrinter.cs │ ├── fsJsonPrinter.cs.meta │ ├── fsMemberSerialization.cs │ ├── fsMemberSerialization.cs.meta │ ├── fsObjectAttribute.cs │ ├── fsObjectAttribute.cs.meta │ ├── fsObjectProcessor.cs │ ├── fsObjectProcessor.cs.meta │ ├── fsPropertyAttribute.cs │ ├── fsPropertyAttribute.cs.meta │ ├── fsResult.cs │ ├── fsResult.cs.meta │ ├── fsSerializer.cs │ └── fsSerializer.cs.meta ├── ImportUserData.cs ├── ImportUserData.cs.meta ├── PsdImportWindow.cs ├── PsdImportWindow.cs.meta ├── PsdImporter.cs ├── PsdImporter.cs.meta ├── PsdParser.meta ├── PsdParser │ ├── AdditionalLayerInformation.cs │ ├── AdditionalLayerInformation.cs.meta │ ├── BlendMode.cs │ ├── BlendMode.cs.meta │ ├── Channel.cs │ ├── Channel.cs.meta │ ├── ChannelType.cs │ ├── ChannelType.cs.meta │ ├── ColorMode.cs │ ├── ColorMode.cs.meta │ ├── ColorSpace.cs │ ├── ColorSpace.cs.meta │ ├── CompressionType.cs │ ├── CompressionType.cs.meta │ ├── DescriptorStructure.cs │ ├── DescriptorStructure.cs.meta │ ├── EmbeddedLayer.cs │ ├── EmbeddedLayer.cs.meta │ ├── Extensions.cs │ ├── Extensions.cs.meta │ ├── FileHeaderSection.cs │ ├── FileHeaderSection.cs.meta │ ├── IChannel.cs │ ├── IChannel.cs.meta │ ├── IImageSource.cs │ ├── IImageSource.cs.meta │ ├── ILinkedLayer.cs │ ├── ILinkedLayer.cs.meta │ ├── IProperties.cs │ ├── IProperties.cs.meta │ ├── IPropertiesExtension.cs │ ├── IPropertiesExtension.cs.meta │ ├── IPsdLayer.cs │ ├── IPsdLayer.cs.meta │ ├── InternalDocument.cs │ ├── InternalDocument.cs.meta │ ├── InvalidFormatException.cs │ ├── InvalidFormatException.cs.meta │ ├── LayerBlendingRanges.cs │ ├── LayerBlendingRanges.cs.meta │ ├── LayerExtraRecords.cs │ ├── LayerExtraRecords.cs.meta │ ├── LayerFlags.cs │ ├── LayerFlags.cs.meta │ ├── LayerMask.cs │ ├── LayerMask.cs.meta │ ├── LayerRecords.cs │ ├── LayerRecords.cs.meta │ ├── LayerandMaskInformationSection.cs │ ├── LayerandMaskInformationSection.cs.meta │ ├── LazyProperties.cs │ ├── LazyProperties.cs.meta │ ├── LazyValueReader.cs │ ├── LazyValueReader.cs.meta │ ├── LinkedLayer.cs │ ├── LinkedLayer.cs.meta │ ├── PSDReader.cs │ ├── PSDReader.cs.meta │ ├── PathResolver.cs │ ├── PathResolver.cs.meta │ ├── Properties.cs │ ├── Properties.cs.meta │ ├── PsdDocument.cs │ ├── PsdDocument.cs.meta │ ├── PsdLayer.cs │ ├── PsdLayer.cs.meta │ ├── PsdResolver.cs │ ├── PsdResolver.cs.meta │ ├── PsdUtility.cs │ ├── PsdUtility.cs.meta │ ├── RangeStream.cs │ ├── RangeStream.cs.meta │ ├── Readers.meta │ ├── Readers │ │ ├── ColorModeDataSectionReader.cs │ │ ├── ColorModeDataSectionReader.cs.meta │ │ ├── EmptyResourceReader.cs │ │ ├── EmptyResourceReader.cs.meta │ │ ├── FileHeaderSectionReader.cs │ │ ├── FileHeaderSectionReader.cs.meta │ │ ├── ImageDataSectionReader.cs │ │ ├── ImageDataSectionReader.cs.meta │ │ ├── ImageResources.meta │ │ ├── ImageResources │ │ │ ├── Reader_GridAndGuides.cs │ │ │ ├── Reader_GridAndGuides.cs.meta │ │ │ ├── Reader_ResolutionInfo.cs │ │ │ ├── Reader_ResolutionInfo.cs.meta │ │ │ ├── Reader_SlicesInfo.cs │ │ │ ├── Reader_SlicesInfo.cs.meta │ │ │ ├── Reader_VersionInfo.cs │ │ │ └── Reader_VersionInfo.cs.meta │ │ ├── ImageResourcesSectionReader.cs │ │ ├── ImageResourcesSectionReader.cs.meta │ │ ├── LayerAndMaskInformation.meta │ │ ├── LayerAndMaskInformation │ │ │ ├── ChannelsReader.cs │ │ │ ├── ChannelsReader.cs.meta │ │ │ ├── DocumentResourceReader.cs │ │ │ ├── DocumentResourceReader.cs.meta │ │ │ ├── EmbeddedLayerReader.cs │ │ │ ├── EmbeddedLayerReader.cs.meta │ │ │ ├── GlobalLayerMaskInfoReader.cs │ │ │ ├── GlobalLayerMaskInfoReader.cs.meta │ │ │ ├── LayerBlendingRangesReader.cs │ │ │ ├── LayerBlendingRangesReader.cs.meta │ │ │ ├── LayerExtraRecordsReader.cs │ │ │ ├── LayerExtraRecordsReader.cs.meta │ │ │ ├── LayerInfoReader.cs │ │ │ ├── LayerInfoReader.cs.meta │ │ │ ├── LayerMaskReader.cs │ │ │ ├── LayerMaskReader.cs.meta │ │ │ ├── LayerRecordsReader.cs │ │ │ ├── LayerRecordsReader.cs.meta │ │ │ ├── LayerResourceReader.cs │ │ │ ├── LayerResourceReader.cs.meta │ │ │ ├── LinkedDocumentReader.cs │ │ │ ├── LinkedDocumentReader.cs.meta │ │ │ ├── LinkedDocumnetFileHeaderReader.cs │ │ │ ├── LinkedDocumnetFileHeaderReader.cs.meta │ │ │ ├── LinkedLayerReader.cs │ │ │ └── LinkedLayerReader.cs.meta │ │ ├── LayerAndMaskInformationSectionReader.cs │ │ ├── LayerAndMaskInformationSectionReader.cs.meta │ │ ├── LayerResources.meta │ │ ├── LayerResources │ │ │ ├── Reader_PlLd.cs │ │ │ ├── Reader_PlLd.cs.meta │ │ │ ├── Reader_SoLE.cs │ │ │ ├── Reader_SoLE.cs.meta │ │ │ ├── Reader_SoLd.cs │ │ │ ├── Reader_SoLd.cs.meta │ │ │ ├── Reader_TySh.cs │ │ │ ├── Reader_TySh.cs.meta │ │ │ ├── Reader_fxrp.cs │ │ │ ├── Reader_fxrp.cs.meta │ │ │ ├── Reader_iOpa.cs │ │ │ ├── Reader_iOpa.cs.meta │ │ │ ├── Reader_lfx2.cs │ │ │ ├── Reader_lfx2.cs.meta │ │ │ ├── Reader_lnk2.cs │ │ │ ├── Reader_lnk2.cs.meta │ │ │ ├── Reader_lnk3.cs │ │ │ ├── Reader_lnk3.cs.meta │ │ │ ├── Reader_lnkD.cs │ │ │ ├── Reader_lnkD.cs.meta │ │ │ ├── Reader_lnkE.cs │ │ │ ├── Reader_lnkE.cs.meta │ │ │ ├── Reader_lnsr.cs │ │ │ ├── Reader_lnsr.cs.meta │ │ │ ├── Reader_lrFX.cs │ │ │ ├── Reader_lrFX.cs.meta │ │ │ ├── Reader_lsct.cs │ │ │ ├── Reader_lsct.cs.meta │ │ │ ├── Reader_luni.cs │ │ │ ├── Reader_luni.cs.meta │ │ │ ├── Reader_lyid.cs │ │ │ ├── Reader_lyid.cs.meta │ │ │ ├── Reader_shmd.cs │ │ │ └── Reader_shmd.cs.meta │ │ ├── ReaderCollector.cs │ │ ├── ReaderCollector.cs.meta │ │ ├── ResourceReaderBase.cs │ │ └── ResourceReaderBase.cs.meta │ ├── ResourceIDAttribute.cs │ ├── ResourceIDAttribute.cs.meta │ ├── SectionType.cs │ ├── SectionType.cs.meta │ ├── Structures.meta │ ├── Structures │ │ ├── BaseStructure.cs │ │ ├── BaseStructure.cs.meta │ │ ├── StructureAlias.cs │ │ ├── StructureAlias.cs.meta │ │ ├── StructureClass.cs │ │ ├── StructureClass.cs.meta │ │ ├── StructureEngineData.cs │ │ ├── StructureEngineData.cs.meta │ │ ├── StructureEnumerate.cs │ │ ├── StructureEnumerate.cs.meta │ │ ├── StructureEnumerateReference.cs │ │ ├── StructureEnumerateReference.cs.meta │ │ ├── StructureList.cs │ │ ├── StructureList.cs.meta │ │ ├── StructureObjectArray.cs │ │ ├── StructureObjectArray.cs.meta │ │ ├── StructureOffset.cs │ │ ├── StructureOffset.cs.meta │ │ ├── StructureProperty.cs │ │ ├── StructureProperty.cs.meta │ │ ├── StructureReader.cs │ │ ├── StructureReader.cs.meta │ │ ├── StructureReference.cs │ │ ├── StructureReference.cs.meta │ │ ├── StructureUnitFloat.cs │ │ ├── StructureUnitFloat.cs.meta │ │ ├── StructureUnknownOSType.cs │ │ └── StructureUnknownOSType.cs.meta │ ├── UnitType.cs │ ├── UnitType.cs.meta │ ├── ValueReader.cs │ └── ValueReader.cs.meta ├── Reconstructor.meta ├── Reconstructor │ ├── IReconstructor.cs │ ├── IReconstructor.cs.meta │ ├── SpriteReconstructor.cs │ ├── SpriteReconstructor.cs.meta │ ├── UnityGuiReconstructor.cs │ └── UnityGuiReconstructor.cs.meta ├── Utils.meta └── Utils │ ├── EditorCoroutineRunner.cs │ ├── EditorCoroutineRunner.cs.meta │ ├── SpriteAlignUI.cs │ └── SpriteAlignUI.cs.meta ├── LICENSE ├── LICENSE.meta ├── README.md └── README.md.meta /Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa2aac6bbc21a9549b6f5fa1767e412d 3 | folderAsset: yes 4 | timeCreated: 1496242022 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/DisplayLayerData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | MIT License 3 | 4 | Copyright (c) 2017 Jeiel Aranal 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | */ 24 | 25 | using System.Collections.Generic; 26 | 27 | namespace SubjectNerd.PsdImporter 28 | { 29 | public class DisplayLayerData 30 | { 31 | public int[] indexId; 32 | public bool isVisible; 33 | public bool isGroup; 34 | public bool isOpen; 35 | public bool isLinked; 36 | public int[] linkId; 37 | 38 | public List Childs = new List(); 39 | } 40 | } -------------------------------------------------------------------------------- /Editor/DisplayLayerData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b408b00f9823ad24a9e420ead3e8838d 3 | timeCreated: 1496417151 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62cfc7bad09b1b24ea851994902d0f20 3 | folderAsset: yes 4 | timeCreated: 1496307481 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Aot.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b31422f318c94997a2f2f4355171037 3 | folderAsset: yes 4 | timeCreated: 1480555092 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Aot/fsAotCompilationManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2bc880fbc9d241329a22ff808ff7571 3 | timeCreated: 1480555092 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Aot/fsAotVersionInfo.cs: -------------------------------------------------------------------------------- 1 | using SubjectNerd.PsdImporter.FullSerializer.Internal; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer { 4 | /// 5 | /// Version information stored on an AOT model. This is used to determine 6 | /// if the AOT model is up to date. 7 | /// 8 | public struct fsAotVersionInfo { 9 | public struct Member { 10 | public string MemberName; 11 | public string JsonName; 12 | public string StorageType; 13 | public string OverrideConverterType; 14 | 15 | public Member(fsMetaProperty property) { 16 | MemberName = property.MemberName; 17 | JsonName = property.JsonName; 18 | StorageType = property.StorageType.CSharpName(true); 19 | OverrideConverterType = null; 20 | if (property.OverrideConverterType != null) 21 | OverrideConverterType = property.OverrideConverterType.CSharpName(); 22 | } 23 | 24 | public override bool Equals(object obj) { 25 | if (obj is Member == false) 26 | return false; 27 | return this == ((Member)obj); 28 | } 29 | public override int GetHashCode() { 30 | return 31 | MemberName.GetHashCode() + 32 | (17 * JsonName.GetHashCode()) + 33 | (17 * StorageType.GetHashCode()) + 34 | (string.IsNullOrEmpty(OverrideConverterType) ? 0 : 17 * OverrideConverterType.GetHashCode()); 35 | } 36 | public static bool operator ==(Member a, Member b) { 37 | return a.MemberName == b.MemberName && 38 | a.JsonName == b.JsonName && 39 | a.StorageType == b.StorageType && 40 | a.OverrideConverterType == b.OverrideConverterType; 41 | } 42 | public static bool operator !=(Member a, Member b) { 43 | return !(a == b); 44 | } 45 | } 46 | 47 | public bool IsConstructorPublic; 48 | public Member[] Members; 49 | } 50 | 51 | 52 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/Aot/fsAotVersionInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32c07201cc4594e4ba2d95970c54c705 3 | timeCreated: 1480555092 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Aot/fsIAotConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer { 4 | /// 5 | /// Interface that AOT generated converters extend. Used to check to see if 6 | /// the AOT converter is up to date. 7 | /// 8 | public interface fsIAotConverter { 9 | Type ModelType { get; } 10 | fsAotVersionInfo VersionInfo { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/Aot/fsIAotConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4aeef439e364442ea22128e6bc172be 3 | timeCreated: 1480555092 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e294e082a4f8d4a43ae3e07ab9c0d52d 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec452919b13057d47ba7b28425969b96 3 | folderAsset: yes 4 | timeCreated: 1427576137 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/AnimationCurve_DirectConverter.cs: -------------------------------------------------------------------------------- 1 | #if !NO_UNITY 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace SubjectNerd.PsdImporter.FullSerializer { 7 | partial class fsConverterRegistrar { 8 | public static Internal.DirectConverters.AnimationCurve_DirectConverter Register_AnimationCurve_DirectConverter; 9 | } 10 | } 11 | 12 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal.DirectConverters { 13 | public class AnimationCurve_DirectConverter : fsDirectConverter { 14 | protected override fsResult DoSerialize(AnimationCurve model, Dictionary serialized) { 15 | var result = fsResult.Success; 16 | 17 | result += SerializeMember(serialized, null, "keys", model.keys); 18 | result += SerializeMember(serialized, null, "preWrapMode", model.preWrapMode); 19 | result += SerializeMember(serialized, null, "postWrapMode", model.postWrapMode); 20 | 21 | return result; 22 | } 23 | 24 | protected override fsResult DoDeserialize(Dictionary data, ref AnimationCurve model) { 25 | var result = fsResult.Success; 26 | 27 | var t0 = model.keys; 28 | result += DeserializeMember(data, null, "keys", out t0); 29 | model.keys = t0; 30 | 31 | var t1 = model.preWrapMode; 32 | result += DeserializeMember(data, null, "preWrapMode", out t1); 33 | model.preWrapMode = t1; 34 | 35 | var t2 = model.postWrapMode; 36 | result += DeserializeMember(data, null, "postWrapMode", out t2); 37 | model.postWrapMode = t2; 38 | 39 | return result; 40 | } 41 | 42 | public override object CreateInstance(fsData data, Type storageType) { 43 | return new AnimationCurve(); 44 | } 45 | } 46 | } 47 | #endif -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/AnimationCurve_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de4871d163dc05c4e879ab3bd2d1b0a9 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/Bounds_DirectConverter.cs: -------------------------------------------------------------------------------- 1 | #if !NO_UNITY 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace SubjectNerd.PsdImporter.FullSerializer { 7 | partial class fsConverterRegistrar { 8 | public static Internal.DirectConverters.Bounds_DirectConverter Register_Bounds_DirectConverter; 9 | } 10 | } 11 | 12 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal.DirectConverters { 13 | public class Bounds_DirectConverter : fsDirectConverter { 14 | protected override fsResult DoSerialize(Bounds model, Dictionary serialized) { 15 | var result = fsResult.Success; 16 | 17 | result += SerializeMember(serialized, null, "center", model.center); 18 | result += SerializeMember(serialized, null, "size", model.size); 19 | 20 | return result; 21 | } 22 | 23 | protected override fsResult DoDeserialize(Dictionary data, ref Bounds model) { 24 | var result = fsResult.Success; 25 | 26 | var t0 = model.center; 27 | result += DeserializeMember(data, null, "center", out t0); 28 | model.center = t0; 29 | 30 | var t1 = model.size; 31 | result += DeserializeMember(data, null, "size", out t1); 32 | model.size = t1; 33 | 34 | return result; 35 | } 36 | 37 | public override object CreateInstance(fsData data, Type storageType) { 38 | return new Bounds(); 39 | } 40 | } 41 | } 42 | #endif -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/Bounds_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fe9630466a01c34fba9de74b67e17f6 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/GUIStyleState_DirectConverter.cs: -------------------------------------------------------------------------------- 1 | #if !NO_UNITY 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace SubjectNerd.PsdImporter.FullSerializer { 7 | partial class fsConverterRegistrar { 8 | public static Internal.DirectConverters.GUIStyleState_DirectConverter Register_GUIStyleState_DirectConverter; 9 | } 10 | } 11 | 12 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal.DirectConverters { 13 | public class GUIStyleState_DirectConverter : fsDirectConverter { 14 | protected override fsResult DoSerialize(GUIStyleState model, Dictionary serialized) { 15 | var result = fsResult.Success; 16 | 17 | result += SerializeMember(serialized, null, "background", model.background); 18 | result += SerializeMember(serialized, null, "textColor", model.textColor); 19 | 20 | return result; 21 | } 22 | 23 | protected override fsResult DoDeserialize(Dictionary data, ref GUIStyleState model) { 24 | var result = fsResult.Success; 25 | 26 | var t0 = model.background; 27 | result += DeserializeMember(data, null, "background", out t0); 28 | model.background = t0; 29 | 30 | var t2 = model.textColor; 31 | result += DeserializeMember(data, null, "textColor", out t2); 32 | model.textColor = t2; 33 | 34 | return result; 35 | } 36 | 37 | public override object CreateInstance(fsData data, Type storageType) { 38 | return new GUIStyleState(); 39 | } 40 | } 41 | } 42 | #endif -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/GUIStyleState_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67b4783438fecdb4399aa4737e11776b 3 | timeCreated: 1455511482 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/GUIStyle_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08c93192f19b1a74a91771d664d38f0b 3 | timeCreated: 1455511482 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/Gradient_DirectConverter.cs: -------------------------------------------------------------------------------- 1 | #if !NO_UNITY 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace SubjectNerd.PsdImporter.FullSerializer { 7 | partial class fsConverterRegistrar { 8 | public static Internal.DirectConverters.Gradient_DirectConverter Register_Gradient_DirectConverter; 9 | } 10 | } 11 | 12 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal.DirectConverters { 13 | public class Gradient_DirectConverter : fsDirectConverter { 14 | protected override fsResult DoSerialize(Gradient model, Dictionary serialized) { 15 | var result = fsResult.Success; 16 | 17 | result += SerializeMember(serialized, null, "alphaKeys", model.alphaKeys); 18 | result += SerializeMember(serialized, null, "colorKeys", model.colorKeys); 19 | 20 | return result; 21 | } 22 | 23 | protected override fsResult DoDeserialize(Dictionary data, ref Gradient model) { 24 | var result = fsResult.Success; 25 | 26 | var t0 = model.alphaKeys; 27 | result += DeserializeMember(data, null, "alphaKeys", out t0); 28 | model.alphaKeys = t0; 29 | 30 | var t1 = model.colorKeys; 31 | result += DeserializeMember(data, null, "colorKeys", out t1); 32 | model.colorKeys = t1; 33 | 34 | return result; 35 | } 36 | 37 | public override object CreateInstance(fsData data, Type storageType) { 38 | return new Gradient(); 39 | } 40 | } 41 | } 42 | #endif -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/Gradient_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 064742214cced30408a50448cc56cf32 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/Keyframe_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 685e0c3230dc4c1469af759c0cadadb0 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/LayerMask_DirectConverter.cs: -------------------------------------------------------------------------------- 1 | #if !NO_UNITY 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace SubjectNerd.PsdImporter.FullSerializer { 7 | partial class fsConverterRegistrar { 8 | public static Internal.DirectConverters.LayerMask_DirectConverter Register_LayerMask_DirectConverter; 9 | } 10 | } 11 | 12 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal.DirectConverters { 13 | public class LayerMask_DirectConverter : fsDirectConverter { 14 | protected override fsResult DoSerialize(LayerMask model, Dictionary serialized) { 15 | var result = fsResult.Success; 16 | 17 | result += SerializeMember(serialized, null, "value", model.value); 18 | 19 | return result; 20 | } 21 | 22 | protected override fsResult DoDeserialize(Dictionary data, ref LayerMask model) { 23 | var result = fsResult.Success; 24 | 25 | var t0 = model.value; 26 | result += DeserializeMember(data, null, "value", out t0); 27 | model.value = t0; 28 | 29 | return result; 30 | } 31 | 32 | public override object CreateInstance(fsData data, Type storageType) { 33 | return new LayerMask(); 34 | } 35 | } 36 | } 37 | #endif -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/LayerMask_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a480ab5fab4f3041a1dc7468d23ab7c 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/RectOffset_DirectConverter.cs: -------------------------------------------------------------------------------- 1 | #if !NO_UNITY 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace SubjectNerd.PsdImporter.FullSerializer { 7 | partial class fsConverterRegistrar { 8 | public static Internal.DirectConverters.RectOffset_DirectConverter Register_RectOffset_DirectConverter; 9 | } 10 | } 11 | 12 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal.DirectConverters { 13 | public class RectOffset_DirectConverter : fsDirectConverter { 14 | protected override fsResult DoSerialize(RectOffset model, Dictionary serialized) { 15 | var result = fsResult.Success; 16 | 17 | result += SerializeMember(serialized, null, "bottom", model.bottom); 18 | result += SerializeMember(serialized, null, "left", model.left); 19 | result += SerializeMember(serialized, null, "right", model.right); 20 | result += SerializeMember(serialized, null, "top", model.top); 21 | 22 | return result; 23 | } 24 | 25 | protected override fsResult DoDeserialize(Dictionary data, ref RectOffset model) { 26 | var result = fsResult.Success; 27 | 28 | var t0 = model.bottom; 29 | result += DeserializeMember(data, null, "bottom", out t0); 30 | model.bottom = t0; 31 | 32 | var t2 = model.left; 33 | result += DeserializeMember(data, null, "left", out t2); 34 | model.left = t2; 35 | 36 | var t3 = model.right; 37 | result += DeserializeMember(data, null, "right", out t3); 38 | model.right = t3; 39 | 40 | var t4 = model.top; 41 | result += DeserializeMember(data, null, "top", out t4); 42 | model.top = t4; 43 | 44 | return result; 45 | } 46 | 47 | public override object CreateInstance(fsData data, Type storageType) { 48 | return new RectOffset(); 49 | } 50 | } 51 | } 52 | #endif -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/RectOffset_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b6ebe5ce2ccdb4439953bd49e36ac3a 3 | timeCreated: 1455511482 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/Rect_DirectConverter.cs: -------------------------------------------------------------------------------- 1 | #if !NO_UNITY 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | 6 | namespace SubjectNerd.PsdImporter.FullSerializer { 7 | partial class fsConverterRegistrar { 8 | public static Internal.DirectConverters.Rect_DirectConverter Register_Rect_DirectConverter; 9 | } 10 | } 11 | 12 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal.DirectConverters { 13 | public class Rect_DirectConverter : fsDirectConverter { 14 | protected override fsResult DoSerialize(Rect model, Dictionary serialized) { 15 | var result = fsResult.Success; 16 | 17 | result += SerializeMember(serialized, null, "xMin", model.xMin); 18 | result += SerializeMember(serialized, null, "yMin", model.yMin); 19 | result += SerializeMember(serialized, null, "xMax", model.xMax); 20 | result += SerializeMember(serialized, null, "yMax", model.yMax); 21 | 22 | return result; 23 | } 24 | 25 | protected override fsResult DoDeserialize(Dictionary data, ref Rect model) { 26 | var result = fsResult.Success; 27 | 28 | var t0 = model.xMin; 29 | result += DeserializeMember(data, null, "xMin", out t0); 30 | model.xMin = t0; 31 | 32 | var t1 = model.yMin; 33 | result += DeserializeMember(data, null, "yMin", out t1); 34 | model.yMin = t1; 35 | 36 | var t2 = model.xMax; 37 | result += DeserializeMember(data, null, "xMax", out t2); 38 | model.xMax = t2; 39 | 40 | var t3 = model.yMax; 41 | result += DeserializeMember(data, null, "yMax", out t3); 42 | model.yMax = t3; 43 | 44 | return result; 45 | } 46 | 47 | public override object CreateInstance(fsData data, Type storageType) { 48 | return new Rect(); 49 | } 50 | } 51 | } 52 | #endif -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/Rect_DirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06db9349c97ef41438333fe8ef2c2f70 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/UnityEvent_Converter.cs: -------------------------------------------------------------------------------- 1 | #if !NO_UNITY && UNITY_5_3_OR_NEWER 2 | using System; 3 | using UnityEngine; 4 | using UnityEngine.Events; 5 | 6 | namespace SubjectNerd.PsdImporter.FullSerializer { 7 | partial class fsConverterRegistrar { 8 | // Disable the converter for the time being. Unity's JsonUtility API 9 | // cannot be called from within a C# ISerializationCallbackReceiver 10 | // callback. 11 | 12 | // public static Internal.Converters.UnityEvent_Converter 13 | // Register_UnityEvent_Converter; 14 | } 15 | } 16 | 17 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal.Converters { 18 | // The standard FS reflection converter has started causing Unity to crash 19 | // when processing UnityEvent. We can send the serialization through 20 | // JsonUtility which appears to work correctly instead. 21 | // 22 | // We have to support legacy serialization formats so importing works as 23 | // expected. 24 | public class UnityEvent_Converter : fsConverter { 25 | public override bool CanProcess(Type type) { 26 | return typeof(UnityEvent).Resolve().IsAssignableFrom(type.Resolve()) && type.IsGenericType() == false; 27 | } 28 | 29 | public override bool RequestCycleSupport(Type storageType) { 30 | return false; 31 | } 32 | 33 | public override fsResult TryDeserialize(fsData data, ref object instance, Type storageType) { 34 | Type objectType = (Type)instance; 35 | 36 | fsResult result = fsResult.Success; 37 | instance = JsonUtility.FromJson(fsJsonPrinter.CompressedJson(data), objectType); 38 | return result; 39 | } 40 | 41 | public override fsResult TrySerialize(object instance, out fsData serialized, Type storageType) { 42 | fsResult result = fsResult.Success; 43 | serialized = fsJsonParser.Parse(JsonUtility.ToJson(instance)); 44 | return result; 45 | } 46 | } 47 | } 48 | #endif -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/Unity/UnityEvent_Converter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a695d8e2a84646fbb7db60dc4fbbbd4 3 | timeCreated: 1469719791 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsArrayConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8c61b81ee2d4ce41988db051d54e60a 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsDateConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 892fb7e848a12c74681de14331c8a072 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsDictionaryConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f364b62fa3618b438cf5dd61bd00a0f 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsEnumConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9b18d8643e0d0f45a42e7736c412559 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsForwardConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7eccd27d395a3b445900ce1a85cc679a 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsGuidConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal { 4 | /// 5 | /// Serializes and deserializes guids. 6 | /// 7 | public class fsGuidConverter : fsConverter { 8 | public override bool CanProcess(Type type) { 9 | return type == typeof(Guid); 10 | } 11 | 12 | public override bool RequestCycleSupport(Type storageType) { 13 | return false; 14 | } 15 | 16 | public override bool RequestInheritanceSupport(Type storageType) { 17 | return false; 18 | } 19 | 20 | public override fsResult TrySerialize(object instance, out fsData serialized, Type storageType) { 21 | var guid = (Guid)instance; 22 | serialized = new fsData(guid.ToString()); 23 | return fsResult.Success; 24 | } 25 | 26 | public override fsResult TryDeserialize(fsData data, ref object instance, Type storageType) { 27 | if (data.IsString) { 28 | instance = new Guid(data.AsString); 29 | return fsResult.Success; 30 | } 31 | 32 | return fsResult.Fail("fsGuidConverter encountered an unknown JSON data type"); 33 | } 34 | 35 | public override object CreateInstance(fsData data, Type storageType) { 36 | return new Guid(); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsGuidConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25223074bdc15f64c9c7c147346b40d0 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsIEnumerableConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9b9009ce07beeb4cab11ab8019d8f25 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsKeyValuePairConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2611d96db6a6370458d57e180a2ffe30 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsNullableConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal { 4 | /// 5 | /// The reflected converter will properly serialize nullable types. However, 6 | /// we do it here instead as we can emit less serialization data. 7 | /// 8 | public class fsNullableConverter : fsConverter { 9 | public override bool CanProcess(Type type) { 10 | return 11 | type.Resolve().IsGenericType && 12 | type.GetGenericTypeDefinition() == typeof(Nullable<>); 13 | } 14 | 15 | public override fsResult TrySerialize(object instance, out fsData serialized, Type storageType) { 16 | // null is automatically serialized 17 | return Serializer.TrySerialize(Nullable.GetUnderlyingType(storageType), instance, out serialized); 18 | } 19 | 20 | public override fsResult TryDeserialize(fsData data, ref object instance, Type storageType) { 21 | // null is automatically deserialized 22 | return Serializer.TryDeserialize(data, Nullable.GetUnderlyingType(storageType), ref instance); 23 | } 24 | 25 | public override object CreateInstance(fsData data, Type storageType) { 26 | return storageType; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsNullableConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a18dfa892d8de7245824898c553a516b 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsPrimitiveConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14030fd201904564584a2639fafcdcfc 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsReflectedConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ff9fcf67634b1b448fa901325a9510d 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsTypeConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | #if !UNITY_EDITOR && UNITY_WSA 4 | // For System.Reflection.TypeExtensions 5 | using System.Reflection; 6 | #endif 7 | 8 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal { 9 | public class fsTypeConverter : fsConverter { 10 | public override bool CanProcess(Type type) { 11 | return typeof(Type).IsAssignableFrom(type); 12 | } 13 | 14 | public override bool RequestCycleSupport(Type type) { 15 | return false; 16 | } 17 | 18 | public override bool RequestInheritanceSupport(Type type) { 19 | return false; 20 | } 21 | 22 | public override fsResult TrySerialize(object instance, out fsData serialized, Type storageType) { 23 | var type = (Type)instance; 24 | serialized = new fsData(type.FullName); 25 | return fsResult.Success; 26 | } 27 | 28 | public override fsResult TryDeserialize(fsData data, ref object instance, Type storageType) { 29 | if (data.IsString == false) { 30 | return fsResult.Fail("Type converter requires a string"); 31 | } 32 | 33 | instance = fsTypeCache.GetType(data.AsString); 34 | if (instance == null) { 35 | return fsResult.Fail("Unable to find type " + data.AsString); 36 | } 37 | return fsResult.Success; 38 | } 39 | 40 | public override object CreateInstance(fsData data, Type storageType) { 41 | return storageType; 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsTypeConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b7c8e9a78b8bb24d9cd168134ba2d3f 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Converters/fsWeakReferenceConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d522279c90b14504f9a25467442f9981 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae1efb8bd6dfa4040beb12118e625b35 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal/fsCyclicReferenceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c1dc6d180e2a624fb5ced24b343caac 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal/fsOption.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal { 4 | /// 5 | /// Simple option type. This is akin to nullable types. 6 | /// 7 | public struct fsOption { 8 | private bool _hasValue; 9 | private T _value; 10 | 11 | public bool HasValue { 12 | get { return _hasValue; } 13 | } 14 | public bool IsEmpty { 15 | get { return _hasValue == false; } 16 | } 17 | public T Value { 18 | get { 19 | if (IsEmpty) throw new InvalidOperationException("fsOption is empty"); 20 | return _value; 21 | } 22 | } 23 | 24 | public fsOption(T value) { 25 | _hasValue = true; 26 | _value = value; 27 | } 28 | 29 | public static fsOption Empty; 30 | } 31 | 32 | public static class fsOption { 33 | public static fsOption Just(T value) { 34 | return new fsOption(value); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal/fsOption.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb4638b0e5989604ca0d3801ab74bb4f 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal/fsPortableReflection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53f0d6faef1e74649a1d4ec87281ce9c 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal/fsTypeExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c3b8173faf686b44bdf5a3478f776cd 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal/fsVersionManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39e37c86cc277f544a0860a95c73c4d6 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal/fsVersionedType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal { 4 | public struct fsVersionedType { 5 | /// 6 | /// The direct ancestors that this type can import. 7 | /// 8 | public fsVersionedType[] Ancestors; 9 | 10 | /// 11 | /// The identifying string that is unique among all ancestors. 12 | /// 13 | public string VersionString; 14 | 15 | /// 16 | /// The modeling type that this versioned type maps back to. 17 | /// 18 | public Type ModelType; 19 | 20 | /// 21 | /// Migrate from an instance of an ancestor. 22 | /// 23 | public object Migrate(object ancestorInstance) { 24 | return Activator.CreateInstance(ModelType, ancestorInstance); 25 | } 26 | 27 | public override string ToString() { 28 | return "fsVersionedType [ModelType=" + ModelType + ", VersionString=" + VersionString + ", Ancestors.Length=" + Ancestors.Length + "]"; 29 | } 30 | 31 | public static bool operator ==(fsVersionedType a, fsVersionedType b) { 32 | return a.ModelType == b.ModelType; 33 | } 34 | 35 | public static bool operator !=(fsVersionedType a, fsVersionedType b) { 36 | return a.ModelType != b.ModelType; 37 | } 38 | 39 | public override bool Equals(object obj) { 40 | return 41 | obj is fsVersionedType && 42 | ModelType == ((fsVersionedType)obj).ModelType; 43 | } 44 | 45 | public override int GetHashCode() { 46 | return ModelType.GetHashCode(); 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/Internal/fsVersionedType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac58601fa737f8048831c6bd75a6fca2 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Reflection.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c4f755e4a106fd94a9053c5a49c3600f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Reflection/fsMetaProperty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bce2bac5e1b3d9043a6a4207280d7d71 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Reflection/fsMetaType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8dda7fa68f01f0e428c6d8090ae72532 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Reflection/fsReflectionUtility.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | #if !UNITY_EDITOR && UNITY_WSA 4 | // For System.Reflection.TypeExtensions 5 | using System.Reflection; 6 | #endif 7 | 8 | namespace SubjectNerd.PsdImporter.FullSerializer.Internal { 9 | public static class fsReflectionUtility { 10 | /// 11 | /// Searches for a particular implementation of the given interface type 12 | /// inside of the type. This is particularly useful if the interface type 13 | /// is an open type, ie, typeof(IFace{}), because this method will then 14 | /// return IFace{} but with appropriate type parameters inserted. 15 | /// 16 | /// The base type to search for interface 17 | /// 18 | /// The interface type to search for. Can be an open generic type. 19 | /// 20 | /// 21 | /// The actual interface type that the type contains, or null if there is 22 | /// no implementation of the given interfaceType on type. 23 | /// 24 | public static Type GetInterface(Type type, Type interfaceType) { 25 | if (interfaceType.Resolve().IsGenericType && 26 | interfaceType.Resolve().IsGenericTypeDefinition == false) { 27 | throw new ArgumentException("GetInterface requires that if the interface " + 28 | "type is generic, then it must be the generic type definition, not a " + 29 | "specific generic type instantiation"); 30 | }; 31 | 32 | while (type != null) { 33 | foreach (var iface in type.GetInterfaces()) { 34 | if (iface.Resolve().IsGenericType) { 35 | if (interfaceType == iface.GetGenericTypeDefinition()) { 36 | return iface; 37 | } 38 | } 39 | else if (interfaceType == iface) { 40 | return iface; 41 | } 42 | } 43 | 44 | type = type.Resolve().BaseType; 45 | } 46 | 47 | return null; 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/Reflection/fsReflectionUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2fe4e0d816d15145b26bd01d34c8b47 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/Reflection/fsTypeCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45c4a046c8137494c9fe68a832aa751d 3 | timeCreated: 1455068576 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsBaseConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 183143ebe6dd0124aac0741ff70e1fd2 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsConfig.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b59903dfb496d004d8f08677c027e7f6 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace SubjectNerd.PsdImporter.FullSerializer { 5 | /// 6 | /// fsContext stores global metadata that can be used to customize how 7 | /// fsConverters operate during serialization. 8 | /// 9 | public sealed class fsContext { 10 | /// 11 | /// All of the context objects. 12 | /// 13 | private readonly Dictionary _contextObjects = new Dictionary(); 14 | 15 | /// 16 | /// Removes all context objects from the context. 17 | /// 18 | public void Reset() { 19 | _contextObjects.Clear(); 20 | } 21 | 22 | /// 23 | /// Sets the context object for the given type with the given value. 24 | /// 25 | public void Set(T obj) { 26 | _contextObjects[typeof(T)] = obj; 27 | } 28 | 29 | /// 30 | /// Returns true if there is a context object for the given type. 31 | /// 32 | public bool Has() { 33 | return _contextObjects.ContainsKey(typeof(T)); 34 | } 35 | 36 | /// 37 | /// Fetches the context object for the given type. 38 | /// 39 | public T Get() { 40 | object val; 41 | if (_contextObjects.TryGetValue(typeof(T), out val)) { 42 | return (T)val; 43 | } 44 | throw new InvalidOperationException("There is no context object of type " + typeof(T)); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/fsContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dbf6cf73c266b14eba03d329717a810 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer { 4 | /// 5 | /// The serialization converter allows for customization of the serialization 6 | /// process. 7 | /// 8 | public abstract class fsConverter : fsBaseConverter { 9 | /// 10 | /// Can this converter serialize and deserialize the given object type? 11 | /// 12 | /// The given object type. 13 | /// 14 | /// True if the converter can serialize it, false otherwise. 15 | /// 16 | public abstract bool CanProcess(Type type); 17 | } 18 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/fsConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77ed27c3d6b79c044ad5c52b7832d379 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsConverterRegistrar.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa1f5994b782ae24db0ec14460b60dc4 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5cc8656e43d482941b2b95d443c36174 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsDirectConverter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace SubjectNerd.PsdImporter.FullSerializer { 5 | /// 6 | /// The direct converter is similar to a regular converter, except that it 7 | /// targets specifically only one type. This means that it can be used 8 | /// without performance impact when discovering converters. It is strongly 9 | /// recommended that you derive from fsDirectConverter{TModel}. 10 | /// 11 | /// 12 | /// Due to the way that direct converters operate, inheritance is *not* 13 | /// supported. Direct converters will only be used with the exact ModelType 14 | /// object. 15 | /// 16 | public abstract class fsDirectConverter : fsBaseConverter { 17 | public abstract Type ModelType { get; } 18 | } 19 | 20 | public abstract class fsDirectConverter : fsDirectConverter { 21 | public override Type ModelType { get { return typeof(TModel); } } 22 | 23 | public sealed override fsResult TrySerialize(object instance, out fsData serialized, Type storageType) { 24 | var serializedDictionary = new Dictionary(); 25 | var result = DoSerialize((TModel)instance, serializedDictionary); 26 | serialized = new fsData(serializedDictionary); 27 | return result; 28 | } 29 | 30 | public sealed override fsResult TryDeserialize(fsData data, ref object instance, Type storageType) { 31 | var result = fsResult.Success; 32 | if ((result += CheckType(data, fsDataType.Object)).Failed) return result; 33 | 34 | var obj = (TModel)instance; 35 | result += DoDeserialize(data.AsDictionary, ref obj); 36 | instance = obj; 37 | return result; 38 | } 39 | 40 | protected abstract fsResult DoSerialize(TModel model, Dictionary serialized); 41 | protected abstract fsResult DoDeserialize(Dictionary data, ref TModel model); 42 | } 43 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/fsDirectConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01d299a12e9acb74ea4725bd6158642a 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsExceptions.cs: -------------------------------------------------------------------------------- 1 | // note: This file contains exceptions used by FullSerializer. Exceptions are 2 | // never used at runtime in FullSerializer; they are only used when 3 | // validating annotations and code-based models. 4 | 5 | using System; 6 | 7 | namespace SubjectNerd.PsdImporter.FullSerializer { 8 | public sealed class fsMissingVersionConstructorException : Exception { 9 | public fsMissingVersionConstructorException(Type versionedType, Type constructorType) : 10 | base(versionedType + " is missing a constructor for previous model type " + constructorType) { } 11 | } 12 | 13 | public sealed class fsDuplicateVersionNameException : Exception { 14 | public fsDuplicateVersionNameException(Type typeA, Type typeB, string version) : 15 | base(typeA + " and " + typeB + " have the same version string (" + version + "); please change one of them.") { } 16 | } 17 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/fsExceptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38269c00973f4f64db007f13af5acbf4 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsISerializationCallbacks.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff5a6a4a9df9cfc43b04b16bbc045902 3 | timeCreated: 1451205262 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsIgnoreAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer { 4 | /// 5 | /// The given property or field annotated with [JsonIgnore] will not be 6 | /// serialized. 7 | /// 8 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Struct)] 9 | public sealed class fsIgnoreAttribute : Attribute { 10 | } 11 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/fsIgnoreAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 040c5c9958137624c91fc44ec697d76f 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsJsonParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76da27fbb0fa3c4459921ceb0782a604 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsJsonPrinter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be309c30e4f28364cadc2d0b014a5333 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsMemberSerialization.cs: -------------------------------------------------------------------------------- 1 | namespace SubjectNerd.PsdImporter.FullSerializer { 2 | /// 3 | /// Controls how the reflected converter handles member serialization. 4 | /// 5 | public enum fsMemberSerialization { 6 | /// 7 | /// Only members with [SerializeField] or [fsProperty] attributes are 8 | /// serialized. 9 | /// 10 | OptIn, 11 | 12 | /// 13 | /// Only members with [NotSerialized] or [fsIgnore] will not be 14 | /// serialized. 15 | /// 16 | OptOut, 17 | 18 | /// 19 | /// The default member serialization behavior is applied. 20 | /// 21 | Default 22 | } 23 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/fsMemberSerialization.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2d6fed6217d35c49868389b28b49050 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsObjectAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0824334ca5c07d49b5c390bd38781cf 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsObjectProcessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4f4c2fbbdaec5046adaaa0bb47036a6 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsPropertyAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SubjectNerd.PsdImporter.FullSerializer { 4 | /// 5 | /// Explicitly mark a property to be serialized. This can also be used to 6 | /// give the name that the property should use during serialization. 7 | /// 8 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] 9 | public sealed class fsPropertyAttribute : Attribute { 10 | /// 11 | /// The name of that the property will use in JSON serialization. 12 | /// 13 | public string Name; 14 | 15 | /// 16 | /// Use a custom converter for the given type. Specify the converter to 17 | /// use using typeof. 18 | /// 19 | public Type Converter; 20 | 21 | public fsPropertyAttribute() 22 | : this(string.Empty) { 23 | } 24 | 25 | public fsPropertyAttribute(string name) { 26 | Name = name; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Editor/FullSerializer/fsPropertyAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b366ee3695fdf924495750c204ea426a 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54393a5534ff6c74f905d6be1770a1ba 3 | timeCreated: 1451205257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/FullSerializer/fsSerializer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b904dc26e957fde4fb90a0d405d710ee 3 | timeCreated: 1451205258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/ImportUserData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0aea691a6334ff942bd6c7a28fb6a09d 3 | timeCreated: 1496243100 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdImportWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85bc27bef93d64349a4270d90ba05047 3 | timeCreated: 1496243102 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdImporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f981f8b93f540fc48af12d5fec8e24d9 3 | timeCreated: 1496243105 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d09ba47f232bbf4e89f34e651026f8a 3 | folderAsset: yes 4 | timeCreated: 1496242039 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/PsdParser/AdditionalLayerInformation.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | class AdditionalLayerInformation 25 | { 26 | public LinkedLayer[] LinkedLayers 27 | { 28 | get; 29 | set; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Editor/PsdParser/AdditionalLayerInformation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b993d044c0dcdc64db84ddfd7cf3bf51 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/BlendMode.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public enum BlendMode 25 | { 26 | PassThrough, 27 | 28 | Normal, 29 | 30 | Dissolve, 31 | 32 | Darken, 33 | 34 | Multiply, 35 | 36 | ColorBurn, 37 | 38 | LinearBurn, 39 | 40 | DarkerColor, 41 | 42 | Lighten, 43 | 44 | Screen, 45 | 46 | ColorDodge, 47 | 48 | LinearDodge, 49 | 50 | LighterColor, 51 | 52 | Overlay, 53 | 54 | SoftLight, 55 | 56 | HardLight, 57 | 58 | VividLight, 59 | 60 | LinearLight, 61 | 62 | PinLight, 63 | 64 | HardMix, 65 | 66 | Difference, 67 | 68 | Exclusion, 69 | 70 | Subtract, 71 | 72 | Divide, 73 | 74 | Hue, 75 | 76 | Saturation, 77 | 78 | Color, 79 | 80 | Luminosity, 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /Editor/PsdParser/BlendMode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7819150de1f7fd4dbaafe1ee8f527a9 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Channel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 404d16fcb8df87a4f980b5327496b572 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/ChannelType.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public enum ChannelType 25 | { 26 | Alpha = -1, 27 | 28 | Red = 0, 29 | 30 | Green = 1, 31 | 32 | Blue = 2, 33 | 34 | Mask = -2, 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Editor/PsdParser/ChannelType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b982360dabf57fd49a3d99df8666a955 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/ColorMode.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public enum ColorMode 25 | { 26 | Bitmap = 0, 27 | 28 | CMYK = 4, 29 | 30 | DUOTONE = 8, 31 | 32 | GrayScale = 1, 33 | 34 | Indexed = 2, 35 | 36 | LAB = 9, 37 | 38 | MultiChannel = 7, 39 | 40 | RGB = 3 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Editor/PsdParser/ColorMode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28e22de4189428f4f94e177c72dbc79e 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/ColorSpace.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public enum ColorSpace 25 | { 26 | ANPA = 0xbb8, 27 | 28 | CMYK = 2, 29 | 30 | DIC = 11, 31 | 32 | FOCOLTONE = 4, 33 | 34 | GRAYSCALE = 8, 35 | 36 | HKS = 10, 37 | 38 | HSB = 1, 39 | 40 | LAB = 7, 41 | 42 | PANTONE = 3, 43 | 44 | RGB = 0, 45 | 46 | TOYO = 6, 47 | 48 | TRUMATCH = 5 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Editor/PsdParser/ColorSpace.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4149e48ba37429b44ab6636f64e9d4c1 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/CompressionType.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public enum CompressionType 25 | { 26 | Raw = 0, 27 | 28 | RLE = 1, 29 | 30 | Zip = 2, 31 | 32 | ZipPrediction = 3, 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Editor/PsdParser/CompressionType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59541ff913403a04281d7d1ed2356c78 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/DescriptorStructure.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 149b67c75480efe4ea3dc77b563a8183 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/EmbeddedLayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6deb0e33b45834f46a463c064a0630f3 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Extensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d45cc833def95e4787ceefbe4d55bf6 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/FileHeaderSection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f550b04b4dac1f4e88618a0ab42cbd2 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/IChannel.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public interface IChannel 25 | { 26 | byte[] Data 27 | { 28 | get; 29 | } 30 | 31 | ChannelType Type 32 | { 33 | get; 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Editor/PsdParser/IChannel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd5f27d22107e2042950c5817d54df2c 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/IImageSource.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public interface IImageSource 25 | { 26 | int Width { get; } 27 | 28 | int Height { get; } 29 | 30 | int Depth { get; } 31 | 32 | IChannel[] Channels { get; } 33 | 34 | float Opacity { get; } 35 | 36 | bool HasImage { get; } 37 | 38 | bool HasMask { get; } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/IImageSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ddc5c48427131e443ad7d8e9d8b2136b 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/ILinkedLayer.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System; 23 | 24 | namespace SubjectNerd.PsdImporter.PsdParser 25 | { 26 | public interface ILinkedLayer 27 | { 28 | PsdDocument Document 29 | { 30 | get; 31 | } 32 | 33 | Uri AbsoluteUri 34 | { 35 | get; 36 | } 37 | 38 | bool HasDocument 39 | { 40 | get; 41 | } 42 | 43 | Guid ID 44 | { 45 | get; 46 | } 47 | 48 | string Name 49 | { 50 | get; 51 | } 52 | 53 | int Width 54 | { 55 | get; 56 | } 57 | 58 | int Height 59 | { 60 | get; 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Editor/PsdParser/ILinkedLayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 768ff5bf850624243abdf7d3debc9f89 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/IProperties.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System.Collections.Generic; 23 | 24 | namespace SubjectNerd.PsdImporter.PsdParser 25 | { 26 | public interface IProperties : IEnumerable> 27 | { 28 | bool Contains(string property); 29 | 30 | object this[string property] 31 | { 32 | get; 33 | } 34 | 35 | int Count { get; } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Editor/PsdParser/IProperties.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8818bb25a5701645bb47d79aa7d978b 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/IPropertiesExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d4de1e50f3a325439956ec0463416f2 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/IPsdLayer.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public interface IPsdLayer : IImageSource 25 | { 26 | BlendMode BlendMode { get; } 27 | 28 | IPsdLayer[] Childs { get; } 29 | 30 | bool IsClipping { get; } 31 | 32 | ILinkedLayer LinkedLayer { get; } 33 | 34 | string Name { get; } 35 | 36 | IPsdLayer Parent { get; } 37 | 38 | IProperties Resources { get; } 39 | 40 | PsdDocument Document { get; } 41 | 42 | int Left { get; } 43 | 44 | int Top { get; } 45 | 46 | int Right { get; } 47 | 48 | int Bottom { get; } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Editor/PsdParser/IPsdLayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19607fcbfbbde7641b1d8d0ac2218104 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/InternalDocument.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System; 23 | 24 | namespace SubjectNerd.PsdImporter.PsdParser 25 | { 26 | class InternalDocument : PsdDocument 27 | { 28 | public InternalDocument() 29 | { 30 | 31 | } 32 | 33 | protected override void OnDisposed(EventArgs e) 34 | { 35 | throw new Exception(); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Editor/PsdParser/InternalDocument.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5eca2b7591bed64db7e446fed646ab6 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/InvalidFormatException.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System; 23 | 24 | namespace SubjectNerd.PsdImporter.PsdParser 25 | { 26 | class InvalidFormatException : Exception 27 | { 28 | public InvalidFormatException() 29 | : base("Invalid PSD file") 30 | { 31 | 32 | } 33 | 34 | public InvalidFormatException(string message) 35 | : base(message) 36 | { 37 | 38 | } 39 | 40 | public InvalidFormatException(string format, params object[] args) 41 | : base(string.Format(format, args)) 42 | { 43 | 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Editor/PsdParser/InvalidFormatException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46d1ee742c05f2b4aa33e5a9123cebc0 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerBlendingRanges.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public class LayerBlendingRanges 25 | { 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerBlendingRanges.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7b9704011bd7be4d8d3880a55e1e71e 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerExtraRecords.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 507c0d0ccb687d84f848298db660b816 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerFlags.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System; 23 | 24 | namespace SubjectNerd.PsdImporter.PsdParser 25 | { 26 | [Flags] 27 | public enum LayerFlags 28 | { 29 | Transparency = 1, 30 | 31 | Visible = 2, 32 | 33 | Obsolete = 4, 34 | 35 | Unknown0 = 8, // 1 for Photoshop 5.0 and later, tells if bit 4 has useful information; 36 | 37 | Unknown1 = 16, // pixel data irrelevant to appearance of document 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerFlags.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e9acf768eb22b6438ea7469cd64610b 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerMask.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public class LayerMask 25 | { 26 | public int Left { get; set; } 27 | 28 | public int Top { get; set; } 29 | 30 | public int Right { get; set; } 31 | 32 | public int Bottom { get; set; } 33 | 34 | public byte Color { get; set; } 35 | 36 | public byte Flag { get; set; } 37 | 38 | public int Width 39 | { 40 | get { return this.Right - this.Left; } 41 | } 42 | 43 | public int Height 44 | { 45 | get { return this.Bottom - this.Top; } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerMask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 72af95a88fdbe404fbe0028b98f54a9a 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerRecords.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 036ba0d67502ed949937038d878253df 3 | timeCreated: 1495621251 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LayerandMaskInformationSection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac73f6431b43c924c81030910a6ddd18 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LazyProperties.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d18f967c5d7e76f4491cafe7c164bb75 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LazyValueReader.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | abstract class LazyValueReader : ValueReader 25 | { 26 | protected LazyValueReader(PsdReader reader, object userData) 27 | : base(reader, true, userData) 28 | { 29 | 30 | } 31 | 32 | protected LazyValueReader(PsdReader reader, long length, object userData) 33 | : base(reader, length, userData) 34 | { 35 | 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Editor/PsdParser/LazyValueReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 545bbeffffdf68e48a61a6a458f642fb 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/LinkedLayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8ba755452b8cc34da1d1497444a8f5f 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/PSDReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5e7722991a5ee74f805a53ef3cd8f6c 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/PathResolver.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System; 23 | using System.Collections.Generic; 24 | using System.IO; 25 | 26 | namespace SubjectNerd.PsdImporter.PsdParser 27 | { 28 | public class PathResolver : PsdResolver 29 | { 30 | private readonly Dictionary uriToDocuments = new Dictionary(); 31 | 32 | public override PsdDocument GetDocument(Uri absoluteUri) 33 | { 34 | string filename = absoluteUri.LocalPath; 35 | if (File.Exists(filename) == false) 36 | throw new FileNotFoundException(string.Format("{0} 파일을 찾을 수 없습니다.", filename), filename); 37 | 38 | if (uriToDocuments.ContainsKey(absoluteUri) == false) 39 | { 40 | PsdDocument document = PsdDocument.Create(filename); 41 | uriToDocuments.Add(absoluteUri, document); 42 | } 43 | 44 | return uriToDocuments[absoluteUri]; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Editor/PsdParser/PathResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ed432fadd81d9a418b679650bbd38a0 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Properties.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ae4eebe24edadb44b8a30f72dae8ebd 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/PsdDocument.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77c995326c0abe946a555ab459226759 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/PsdLayer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e5dd029ff7dfee478d8ac029f3bea7b 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/PsdResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06ed9ed023e7d644aa3707ade5893457 3 | timeCreated: 1495621251 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/PsdUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dc9089a9659de540b69e378ea4d118d 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/RangeStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 436bdfd7fa954514781105d2db64df1a 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae6d8bdaf57c4134ea2bebbdec0bb9d2 3 | folderAsset: yes 4 | timeCreated: 1495621250 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ColorModeDataSectionReader.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers 23 | { 24 | class ColorModeDataSectionReader : LazyValueReader 25 | { 26 | public ColorModeDataSectionReader(PsdReader reader) 27 | : base(reader, null) 28 | { 29 | 30 | } 31 | 32 | protected override long OnLengthGet(PsdReader reader) 33 | { 34 | return reader.ReadInt32(); 35 | } 36 | 37 | protected override void ReadValue(PsdReader reader, object userData, out byte[] value) 38 | { 39 | if (this.Length > 0) 40 | { 41 | value = reader.ReadBytes((int)this.Length); 42 | } 43 | else 44 | { 45 | value = new byte[] { }; 46 | } 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ColorModeDataSectionReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4ab80fea3beebf4ca908ba33ed12cf6 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/EmptyResourceReader.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers 23 | { 24 | class EmptyResourceReader : ResourceReaderBase 25 | { 26 | public EmptyResourceReader(PsdReader reader, long length) 27 | : base(reader, length) 28 | { 29 | 30 | } 31 | 32 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 33 | { 34 | value = new Properties(); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/EmptyResourceReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 889d88e00ea38be419edaff91b41193a 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/FileHeaderSectionReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c82075fa6d864d4bb45ff44cfd26250 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageDataSectionReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c27a2dee6db68c4409eb265ebda343b5 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageResources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce4a5284d3d4c284aa4ea77f7cd29bb5 3 | folderAsset: yes 4 | timeCreated: 1495621250 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageResources/Reader_GridAndGuides.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcdc8c0bf1841834098a8132621d3845 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageResources/Reader_ResolutionInfo.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.ImageResources 23 | { 24 | [ResourceID("1005", DisplayName = "Resolution")] 25 | class Reader_ResolutionInfo : ResourceReaderBase 26 | { 27 | public Reader_ResolutionInfo(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(6); 36 | 37 | props["HorizontalRes"] = reader.ReadInt16(); 38 | props["HorizontalResUnit"] = reader.ReadInt32(); 39 | props["WidthUnit"] = reader.ReadInt16(); 40 | props["VerticalRes"] = reader.ReadInt16(); 41 | props["VerticalResUnit"] = reader.ReadInt32(); 42 | props["HeightUnit"] = reader.ReadInt16(); 43 | 44 | value = props; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageResources/Reader_ResolutionInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cda702aa2404c3447894056402f1a858 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageResources/Reader_SlicesInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5cc6b71e4b7dbe48868d380b88e5740 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageResources/Reader_VersionInfo.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.ImageResources 23 | { 24 | [ResourceID("1057", DisplayName = "Version")] 25 | class Reader_VersionInfo : ResourceReaderBase 26 | { 27 | public Reader_VersionInfo(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(5); 36 | 37 | props["Version"] = reader.ReadInt32(); 38 | props["HasCompatibilityImage"] = reader.ReadBoolean(); 39 | props["WriterName"] = reader.ReadString(); 40 | props["ReaderName"] = reader.ReadString(); 41 | props["FileVersion"] = reader.ReadInt32(); 42 | 43 | value = props; 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageResources/Reader_VersionInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85a44fe1bf1795044a5e795c27c32953 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ImageResourcesSectionReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 894555650e1156240bc60a3267e6ea89 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 731206f7dee6b54438f7edc6e3a6ee44 3 | folderAsset: yes 4 | timeCreated: 1495621250 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/ChannelsReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2a6913fefad349498cfe03cacd34000 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/DocumentResourceReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bf5e01c1ee6c124585d74e30389ceff 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/EmbeddedLayerReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 110ee026c71b7294e8d12df257265013 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/GlobalLayerMaskInfoReader.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerAndMaskInformation 23 | { 24 | class GlobalLayerMaskInfoReader : ValueReader 25 | { 26 | public GlobalLayerMaskInfoReader(PsdReader reader) 27 | : base(reader, true, null) 28 | { 29 | 30 | } 31 | 32 | protected override long OnLengthGet(PsdReader reader) 33 | { 34 | return reader.ReadInt32(); 35 | } 36 | 37 | protected override void ReadValue(PsdReader reader, object userData, out object value) 38 | { 39 | value = new object(); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/GlobalLayerMaskInfoReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc15d9fc9c43e0a46b84e48b06470160 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LayerBlendingRangesReader.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerAndMaskInformation 23 | { 24 | class LayerBlendingRangesReader : ValueReader 25 | { 26 | private LayerBlendingRangesReader(PsdReader reader) 27 | : base(reader, true, null) 28 | { 29 | 30 | } 31 | 32 | public static LayerBlendingRanges Read(PsdReader reader) 33 | { 34 | LayerBlendingRangesReader instance = new LayerBlendingRangesReader(reader); 35 | return instance.Value; 36 | } 37 | 38 | protected override long OnLengthGet(PsdReader reader) 39 | { 40 | return reader.ReadInt32(); 41 | } 42 | 43 | protected override void ReadValue(PsdReader reader, object userData, out LayerBlendingRanges value) 44 | { 45 | value = new LayerBlendingRanges(); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LayerBlendingRangesReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 111d530874da3094aa2e586f8644ef0b 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LayerExtraRecordsReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5eae297c93b12f748bea6ee01d60d29e 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LayerInfoReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03a0fdd4b0027e34e8a55638ce7633ed 3 | timeCreated: 1495621251 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LayerMaskReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc6545e2aac5325408eea58460202a60 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LayerRecordsReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96c6dd1154805f44e8312dc2dd5edcb6 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LayerResourceReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e2a6772d018dde4b90674640aa5fea8 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LinkedDocumentReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3791675b923e30a4aa66b5fec0d3ffe5 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LinkedDocumnetFileHeaderReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1d3de3b25a4dbb459cbbb6558647836 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformation/LinkedLayerReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 463c9f037fc3db9488d6cd8df8515859 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerAndMaskInformationSectionReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 251221601ad461641bebd461303194ba 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d380c3db4c43e724bb90040865e88d6b 3 | folderAsset: yes 4 | timeCreated: 1495621250 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_PlLd.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2eeee0d24f0044544b0eb54a5d7862bd 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_SoLE.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("SoLE")] 25 | class Reader_SoLE : Reader_SoLd 26 | { 27 | public Reader_SoLE(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_SoLE.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26bcab48d961c654f97c24b49ecce0a3 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_SoLd.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("SoLd")] 25 | class Reader_SoLd : ResourceReaderBase 26 | { 27 | public Reader_SoLd(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | reader.ValidateType("soLD", "SoLd ID"); 36 | reader.ValidateInt32(4, "SoLd Version"); 37 | value = new DescriptorStructure(reader, true); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_SoLd.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbfb4ae51aed1674cb5e15e12ea3cda4 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_TySh.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("TySh")] 25 | class Reader_TySh : ResourceReaderBase 26 | { 27 | public Reader_TySh(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(7); 36 | 37 | reader.ValidateInt16(1, "Typetool Version"); 38 | props["Transforms"] = reader.ReadDoubles(6); 39 | props["TextVersion"] = reader.ReadInt16(); 40 | props["Text"] = new DescriptorStructure(reader); 41 | props["WarpVersion"] = reader.ReadInt16(); 42 | props["Warp"] = new DescriptorStructure(reader); 43 | props["Bounds"] = reader.ReadDoubles(2); 44 | 45 | value = props; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_TySh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6ea487ee3ab7a7448ba3efe184c6fd3 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_fxrp.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("fxrp")] 25 | class Reader_fxrp : ResourceReaderBase 26 | { 27 | public Reader_fxrp(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(); 36 | props["RefernecePoint"] = reader.ReadDoubles(2); 37 | value = props; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_fxrp.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ff68a6d0aadf674397b91073263c23d 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_iOpa.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("iOpa")] 25 | class Reader_iOpa : ResourceReaderBase 26 | { 27 | public Reader_iOpa(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(); 36 | props["Opacity"] = reader.ReadByte(); 37 | value = props; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_iOpa.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4e02abf927260f46b427bea054a1a02 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lfx2.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("lfx2")] 25 | class Reader_lfx2 : ResourceReaderBase 26 | { 27 | public Reader_lfx2(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | reader.ValidateInt32(0, "lfx2 Version"); 36 | value = new DescriptorStructure(reader, true); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lfx2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8bf723eaf376a74cbade895005b7873 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnk2.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("lnk2")] 25 | class Reader_lnk2 : Reader_lnkD 26 | { 27 | public Reader_lnk2(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnk2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5091423c9855c344b52f79c74167069 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnk3.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("lnk3")] 25 | class Reader_lnk3 : Reader_lnkD 26 | { 27 | public Reader_lnk3(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnk3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 352c9d155b5afac44822f8bf48ea0112 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnkD.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System.Collections.Generic; 23 | using SubjectNerd.PsdImporter.PsdParser.Readers.LayerAndMaskInformation; 24 | 25 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 26 | { 27 | [ResourceID("lnkD")] 28 | class Reader_lnkD : ResourceReaderBase 29 | { 30 | public Reader_lnkD(PsdReader reader, long length) 31 | : base(reader, length) 32 | { 33 | 34 | } 35 | 36 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 37 | { 38 | Properties props = new Properties(); 39 | List linkedLayers = new List(); 40 | while (reader.Position < this.EndPosition) 41 | { 42 | LinkedLayerReader r = new LinkedLayerReader(reader); 43 | linkedLayers.Add(r.Value); 44 | } 45 | 46 | props["Items"] = linkedLayers.ToArray(); 47 | value = props; 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnkD.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aaecb911d1086404aaef767fe4f43c32 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnkE.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System.Collections.Generic; 23 | using SubjectNerd.PsdImporter.PsdParser.Readers.LayerAndMaskInformation; 24 | 25 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 26 | { 27 | [ResourceID("lnkE")] 28 | class Reader_lnkE : ResourceReaderBase 29 | { 30 | public Reader_lnkE(PsdReader reader, long length) 31 | : base(reader, length) 32 | { 33 | 34 | } 35 | 36 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 37 | { 38 | Properties props = new Properties(); 39 | List linkedLayers = new List(); 40 | while (reader.Position < this.EndPosition) 41 | { 42 | EmbeddedLayerReader r = new EmbeddedLayerReader(reader); 43 | linkedLayers.Add(r.Value); 44 | } 45 | 46 | props["Items"] = linkedLayers.ToArray(); 47 | value = props; 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnkE.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd7b29687bc79274a840063f070b5fc1 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnsr.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("lnsr")] 25 | class Reader_lnsr : ResourceReaderBase 26 | { 27 | public Reader_lnsr(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(); 36 | props["Name"] = reader.ReadAscii(4); 37 | value = props; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lnsr.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: adab55297d0997748a74173011279e05 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lrFX.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 11228743d2a84894a835c67d50b16709 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lsct.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("lsct")] 25 | class Reader_lsct : ResourceReaderBase 26 | { 27 | public Reader_lsct(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(); 36 | props["SectionType"] = (SectionType)reader.ReadInt32(); 37 | value = props; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lsct.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6cd5ae5b27f0ef7409801479fe1ffdb6 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_luni.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("luni")] 25 | class Reader_luni : ResourceReaderBase 26 | { 27 | public Reader_luni(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(); 36 | props["Name"] = reader.ReadString(); 37 | value = props; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_luni.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf67e608c72f85e4eac532efa032a045 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lyid.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers.LayerResources 23 | { 24 | [ResourceID("lyid")] 25 | class Reader_lyid : ResourceReaderBase 26 | { 27 | public Reader_lyid(PsdReader reader, long length) 28 | : base(reader, length) 29 | { 30 | 31 | } 32 | 33 | protected override void ReadValue(PsdReader reader, object userData, out IProperties value) 34 | { 35 | Properties props = new Properties(); 36 | props["ID"] = reader.ReadInt32(); 37 | value = props; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_lyid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b8c01b71117b124ab688c06113bc565 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/LayerResources/Reader_shmd.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dffd427332b94794db330d347c9eb2bd 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ReaderCollector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 497cd697ad6d781459d20adae2116565 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ResourceReaderBase.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Readers 23 | { 24 | abstract class ResourceReaderBase : LazyProperties 25 | { 26 | public ResourceReaderBase(PsdReader reader, long length) 27 | : base(reader, length, null) 28 | { 29 | 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Editor/PsdParser/Readers/ResourceReaderBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9656545437c8fd44ae9435573bbde77 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/ResourceIDAttribute.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System; 23 | 24 | namespace SubjectNerd.PsdImporter.PsdParser 25 | { 26 | [AttributeUsage(AttributeTargets.Class)] 27 | class ResourceIDAttribute : Attribute 28 | { 29 | private readonly string resourceID; 30 | private string displayName; 31 | 32 | public ResourceIDAttribute(string resourceID) 33 | { 34 | this.resourceID = resourceID; 35 | } 36 | 37 | public string ID 38 | { 39 | get { return this.resourceID; } 40 | } 41 | 42 | public string DisplayName 43 | { 44 | get 45 | { 46 | if (string.IsNullOrEmpty(this.displayName) == true) 47 | return this.resourceID; 48 | return this.displayName; 49 | } 50 | set 51 | { 52 | this.displayName = value; 53 | } 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Editor/PsdParser/ResourceIDAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eef9c653732a3624f8a17397fcc4e8cd 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/SectionType.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser 23 | { 24 | public enum SectionType 25 | { 26 | Normal, 27 | 28 | Opend = 1, 29 | 30 | Closed = 2, 31 | 32 | Divider = 3, 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Editor/PsdParser/SectionType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18bd284f55725f44eaf724c76c60491a 3 | timeCreated: 1495621252 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7ec05de93fca244ca16de91b2bc028c 3 | folderAsset: yes 4 | timeCreated: 1495621250 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/BaseStructure.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | using System.Collections.Generic; 23 | 24 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 25 | { 26 | class BaseStructure : Properties 27 | { 28 | public BaseStructure(PsdReader reader) 29 | { 30 | List items = new List(); 31 | int count = reader.ReadInt32(); 32 | for (int i = 0; i < count; i++) 33 | { 34 | string type = reader.ReadType(); 35 | object value = StructureReader.Read(type, reader); 36 | items.Add(value); 37 | } 38 | this.Add("Items", items.ToArray()); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/BaseStructure.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06f23a3493893264d8841c8e724ed6e7 3 | timeCreated: 1495621251 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureAlias.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureAlias : Properties 25 | { 26 | public StructureAlias(PsdReader reader) 27 | { 28 | int length = reader.ReadInt32(); 29 | this.Add("Alias", reader.ReadAscii(length)); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureAlias.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 664764c90a02278408712cbc5a9f2311 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureClass.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureClass : Properties 25 | { 26 | public StructureClass() 27 | : base(2) 28 | { 29 | 30 | } 31 | 32 | public StructureClass(PsdReader reader) 33 | { 34 | this.Add("Name", reader.ReadString()); 35 | this.Add("ClassID", reader.ReadKey()); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureClass.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92da7eeb487cd0741b84347a8c264ac1 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureEngineData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fdc12522699aab4e9b4308b60bfe57c 3 | timeCreated: 1495621256 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureEnumerate.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureEnumerate : Properties 25 | { 26 | public StructureEnumerate() 27 | : base(2) 28 | { 29 | 30 | } 31 | 32 | public StructureEnumerate(PsdReader reader) 33 | { 34 | this.Add("Type", reader.ReadKey()); 35 | this.Add("Value", reader.ReadKey()); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureEnumerate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b3c13b4b2abd744b92f9cca2f3126f7 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureEnumerateReference.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureEnumerateReference : Properties 25 | { 26 | public StructureEnumerateReference() 27 | : base(4) 28 | { 29 | 30 | } 31 | 32 | public StructureEnumerateReference(PsdReader reader) 33 | { 34 | this.Add("Name", reader.ReadString()); 35 | this.Add("ClassID", reader.ReadKey()); 36 | this.Add("TypeID", reader.ReadKey()); 37 | this.Add("EnumID", reader.ReadKey()); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureEnumerateReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5366e3ebe23e3f74cbcbe75b41d748b6 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureList.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureList : BaseStructure 25 | { 26 | public StructureList(PsdReader reader) 27 | : base(reader) 28 | { 29 | 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bf436896c74e9d42a498ee55f8cfce6 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureObjectArray.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 967fdb362507d714aaa62e22993b3bfe 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureOffset.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureOffset : Properties 25 | { 26 | public StructureOffset() 27 | : base(4) 28 | { 29 | 30 | } 31 | 32 | public StructureOffset(PsdReader reader) 33 | { 34 | this.Add("Name", reader.ReadString()); 35 | this.Add("ClassID", reader.ReadKey()); 36 | this.Add("Offset", reader.ReadInt32()); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureOffset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32dd6919b3689f246b234ef47f00a120 3 | timeCreated: 1495621253 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureProperty.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureProperty : Properties 25 | { 26 | public StructureProperty() 27 | : base(3) 28 | { 29 | 30 | } 31 | 32 | public StructureProperty(PsdReader reader) 33 | { 34 | this.Add("Name", reader.ReadString()); 35 | this.Add("ClassID", reader.ReadKey()); 36 | this.Add("KeyID", reader.ReadKey()); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureProperty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80c8f83404b7ad44482415b73017df28 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ffc2c4d8feef724da62bf5ebe053197 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureReference.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureReference : BaseStructure 25 | { 26 | public StructureReference(PsdReader reader) 27 | : base(reader) 28 | { 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8df7a0352a5fd3408fe503a871c19aa 3 | timeCreated: 1495621257 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureUnitFloat.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureUnitFloat : Properties 25 | { 26 | public StructureUnitFloat() 27 | : base(2) 28 | { 29 | 30 | } 31 | 32 | public StructureUnitFloat(PsdReader reader) 33 | { 34 | string type = reader.ReadType(); 35 | 36 | this.Add("Type", PsdUtility.ToUnitType(type)); 37 | this.Add("Value", reader.ReadDouble()); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureUnitFloat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94dd7a18f74e885458b034b7827e6010 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureUnknownOSType.cs: -------------------------------------------------------------------------------- 1 | #region License 2 | //Ntreev Photoshop Document Parser for .Net 3 | // 4 | //Released under the MIT License. 5 | // 6 | //Copyright (c) 2015 Ntreev Soft co., Ltd. 7 | // 8 | //Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated 9 | //documentation files (the "Software"), to deal in the Software without restriction, including without limitation the 10 | //rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 11 | //persons to whom the Software is furnished to do so, subject to the following conditions: 12 | // 13 | //The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 14 | //Software. 15 | // 16 | //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 17 | //WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | //COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 19 | //OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 | #endregion 21 | 22 | namespace SubjectNerd.PsdImporter.PsdParser.Structures 23 | { 24 | class StructureUnknownOSType : Properties 25 | { 26 | public StructureUnknownOSType(string value) 27 | { 28 | this.Add("Value", value); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Editor/PsdParser/Structures/StructureUnknownOSType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe447c07b1f37644e9e07d63776399d9 3 | timeCreated: 1495621258 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/UnitType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c21848433cff194395b46eebcb19eeb 3 | timeCreated: 1495621254 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/PsdParser/ValueReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95c9d4a4c30f5c047b0914d32819682b 3 | timeCreated: 1495621255 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/Reconstructor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e99401f8fed95f40b3349c6bfe630df 3 | folderAsset: yes 4 | timeCreated: 1496307188 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/Reconstructor/IReconstructor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a90c5588bd83cc84aa9adc10a898d932 3 | timeCreated: 1496307189 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/Reconstructor/SpriteReconstructor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 360c08433ff82e1448e3bdf81442ae48 3 | timeCreated: 1496661420 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/Reconstructor/UnityGuiReconstructor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ec17ec6e24698b4eb12a2aec3d05aab 3 | timeCreated: 1496669728 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e35b668ea8d04543acd9d7766f748e6 3 | folderAsset: yes 4 | timeCreated: 1496338057 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Editor/Utils/EditorCoroutineRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7160e1f0b8be26649be574c8502f6420 3 | timeCreated: 1496338057 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/Utils/SpriteAlignUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0eda380fbebf5c43b3b94d6aab8b251 3 | timeCreated: 1496338057 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Jeiel Aranal 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c5722503f136cff4cb8ec814bb4976c1 3 | timeCreated: 1496241936 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Psd2Unity Importer 2 | 3 | A Photoshop importer tool for the Unity game editor that simplifies layer import and layout rebuilding in Unity. 4 | 5 | This is a rewrite of an [earlier importer](https://github.com/ChemiKhazi/UnityPsdImporter) to use the more compatible [NtreevSoft PSD Parser](https://github.com/NtreevSoft/psd-parser) library as well as make the project more maintainable. 6 | 7 | ## Installation 8 | 9 | Get the latest UnityPackage from the [GitHub releases](https://github.com/ChemiKhazi/PsdToUnityImporter/releases) page. The `PsdToUnity` directory can be moved anywhere afterwards. 10 | 11 | ## Usage 12 | 13 | Documentation is WIP but the [basic workflow](https://github.com/ChemiKhazi/UnityPsdImporter#usage) from the old PSD importer still applies. 14 | 15 | ## Caveats 16 | 17 | * Only raster layers are supported as of now. For best results, flatten layers in Photoshop before importing. 18 | 19 | ## Open source used 20 | * [NtreevSoft PSD Parser](https://github.com/NtreevSoft/psd-parser) 21 | * [@LotteMakesStuff](https://github.com/LotteMakesStuff)'s [EditorCoroutineRunner](https://gist.github.com/LotteMakesStuff/16b5f2fc108f9a0201950c797d53cfbf) 22 | * [FullSerializer](https://github.com/jacobdufault/fullserializer) 23 | -------------------------------------------------------------------------------- /README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8dab8c0e1a8a8248b3538c8bfac95cc 3 | timeCreated: 1496241936 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | --------------------------------------------------------------------------------