mirror of
https://github.com/BlackMATov/unity-flash-tools.git
synced 2026-09-30 02:46:50 +07:00
little style fixes
This commit is contained in:
@@ -62,8 +62,7 @@ namespace FlashTools.Internal {
|
||||
{
|
||||
var animation_data = new SwfAnimationData{
|
||||
FrameRate = decoder.UncompressedHeader.FrameRate,
|
||||
FrameSize = decoder.UncompressedHeader.FrameSize.ToUnityVectorSize()
|
||||
};
|
||||
FrameSize = decoder.UncompressedHeader.FrameSize.ToUnityVectorSize()};
|
||||
var context = new SwfContext();
|
||||
var executer = new SwfContextExecuter(context, 0);
|
||||
while ( executer.NextFrame(decoder.Tags, context.DisplayList) ) {
|
||||
@@ -173,8 +172,7 @@ namespace FlashTools.Internal {
|
||||
ClipDepth = 0,
|
||||
Bitmap = mask.Bitmap,
|
||||
Matrix = mask.Matrix,
|
||||
ColorTransform = mask.ColorTransform
|
||||
});
|
||||
ColorTransform = mask.ColorTransform});
|
||||
}
|
||||
}
|
||||
masks.RemoveAll(p => p.ClipDepth < depth);
|
||||
@@ -203,8 +201,7 @@ namespace FlashTools.Internal {
|
||||
var bitmap_data = new SwfAnimationBitmapData{
|
||||
Id = bitmap_define.Key,
|
||||
RealSize = new Vector2(bitmap_define.Value.Width, bitmap_define.Value.Height),
|
||||
SourceRect = rects[i]
|
||||
};
|
||||
SourceRect = rects[i]};
|
||||
bitmaps.Add(bitmap_data);
|
||||
}
|
||||
return bitmaps;
|
||||
|
||||
@@ -28,8 +28,7 @@ namespace FlashTools.Internal.SwfTools {
|
||||
var new_short_header = new SwfShortHeader{
|
||||
Format = "FWS",
|
||||
Version = OriginalHeader.Version,
|
||||
FileLength = OriginalHeader.FileLength
|
||||
};
|
||||
FileLength = OriginalHeader.FileLength};
|
||||
var uncompressed_stream = new MemoryStream();
|
||||
new_short_header.Write(uncompressed_stream);
|
||||
rest_stream.WriteTo(uncompressed_stream);
|
||||
|
||||
@@ -18,9 +18,8 @@
|
||||
}
|
||||
|
||||
public static RemoveObject2Tag Create(SwfStreamReader reader) {
|
||||
var tag = new RemoveObject2Tag();
|
||||
tag.Depth = reader.ReadUInt16();
|
||||
return tag;
|
||||
return new RemoveObject2Tag{
|
||||
Depth = reader.ReadUInt16()};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -19,10 +19,9 @@
|
||||
}
|
||||
|
||||
public static RemoveObjectTag Create(SwfStreamReader reader) {
|
||||
var tag = new RemoveObjectTag();
|
||||
tag.CharacterId = reader.ReadUInt16();
|
||||
tag.Depth = reader.ReadUInt16();
|
||||
return tag;
|
||||
return new RemoveObjectTag{
|
||||
CharacterId = reader.ReadUInt16(),
|
||||
Depth = reader.ReadUInt16()};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,9 +20,8 @@ namespace FlashTools.Internal.SwfTools.SwfTags {
|
||||
}
|
||||
|
||||
public static SetBackgroundColorTag Create(SwfStreamReader reader) {
|
||||
var tag = new SetBackgroundColorTag();
|
||||
tag.BackgroundColor = SwfColor.Read(reader, false);
|
||||
return tag;
|
||||
return new SetBackgroundColorTag{
|
||||
BackgroundColor = SwfColor.Read(reader, false)};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user