Exemple #1
0
        public static SC3Decompiler Open(SC3Module module, bool leaveOpen = false)
        {
            if (module == null)
            {
                throw new ArgumentNullException(nameof(module));
            }

            return(new SC3Decompiler(module, leaveOpen));
        }
Exemple #2
0
        protected MetadataEntity(SC3Module module, int id, int offset, int length)
        {
            Module = module;
            Id     = id;
            Offset = offset;
            Length = length;

            _data = new Lazy <ImmutableArray <byte> >(ReadData);
        }
Exemple #3
0
        public static SC3Decompiler Load(string path)
        {
            if (string.IsNullOrEmpty(path))
            {
                throw new ArgumentNullException(nameof(path));
            }

            var module = SC3Module.Load(path);

            return(Open(module));
        }
Exemple #4
0
        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));
        }
Exemple #5
0
 internal StringHandle(SC3Module module, int id, int offset, int length)
     : base(module, id, offset, length)
 {
 }
Exemple #6
0
 internal BlockDefinition(SC3Module module, int id, int offset, int length)
     : base(module, id, offset, length)
 {
 }
Exemple #7
0
 public StringCache(SC3Module module)
 {
     _module  = module;
     _decoder = new SC3StringDecoder(module.Game);
 }
Exemple #8
0
 private SC3Decompiler(SC3Module module, bool leaveOpen)
 {
     Module     = module;
     _leaveOpen = leaveOpen;
 }
Exemple #9
0
 public ReferenceCollector(SC3Module module)
 {
     _module = module;
 }