mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-16 22:19:31 +07:00
FTRuntime and FTEditor namespaces
This commit is contained in:
@@ -8,7 +8,7 @@ MonoBehaviour:
|
|||||||
m_GameObject: {fileID: 0}
|
m_GameObject: {fileID: 0}
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
m_EditorHideFlags: 0
|
m_EditorHideFlags: 0
|
||||||
m_Script: {fileID: 11500000, guid: 6da591d87f967451298a275621e1fd5d, type: 3}
|
m_Script: {fileID: 202113923, guid: 2d72a763e7d744285b19a282e955a055, type: 3}
|
||||||
m_Name: SwfSettings
|
m_Name: SwfSettings
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
Settings:
|
Settings:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{30886846-765A-400B-AD3E-436089DE68ED}</ProjectGuid>
|
<ProjectGuid>{30886846-765A-400B-AD3E-436089DE68ED}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<RootNamespace>FlashTools</RootNamespace>
|
<RootNamespace>FTEditor</RootNamespace>
|
||||||
<UseMSBuildEngine>True</UseMSBuildEngine>
|
<UseMSBuildEngine>True</UseMSBuildEngine>
|
||||||
<ReleaseVersion>0.5</ReleaseVersion>
|
<ReleaseVersion>0.5</ReleaseVersion>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||||
|
|||||||
@@ -5,7 +5,10 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
|
namespace FTEditor.Editors {
|
||||||
[CustomEditor(typeof(SwfAsset)), CanEditMultipleObjects]
|
[CustomEditor(typeof(SwfAsset)), CanEditMultipleObjects]
|
||||||
public class SwfAssetEditor : Editor {
|
public class SwfAssetEditor : Editor {
|
||||||
List<SwfAsset> _assets = new List<SwfAsset>();
|
List<SwfAsset> _assets = new List<SwfAsset>();
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
|
||||||
|
namespace FTEditor.Editors {
|
||||||
[CustomEditor(typeof(SwfClipAsset)), CanEditMultipleObjects]
|
[CustomEditor(typeof(SwfClipAsset)), CanEditMultipleObjects]
|
||||||
public class SwfClipAssetEditor : Editor {
|
public class SwfClipAssetEditor : Editor {
|
||||||
List<SwfClipAsset> _clips = new List<SwfClipAsset>();
|
List<SwfClipAsset> _clips = new List<SwfClipAsset>();
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ using UnityEditor;
|
|||||||
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
|
||||||
|
namespace FTEditor.Editors {
|
||||||
[CustomPreview(typeof(SwfClipAsset))]
|
[CustomPreview(typeof(SwfClipAsset))]
|
||||||
public class SwfClipAssetPreview : ObjectPreview {
|
public class SwfClipAssetPreview : ObjectPreview {
|
||||||
int _sequence = 0;
|
int _sequence = 0;
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ using UnityEditor;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
|
||||||
|
namespace FTEditor.Editors {
|
||||||
[CustomEditor(typeof(SwfClipController)), CanEditMultipleObjects]
|
[CustomEditor(typeof(SwfClipController)), CanEditMultipleObjects]
|
||||||
public class SwfClipControllerEditor : Editor {
|
public class SwfClipControllerEditor : Editor {
|
||||||
List<SwfClipController> _controllers = new List<SwfClipController>();
|
List<SwfClipController> _controllers = new List<SwfClipController>();
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ using UnityEditor;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
|
||||||
|
namespace FTEditor.Editors {
|
||||||
[CustomEditor(typeof(SwfClip)), CanEditMultipleObjects]
|
[CustomEditor(typeof(SwfClip)), CanEditMultipleObjects]
|
||||||
public class SwfClipEditor : Editor {
|
public class SwfClipEditor : Editor {
|
||||||
List<SwfClip> _clips = new List<SwfClip>();
|
List<SwfClip> _clips = new List<SwfClip>();
|
||||||
|
|||||||
@@ -3,7 +3,10 @@ using UnityEditor;
|
|||||||
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
|
namespace FTEditor.Editors {
|
||||||
[CustomEditor(typeof(SwfManager))]
|
[CustomEditor(typeof(SwfManager))]
|
||||||
public class SwfManagerEditor : Editor {
|
public class SwfManagerEditor : Editor {
|
||||||
SwfManager _manager = null;
|
SwfManager _manager = null;
|
||||||
|
|||||||
@@ -1,11 +1,15 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
|
namespace FTEditor.Postprocessors {
|
||||||
public class SwfAssetPostprocessor : AssetPostprocessor {
|
public class SwfAssetPostprocessor : AssetPostprocessor {
|
||||||
static void OnPostprocessAllAssets(
|
static void OnPostprocessAllAssets(
|
||||||
string[] imported_assets,
|
string[] imported_assets,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -9,7 +10,10 @@ using FTSwfTools;
|
|||||||
using FTSwfTools.SwfTags;
|
using FTSwfTools.SwfTags;
|
||||||
using FTSwfTools.SwfTypes;
|
using FTSwfTools.SwfTypes;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
|
namespace FTEditor.Postprocessors {
|
||||||
public class SwfPostprocessor : AssetPostprocessor {
|
public class SwfPostprocessor : AssetPostprocessor {
|
||||||
static void OnPostprocessAllAssets(
|
static void OnPostprocessAllAssets(
|
||||||
string[] imported_assets,
|
string[] imported_assets,
|
||||||
|
|||||||
@@ -8,7 +8,10 @@ using System.Runtime.Serialization.Formatters.Binary;
|
|||||||
|
|
||||||
using Ionic.Zlib;
|
using Ionic.Zlib;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
|
namespace FTEditor {
|
||||||
public static class SwfEditorUtils {
|
public static class SwfEditorUtils {
|
||||||
|
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ using UnityEditor;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime;
|
||||||
|
|
||||||
|
namespace FTEditor {
|
||||||
public class SwfMaterialCache {
|
public class SwfMaterialCache {
|
||||||
|
|
||||||
const string SwfSimpleShaderName = "SwfSimpleShader";
|
const string SwfSimpleShaderName = "SwfSimpleShader";
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ using UnityEditor;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
|
namespace FTEditor {
|
||||||
|
|
||||||
//
|
//
|
||||||
// SwfIntRange
|
// SwfIntRange
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{48D55C1A-BBD5-44D9-9CC5-473A1BBA9AB5}</ProjectGuid>
|
<ProjectGuid>{48D55C1A-BBD5-44D9-9CC5-473A1BBA9AB5}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<RootNamespace>FlashTools</RootNamespace>
|
<RootNamespace>FTRuntime</RootNamespace>
|
||||||
<UseMSBuildEngine>True</UseMSBuildEngine>
|
<UseMSBuildEngine>True</UseMSBuildEngine>
|
||||||
<ReleaseVersion>0.5</ReleaseVersion>
|
<ReleaseVersion>0.5</ReleaseVersion>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
namespace FTRuntime.Internal {
|
||||||
public class SwfAssocList<T> {
|
public class SwfAssocList<T> {
|
||||||
SwfList<T> _list;
|
SwfList<T> _list;
|
||||||
Dictionary<T, int> _dict;
|
Dictionary<T, int> _dict;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
namespace FTRuntime.Internal {
|
||||||
public class SwfIntRangeAttribute : PropertyAttribute {
|
public class SwfIntRangeAttribute : PropertyAttribute {
|
||||||
public int Min;
|
public int Min;
|
||||||
public int Max;
|
public int Max;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
namespace FTRuntime.Internal {
|
||||||
public class SwfList<T> {
|
public class SwfList<T> {
|
||||||
T[] _data;
|
T[] _data;
|
||||||
int _size;
|
int _size;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
namespace FTRuntime.Internal {
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public struct SwfSettingsData {
|
public struct SwfSettingsData {
|
||||||
public enum AtlasFilter {
|
public enum AtlasFilter {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace FlashTools.Internal {
|
namespace FTRuntime.Internal {
|
||||||
public static class SwfUtils {
|
public static class SwfUtils {
|
||||||
|
|
||||||
public const float UVPrecision = 1.0f / 16384.0f;
|
public const float UVPrecision = 1.0f / 16384.0f;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using FlashTools.Internal;
|
using FTRuntime.Internal;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools {
|
namespace FTRuntime {
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public struct SwfVec2Data {
|
public struct SwfVec2Data {
|
||||||
public float x;
|
public float x;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using FlashTools.Internal;
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
namespace FlashTools {
|
namespace FTRuntime {
|
||||||
[ExecuteInEditMode, DisallowMultipleComponent]
|
[ExecuteInEditMode, DisallowMultipleComponent]
|
||||||
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
|
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
|
||||||
public class SwfClip : MonoBehaviour {
|
public class SwfClip : MonoBehaviour {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using FlashTools.Internal;
|
using FTRuntime.Internal;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools {
|
namespace FTRuntime {
|
||||||
public class SwfClipAsset : ScriptableObject {
|
public class SwfClipAsset : ScriptableObject {
|
||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class SubMeshData {
|
public class SubMeshData {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using FlashTools.Internal;
|
using FTRuntime.Internal;
|
||||||
|
|
||||||
namespace FlashTools {
|
namespace FTRuntime {
|
||||||
[ExecuteInEditMode, DisallowMultipleComponent]
|
[ExecuteInEditMode, DisallowMultipleComponent]
|
||||||
[RequireComponent(typeof(SwfClip))]
|
[RequireComponent(typeof(SwfClip))]
|
||||||
public class SwfClipController : MonoBehaviour {
|
public class SwfClipController : MonoBehaviour {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using FlashTools.Internal;
|
using FTRuntime.Internal;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FlashTools {
|
namespace FTRuntime {
|
||||||
[ExecuteInEditMode, DisallowMultipleComponent]
|
[ExecuteInEditMode, DisallowMultipleComponent]
|
||||||
public class SwfManager : MonoBehaviour {
|
public class SwfManager : MonoBehaviour {
|
||||||
SwfAssocList<SwfClip> _clips = new SwfAssocList<SwfClip>();
|
SwfAssocList<SwfClip> _clips = new SwfAssocList<SwfClip>();
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{4EB8756F-398B-4356-90FB-0ED056B3E6E9}</ProjectGuid>
|
<ProjectGuid>{4EB8756F-398B-4356-90FB-0ED056B3E6E9}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<RootNamespace>FlashTools</RootNamespace>
|
<RootNamespace>FTSwfTools</RootNamespace>
|
||||||
<UseMSBuildEngine>True</UseMSBuildEngine>
|
<UseMSBuildEngine>True</UseMSBuildEngine>
|
||||||
<ReleaseVersion>0.5</ReleaseVersion>
|
<ReleaseVersion>0.5</ReleaseVersion>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||||
|
|||||||
Reference in New Issue
Block a user