FTRuntime and FTEditor namespaces

This commit is contained in:
2016-10-06 23:34:10 +07:00
parent 5bd714837a
commit 679962efa8
25 changed files with 59 additions and 30 deletions

View File

@@ -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:

View File

@@ -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>

View File

@@ -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>();

View File

@@ -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>();

View File

@@ -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;

View File

@@ -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>();

View File

@@ -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>();

View File

@@ -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;

View File

@@ -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,

View File

@@ -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,

View File

@@ -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 {
// ---------------------------------------------------------------------

View File

@@ -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";

View File

@@ -4,7 +4,9 @@ using UnityEditor;
using System.Linq;
using System.Collections.Generic;
namespace FlashTools.Internal {
using FTRuntime.Internal;
namespace FTEditor {
//
// SwfIntRange

View File

@@ -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>

View File

@@ -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;

View File

@@ -1,6 +1,6 @@
using UnityEngine;
namespace FlashTools.Internal {
namespace FTRuntime.Internal {
public class SwfIntRangeAttribute : PropertyAttribute {
public int Min;
public int Max;

View File

@@ -1,6 +1,6 @@
using System;
namespace FlashTools.Internal {
namespace FTRuntime.Internal {
public class SwfList<T> {
T[] _data;
int _size;

View File

@@ -1,6 +1,6 @@
using UnityEngine;
namespace FlashTools.Internal {
namespace FTRuntime.Internal {
[System.Serializable]
public struct SwfSettingsData {
public enum AtlasFilter {

View File

@@ -1,6 +1,6 @@
using UnityEngine;
namespace FlashTools.Internal {
namespace FTRuntime.Internal {
public static class SwfUtils {
public const float UVPrecision = 1.0f / 16384.0f;

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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>();

View File

@@ -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>