Ejemplo n.º 1
0
 public void SetGamePlatform(Game game, Platform platform)
 {
     this.game     = game;
     this.platform = platform;
     endianness    = EndianConverter.PlatformEndianness(platform);
 }
Ejemplo n.º 2
0
 public EndianConvertibleWithData(Game game, Platform platform) : base(EndianConverter.PlatformEndianness(platform))
 {
     this.game     = game;
     this.platform = platform;
 }
        private void ConvertAllAssetTypes(Platform previousPlatform, Game previousGame, out List <uint> unsupported)
        {
            unsupported = new List <uint>();

            foreach (Asset asset in assetDictionary.Values)
            {
                try
                {
                    if (asset is AssetRenderWareModel MODL && !MODL.IsNativeData)
                    {
                        MODL.Data =
                            ReadFileMethods.ExportRenderWareFile(
                                ReadFileMethods.ReadRenderWareFile(asset.Data),
                                Models.BSP_IO_Shared.modelRenderWareVersion(game));
                    }
                    else
                    {
                        asset.AHDR = ConvertAssetType(asset.AHDR, EndianConverter.PlatformEndianness(previousPlatform), EndianConverter.PlatformEndianness(platform), previousGame, game);
                    }

                    asset.SetGamePlatform(game, platform);
                }