-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4326cb
commit 5e74675
Showing
212 changed files
with
7,431 additions
and
7,639 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
namespace Flazzy.ABC | ||
namespace Flazzy.ABC; | ||
|
||
public abstract class AS3Item : FlashItem | ||
{ | ||
public abstract class AS3Item : FlashItem | ||
{ | ||
public ABCFile ABC { get; } | ||
public ABCFile ABC { get; } | ||
|
||
public AS3Item(ABCFile abc) | ||
{ | ||
ABC = abc; | ||
} | ||
public AS3Item(ABCFile abc) | ||
{ | ||
ABC = abc; | ||
} | ||
|
||
public virtual string ToAS3() | ||
{ | ||
throw new NotSupportedException(); | ||
} | ||
public virtual string ToAS3() | ||
{ | ||
throw new NotSupportedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,39 @@ | ||
using Flazzy.IO; | ||
|
||
namespace Flazzy.ABC | ||
namespace Flazzy.ABC; | ||
|
||
public class ASClass : ASContainer | ||
{ | ||
public class ASClass : ASContainer | ||
{ | ||
internal int InstanceIndex { get; set; } | ||
public ASInstance Instance => ABC.Instances[InstanceIndex]; | ||
internal int InstanceIndex { get; set; } | ||
public ASInstance Instance => ABC.Instances[InstanceIndex]; | ||
|
||
public int ConstructorIndex { get; set; } | ||
public ASMethod Constructor => ABC.Methods[ConstructorIndex]; | ||
public int ConstructorIndex { get; set; } | ||
public ASMethod Constructor => ABC.Methods[ConstructorIndex]; | ||
|
||
public override bool IsStatic => true; | ||
public override ASMultiname QName => Instance.QName; | ||
protected override string DebuggerDisplay => ToAS3(); | ||
public override bool IsStatic => true; | ||
public override ASMultiname QName => Instance.QName; | ||
protected override string DebuggerDisplay => ToAS3(); | ||
|
||
public ASClass(ABCFile abc) | ||
: base(abc) | ||
{ } | ||
public ASClass(ABCFile abc, FlashReader input) | ||
: base(abc) | ||
{ | ||
ConstructorIndex = input.ReadInt30(); | ||
Constructor.IsConstructor = true; | ||
Constructor.Container = this; | ||
public ASClass(ABCFile abc) | ||
: base(abc) | ||
{ } | ||
public ASClass(ABCFile abc, FlashReader input) | ||
: base(abc) | ||
{ | ||
ConstructorIndex = input.ReadInt30(); | ||
Constructor.IsConstructor = true; | ||
Constructor.Container = this; | ||
|
||
PopulateTraits(input); | ||
} | ||
PopulateTraits(input); | ||
} | ||
|
||
public override string ToAS3() | ||
{ | ||
return Instance.ToAS3(); | ||
} | ||
public override void WriteTo(FlashWriter output) | ||
{ | ||
output.WriteInt30(ConstructorIndex); | ||
base.WriteTo(output); | ||
} | ||
public override string ToAS3() | ||
{ | ||
return Instance.ToAS3(); | ||
} | ||
public override void WriteTo(FlashWriter output) | ||
{ | ||
output.WriteInt30(ConstructorIndex); | ||
base.WriteTo(output); | ||
} | ||
} |
Oops, something went wrong.