public static SC3Decompiler Open(SC3Module module, bool leaveOpen = false) { if (module == null) { throw new ArgumentNullException(nameof(module)); } return(new SC3Decompiler(module, leaveOpen)); }
protected MetadataEntity(SC3Module module, int id, int offset, int length) { Module = module; Id = id; Offset = offset; Length = length; _data = new Lazy <ImmutableArray <byte> >(ReadData); }
public static SC3Decompiler Load(string path) { if (string.IsNullOrEmpty(path)) { throw new ArgumentNullException(nameof(path)); } var module = SC3Module.Load(path); return(Open(module)); }
public static SC3Decompiler Load(Stream stream, bool leaveOpen = false) { if (stream == null) { throw new ArgumentNullException(nameof(stream)); } var module = SC3Module.Load(stream, leaveOpen); return(new SC3Decompiler(module, leaveOpen)); }
internal StringHandle(SC3Module module, int id, int offset, int length) : base(module, id, offset, length) { }
internal BlockDefinition(SC3Module module, int id, int offset, int length) : base(module, id, offset, length) { }
public StringCache(SC3Module module) { _module = module; _decoder = new SC3StringDecoder(module.Game); }
private SC3Decompiler(SC3Module module, bool leaveOpen) { Module = module; _leaveOpen = leaveOpen; }
public ReferenceCollector(SC3Module module) { _module = module; }