// Token: 0x060022EB RID: 8939 RVA: 0x001473AC File Offset: 0x001455AC
        public static AppMain.NNS_MATERIALPTR Read(BinaryReader reader, long data0Pos, out bool transparentMaterial)
        {
            transparentMaterial = false;
            AppMain.NNS_MATERIALPTR nns_MATERIALPTR = new AppMain.NNS_MATERIALPTR();
            nns_MATERIALPTR.fType = reader.ReadUInt32();
            uint num = reader.ReadUInt32();

            if (num != 0U)
            {
                long position = reader.BaseStream.Position;
                reader.BaseStream.Seek(data0Pos + ( long )(( ulong )num), 0);
                nns_MATERIALPTR.pMaterial = AppMain.NNS_MATERIAL_GLES11_DESC.Read(reader, data0Pos, out transparentMaterial);
                reader.BaseStream.Seek(position, 0);
            }
            return(nns_MATERIALPTR);
        }
Beispiel #2
0
        public static AppMain.NNS_MATERIALPTR Read(
            BinaryReader reader,
            long data0Pos,
            out bool transparentMaterial)
        {
            transparentMaterial = false;
            AppMain.NNS_MATERIALPTR nnsMaterialptr = new AppMain.NNS_MATERIALPTR();
            nnsMaterialptr.fType = reader.ReadUInt32();
            uint num = reader.ReadUInt32();

            if (num != 0U)
            {
                long position = reader.BaseStream.Position;
                reader.BaseStream.Seek(data0Pos + (long)num, SeekOrigin.Begin);
                nnsMaterialptr.pMaterial = (object)AppMain.NNS_MATERIAL_GLES11_DESC.Read(reader, data0Pos, out transparentMaterial);
                reader.BaseStream.Seek(position, SeekOrigin.Begin);
            }
            return(nnsMaterialptr);
        }
Beispiel #3
0
        // Token: 0x060022EB RID: 8939 RVA: 0x001473AC File Offset: 0x001455AC
        public static AppMain.NNS_MATERIALPTR Read(BinaryReader reader, long data0Pos, out bool transparentMaterial)
        {
            transparentMaterial = false;
            AppMain.NNS_MATERIALPTR nns_MATERIALPTR = new AppMain.NNS_MATERIALPTR();
            nns_MATERIALPTR.fType = reader.ReadUInt32();
            uint num = reader.ReadUInt32();

            if (num != 0U)
            {
                var name = Path.GetTempFileName();
                Debug.WriteLine(name);
                File.WriteAllBytes(name, (reader.BaseStream as MemoryStream).ToArray());

                long position = reader.BaseStream.Position;
                reader.BaseStream.Seek(data0Pos + ( long )(( ulong )num), 0);
                nns_MATERIALPTR.pMaterial = AppMain.NNS_MATERIAL_GLES11_DESC.Read(reader, data0Pos, out transparentMaterial);
                reader.BaseStream.Seek(position, 0);
            }
            return(nns_MATERIALPTR);
        }
 // Token: 0x060022EA RID: 8938 RVA: 0x00147390 File Offset: 0x00145590
 public AppMain.NNS_MATERIALPTR Assign(AppMain.NNS_MATERIALPTR materialPtr)
 {
     this.fType     = materialPtr.fType;
     this.pMaterial = materialPtr.pMaterial;
     return(this);
 }
 // Token: 0x060022E9 RID: 8937 RVA: 0x00147370 File Offset: 0x00145570
 public NNS_MATERIALPTR(AppMain.NNS_MATERIALPTR materialPtr)
 {
     this.fType     = materialPtr.fType;
     this.pMaterial = materialPtr.pMaterial;
 }