public Bin(string fileName, Vector3 position, Vector3 rotation, Vector3 scale) { // header binaryReader = new ABinaryReader(Yay0.Decompress(fileName), Endianness.Big, Encoding.GetEncoding(932)); unk1 = binaryReader.Read8(); name = binaryReader.ReadClampedString(11); offsets = binaryReader.Read32s(21); // data graphObjects = (HasGraph ? GetGraphObjects(0) : new GraphObject[0]); batches = (HasBatches ? CollectionUtility.Initialize(GetBatchCount(), index => GetBatch(index)) : new Batch[0]); shaders = (HasShaders ? CollectionUtility.Initialize(GetShaderCount(), index => GetShader(index)) : new Shader[0]); materials = (HasMaterials ? CollectionUtility.Initialize(GetMaterialCount(), index => GetMaterial(index)) : new Material[0]); textures = (HasTextures ? CollectionUtility.Initialize(GetTextureCount(), index => GetTexture(index)) : new Texture[0]); positions = (HasPositions ? CollectionUtility.Initialize(GetPositionCount(), index => GetPosition(index)) : new Vector3[0]); normals = (HasNormals ? CollectionUtility.Initialize(GetNormalCount(), index => GetNormal(index)) : new Vector3[0]); texCoord0s = (HasTexCoord0s ? CollectionUtility.Initialize(GetTexCoord0Count(), index => GetTexCoord0(index)) : new Vector2[0]); texCoord1s = (HasTexCoord1s ? CollectionUtility.Initialize(GetTexCoord1Count(), index => GetTexCoord1(index)) : new Vector2[0]); // Load textures. glTextures = textures.Select(texture => texture.ToGLTexture()).ToArray(); // Orient. Position = position; Rotation = rotation; Scale = scale; }
// Token: 0x06000241 RID: 577 RVA: 0x00007240 File Offset: 0x00005440 public sfPresetHeader(ABinaryReader binaryReader) { this.achPresetName = binaryReader.ReadClampedString(20); this.wPreset = binaryReader.Read16(); this.wBank = binaryReader.Read16(); this.wPresetBagNdx = binaryReader.Read16(); this.dwLibrary = binaryReader.Read32(); this.dwGenre = binaryReader.Read32(); this.dwMorphology = binaryReader.Read32(); }
// Token: 0x0600023D RID: 573 RVA: 0x00007168 File Offset: 0x00005368 public sfSample(ABinaryReader binaryReader) { this.achSampleName = binaryReader.ReadClampedString(20); this.dwStart = binaryReader.Read32(); this.dwEnd = binaryReader.Read32(); this.dwStartLoop = binaryReader.Read32(); this.dwEndLoop = binaryReader.Read32(); this.dwSampleRate = binaryReader.Read32(); this.byOriginalKey = binaryReader.Read8(); this.chCorrect = binaryReader.ReadS8(); this.wSampleLink = binaryReader.Read16(); this.sfSampleType = (SFSampleLink)binaryReader.Read16(); }
// Token: 0x0600023F RID: 575 RVA: 0x00007209 File Offset: 0x00005409 public sfInst(ABinaryReader binaryReader) { this.achInstName = binaryReader.ReadClampedString(20); this.wInstBagNdx = binaryReader.Read16(); }