namespace SwfTools to FTSwfTools

This commit is contained in:
2016-10-06 22:18:23 +07:00
parent f03a3135ea
commit 5bd714837a
49 changed files with 67 additions and 67 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -4,7 +4,7 @@ using System.Collections.Generic;
using Ionic.Zlib;
namespace SwfTools {
namespace FTSwfTools {
public class SwfStreamReader {
struct BitContext {
public byte CachedByte;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class DefineBinaryDataTag : SwfTagBase {
public ushort Tag;
public byte[] Data;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class DefineBitsLossless2Tag : SwfTagBase {
public ushort CharacterId;
public byte BitmapFormat;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class DefineBitsLosslessTag : SwfTagBase {
public ushort CharacterId;
public byte BitmapFormat;

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class DefineSceneAndFrameLabelDataTag : SwfTagBase {
public struct SceneOffsetData {
public uint Offset;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class EnableDebugger2Tag : SwfTagBase {
public string MD5PasswordHash;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class EnableDebuggerTag : SwfTagBase {
public string MD5PasswordHash;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class EnableTelemetryTag : SwfTagBase {
public byte[] SHA256PasswordHash;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class EndTag : SwfTagBase {
public override SwfTagType TagType {
get { return SwfTagType.End; }

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class ExportAssetsTag : SwfTagBase {
public struct AssetTagData {
public ushort Tag;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class FileAttributesTag : SwfTagBase {
public override SwfTagType TagType {
get { return SwfTagType.FileAttributes; }

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class FrameLabelTag : SwfTagBase {
public string Name;
public byte AnchorFlag;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class MetadataTag : SwfTagBase {
public string Metadata;

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class ProtectTag : SwfTagBase {
public string MD5Password;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class RemoveObject2Tag : SwfTagBase {
public ushort Depth;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class RemoveObjectTag : SwfTagBase {
public ushort CharacterId;
public ushort Depth;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class ScriptLimitsTag : SwfTagBase {
public ushort MaxRecursionDepth;
public ushort ScriptTimeoutSeconds;

View File

@@ -1,6 +1,6 @@
using SwfTools.SwfTypes;
using FTSwfTools.SwfTypes;
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class SetBackgroundColorTag : SwfTagBase {
public SwfColor BackgroundColor;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class ShowFrameTag : SwfTagBase {
public override SwfTagType TagType {
get { return SwfTagType.ShowFrame; }

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public enum SwfTagType {
// -----------------------------
// Display list

View File

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

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class SymbolClassTag : SwfTagBase {
public struct SymbolTagData {
public ushort Tag;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class UnknownTag : SwfTagBase {
public int _tagId;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTags {
namespace FTSwfTools.SwfTags {
public class UnsupportedTag : SwfTagBase {
SwfTagType _tagType;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfBlendMode {
public enum Mode {
Normal,

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfClipActions {
public static SwfClipActions identity {
get {

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfColor {
public byte R;
public byte G;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfColorTransform {
public short RMul;
public short GMul;

View File

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

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfFillStyleType {
public enum Type {
SolidColor,

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfLongHeader {
public SwfShortHeader ShortHeader;
public SwfRect FrameSize;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfMatrix {
public float ScaleX;
public float ScaleY;

View File

@@ -1,4 +1,4 @@
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfRect {
public float XMin;
public float XMax;

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfShapesWithStyle {
public enum ShapeStyleType {
Shape,

View File

@@ -1,6 +1,6 @@
using System.IO;
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfShortHeader {
public string Format;
public byte Version;

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace SwfTools.SwfTypes {
namespace FTSwfTools.SwfTypes {
public struct SwfSurfaceFilters {
public abstract class Filter {
public enum Types {