mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2025-12-16 22:19:31 +07:00
namespace SwfTools to FTSwfTools
This commit is contained in:
@@ -5,9 +5,9 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using SwfTools;
|
||||
using SwfTools.SwfTags;
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools;
|
||||
using FTSwfTools.SwfTags;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace FlashTools.Internal {
|
||||
public class SwfPostprocessor : AssetPostprocessor {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools {
|
||||
namespace FTSwfTools {
|
||||
|
||||
using LibraryDefines = SortedDictionary<ushort, SwfLibraryDefine>;
|
||||
using DisplayInstances = SortedDictionary<ushort, SwfDisplayInstance>;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using SwfTools.SwfTags;
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTags;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools {
|
||||
namespace FTSwfTools {
|
||||
public class SwfContextExecuter : SwfTagVisitor<SwfDisplayList, SwfDisplayList> {
|
||||
public SwfLibrary Library = null;
|
||||
public int CurrentTag = 0;
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using SwfTools.SwfTags;
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTags;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools {
|
||||
namespace FTSwfTools {
|
||||
public class SwfDecoder {
|
||||
public SwfShortHeader OriginalHeader;
|
||||
public SwfLongHeader UncompressedHeader;
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
|
||||
using Ionic.Zlib;
|
||||
|
||||
namespace SwfTools {
|
||||
namespace FTSwfTools {
|
||||
public class SwfStreamReader {
|
||||
struct BitContext {
|
||||
public byte CachedByte;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineBinaryDataTag : SwfTagBase {
|
||||
public ushort Tag;
|
||||
public byte[] Data;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineBitsLossless2Tag : SwfTagBase {
|
||||
public ushort CharacterId;
|
||||
public byte BitmapFormat;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineBitsLosslessTag : SwfTagBase {
|
||||
public ushort CharacterId;
|
||||
public byte BitmapFormat;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineSceneAndFrameLabelDataTag : SwfTagBase {
|
||||
public struct SceneOffsetData {
|
||||
public uint Offset;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineShape2Tag : SwfTagBase {
|
||||
public ushort ShapeId;
|
||||
public SwfRect ShapeBounds;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineShape3Tag : SwfTagBase {
|
||||
public ushort ShapeId;
|
||||
public SwfRect ShapeBounds;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineShape4Tag : SwfTagBase {
|
||||
public ushort ShapeId;
|
||||
public SwfRect ShapeBounds;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineShapeTag : SwfTagBase {
|
||||
public ushort ShapeId;
|
||||
public SwfRect ShapeBounds;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DefineSpriteTag : SwfTagBase {
|
||||
public ushort SpriteId;
|
||||
public ushort FrameCount;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class DoABCTag : SwfTagBase {
|
||||
public bool ExecuteImmediately;
|
||||
public string Name;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class EnableDebugger2Tag : SwfTagBase {
|
||||
public string MD5PasswordHash;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class EnableDebuggerTag : SwfTagBase {
|
||||
public string MD5PasswordHash;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class EnableTelemetryTag : SwfTagBase {
|
||||
public byte[] SHA256PasswordHash;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class EndTag : SwfTagBase {
|
||||
public override SwfTagType TagType {
|
||||
get { return SwfTagType.End; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class ExportAssetsTag : SwfTagBase {
|
||||
public struct AssetTagData {
|
||||
public ushort Tag;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class FileAttributesTag : SwfTagBase {
|
||||
public override SwfTagType TagType {
|
||||
get { return SwfTagType.FileAttributes; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class FrameLabelTag : SwfTagBase {
|
||||
public string Name;
|
||||
public byte AnchorFlag;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class MetadataTag : SwfTagBase {
|
||||
public string Metadata;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Text;
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class PlaceObject2Tag : SwfTagBase {
|
||||
public bool HasClipActions;
|
||||
public bool HasClipDepth;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Text;
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class PlaceObject3Tag : SwfTagBase {
|
||||
public bool HasClipActions;
|
||||
public bool HasClipDepth;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class PlaceObjectTag : SwfTagBase {
|
||||
public ushort CharacterId;
|
||||
public ushort Depth;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class ProtectTag : SwfTagBase {
|
||||
public string MD5Password;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class RemoveObject2Tag : SwfTagBase {
|
||||
public ushort Depth;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class RemoveObjectTag : SwfTagBase {
|
||||
public ushort CharacterId;
|
||||
public ushort Depth;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class ScriptLimitsTag : SwfTagBase {
|
||||
public ushort MaxRecursionDepth;
|
||||
public ushort ScriptTimeoutSeconds;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using SwfTools.SwfTypes;
|
||||
using FTSwfTools.SwfTypes;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class SetBackgroundColorTag : SwfTagBase {
|
||||
public SwfColor BackgroundColor;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class ShowFrameTag : SwfTagBase {
|
||||
public override SwfTagType TagType {
|
||||
get { return SwfTagType.ShowFrame; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public enum SwfTagType {
|
||||
// -----------------------------
|
||||
// Display list
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public interface SwfTagVisitor<TArg, TResult> {
|
||||
TResult Visit(PlaceObjectTag tag, TArg arg);
|
||||
TResult Visit(PlaceObject2Tag tag, TArg arg);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class SymbolClassTag : SwfTagBase {
|
||||
public struct SymbolTagData {
|
||||
public ushort Tag;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class UnknownTag : SwfTagBase {
|
||||
public int _tagId;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTags {
|
||||
namespace FTSwfTools.SwfTags {
|
||||
public class UnsupportedTag : SwfTagBase {
|
||||
SwfTagType _tagType;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfBlendMode {
|
||||
public enum Mode {
|
||||
Normal,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfClipActions {
|
||||
public static SwfClipActions identity {
|
||||
get {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfColor {
|
||||
public byte R;
|
||||
public byte G;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfColorTransform {
|
||||
public short RMul;
|
||||
public short GMul;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using SwfTools.SwfTags;
|
||||
using FTSwfTools.SwfTags;
|
||||
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfControlTags {
|
||||
public List<SwfTagBase> Tags;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfFillStyleType {
|
||||
public enum Type {
|
||||
SolidColor,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfLongHeader {
|
||||
public SwfShortHeader ShortHeader;
|
||||
public SwfRect FrameSize;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfMatrix {
|
||||
public float ScaleX;
|
||||
public float ScaleY;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfRect {
|
||||
public float XMin;
|
||||
public float XMax;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfShapesWithStyle {
|
||||
public enum ShapeStyleType {
|
||||
Shape,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.IO;
|
||||
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfShortHeader {
|
||||
public string Format;
|
||||
public byte Version;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SwfTools.SwfTypes {
|
||||
namespace FTSwfTools.SwfTypes {
|
||||
public struct SwfSurfaceFilters {
|
||||
public abstract class Filter {
|
||||
public enum Types {
|
||||
|
||||
Reference in New Issue
Block a user