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