private void GetStaticInfo() { Statics = new Vars_Info(Vars_Info.ListType.Statics); Statics.SetScriptParamCount(Header.ParameterCount); IO.Reader reader = new IO.Reader(file); reader.BaseStream.Position = Header.StaticsOffset + Header.RSC7Offset; for (int count = 0; count < Header.StaticsCount; count++) { Statics.AddVar(Program.IsBit32 ? reader.CReadInt32() : reader.ReadInt64()); } }
public Vars_Info Clone(bool aggregate = false) { Vars_Info v = new Vars_Info(this.Listtype, aggregate, 0); v.count = count; v.scriptParamCount = scriptParamCount; v.VarRemapper = (VarRemapper == null ? null : new Dictionary <int, int>(VarRemapper)); foreach (Var var in this.Vars) { v.Vars.Add(var.Clone(v)); } return(v); }
private void GetStaticInfo() { Statics = new Vars_Info(Vars_Info.ListType.Statics); IO.Reader reader = new IO.Reader(file, ConsoleVer); reader.BaseStream.Position = Header.StaticsOffset + Header.RSC7Offset; for (int count = 0; count < Header.StaticsCount; count++) { if (ConsoleVer) { Statics.AddVar(reader.SReadInt32()); } else { Statics.AddVar(reader.ReadInt64()); } } }