KFreonLib.Textures.TreeTexInfo.InfoInitialise C# (CSharp) Method

InfoInitialise() private method

Common initialiser used by both TexInfo derivations.
private InfoInitialise ( ITexture2D tex2D, int ExpID, uint hash, int WhichGame, IPCCObject pcc, int tfcoffset, string thumbpath, string pathBIOGame ) : void
tex2D ITexture2D Texture2D to get info from, e.g. Format, mips.
ExpID int ExpID of texture.
hash uint Hash of texture.
WhichGame int Game target.
pcc IPCCObject PCC to get info from, e.g. PackageName
tfcoffset int Offset of image data in TFC.
thumbpath string Path to thumbnail image.
pathBIOGame string
return void
        private void InfoInitialise(ITexture2D tex2D, int ExpID, uint hash, int WhichGame, IPCCObject pcc, int tfcoffset, string thumbpath, string pathBIOGame)
        {
            List<string> files = new List<string>();
            files.Add(pcc.pccFileName);
            List<int> expids = new List<int>();
            expids.Add(ExpID);
            InfoInitialise(files, expids, hash, tex2D.imgList.Where(t => t.offset != -1).Count(), new List<ITexture2D>(), WhichGame, pathBIOGame);

            FullPackage = pcc.Exports[ExpID].PackageFullName;

            TexName = tex2D.texName;
            tfcOffset = tfcoffset;

            Format = tex2D.texFormat;
            ThumbnailPath = thumbpath;

            // KFreon: ME2 only?
            if (pcc.Exports[ExpID].PackageFullName == "Base Package")
                FullPackage = Path.GetFileNameWithoutExtension(pcc.pccFileName).ToUpperInvariant();
            else
                FullPackage = pcc.Exports[ExpID].PackageFullName.ToUpperInvariant();
        }

Same methods

TreeTexInfo::InfoInitialise ( List GivenFiles, List GivenExpIDs, uint GivenHash, int GivenMips, List GivenTextures, int WhichGame, string pathBIOGame ) : void