Ejemplo n.º 1
0
        public void LoadValuesFromRawData(DataFiles.PARAM Parent)
        {
            int offset = 0, bitVal = 0, bitField = 0;

            Cells = new ObservableCollection <ParamCellValueRef>();
            for (int i = 0; i < Parent.AppliedPARAMDEF.Entries.Count; i++)
            {
                if (i == Parent.AppliedPARAMDEF.Entries.Count - 1)
                {
                    if (Parent.VirtualUri.ToUpper().Contains(@"_X64\PARAM\DRAWPARAM\M99_TONEMAPBANK"))
                    {
                        var nextCellOof = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                        nextCellOof.Value = 1.0f;
                        Cells.Add(nextCellOof);
                        break;
                    }
                    else if (Parent.VirtualUri.ToUpper().Contains(@"_X64\PARAM\DRAWPARAM\M99_TONECORRECTBANK") ||
                             Parent.VirtualUri.ToUpper().Contains(@"_X64\PARAM\DRAWPARAM\DEFAULT_TONECORRECTBANK"))
                    {
                        var nextCellOof = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                        nextCellOof.Value = 1.0f;
                        Cells.Add(nextCellOof);
                        break;
                    }
                }

                var nextCell = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                nextCell.Value = Parent.AppliedPARAMDEF.Entries[i].ReadValueFromParamEntryRawData(this, ref offset, ref bitField, ref bitVal);
                Cells.Add(nextCell);
            }
        }
Ejemplo n.º 2
0
        public void LoadValuesFromRawData(DataFiles.PARAM Parent)
        {
            int offset = 0, bitVal = 0, bitField = 0;

            Cells = new ObservableCollection <ParamCellValueRef>();
            for (int i = 0; i < Parent.AppliedPARAMDEF.Entries.Count; i++)
            {
                var nextCell = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                nextCell.Value = Parent.AppliedPARAMDEF.Entries[i].ReadValueFromParamEntryRawData(this, ref offset, ref bitField, ref bitVal);
                Cells.Add(nextCell);
            }
        }
Ejemplo n.º 3
0
        public void LoadValuesFromRawData(DataFiles.PARAM Parent)
        {
            int offset = 0, bitVal = 0, bitField = 0;

            string paramNameCheck = (Parent.FilePath ?? Parent.VirtualUri).ToUpper();

            bool isBadToneMapParamDS1R = paramNameCheck.Contains(@"_X64\PARAM\DRAWPARAM\M99_TONEMAPBANK");

            bool isBadToneCorrectParamDS1R = paramNameCheck.Contains(@"_X64\PARAM\DRAWPARAM\M99_TONECORRECTBANK") ||
                                             paramNameCheck.Contains(@"_X64\PARAM\DRAWPARAM\DEFAULT_TONECORRECTBANK");

            Cells = new ObservableCollection <ParamCellValueRef>();
            for (int i = 0; i < Parent.AppliedPARAMDEF.Entries.Count; i++)
            {
                if (i == Parent.AppliedPARAMDEF.Entries.Count - 1)
                {
                    if (isBadToneMapParamDS1R)
                    {
                        var nextCellOof = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                        nextCellOof.Value = 1.0f;
                        Cells.Add(nextCellOof);
                        //Parent.EntrySize = 48;
                        break;
                    }
                    else if (isBadToneCorrectParamDS1R)
                    {
                        var nextCellOof = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                        nextCellOof.Value = 1.0f;
                        Cells.Add(nextCellOof);
                        //Parent.EntrySize = 36;
                        break;
                    }
                }

                var nextCell = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                nextCell.Value = Parent.AppliedPARAMDEF.Entries[i].ReadValueFromParamEntryRawData(this, ref offset, ref bitField, ref bitVal);
                Cells.Add(nextCell);
            }
        }
Ejemplo n.º 4
0
        public void LoadValuesFromRawData(DataFiles.PARAM Parent)
        {
            int offset = 0, bitVal = 0, bitField = 0;

            string paramNameCheck = (Parent.FilePath ?? Parent.VirtualUri).ToUpper();

            bool isBadToneMapParamDS1R = paramNameCheck.Contains(@"_X64\PARAM\DRAWPARAM\M99_TONEMAPBANK");

            bool isBadToneCorrectParamDS1R = paramNameCheck.Contains(@"_X64\PARAM\DRAWPARAM\M99_TONECORRECTBANK") ||
                                             paramNameCheck.Contains(@"_X64\PARAM\DRAWPARAM\DEFAULT_TONECORRECTBANK");

            Cells = new ObservableCollection <ParamCellValueRef>();
            for (int i = 0; i < Parent.AppliedPARAMDEF.Entries.Count; i++)
            {
                if (i == Parent.AppliedPARAMDEF.Entries.Count - 1)
                {
                    if (isBadToneMapParamDS1R)
                    {
                        var nextCellOof = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                        nextCellOof.Value = 1.0f;
                        Cells.Add(nextCellOof);
                        //Parent.EntrySize = 48;
                        break;
                    }
                    else if (isBadToneCorrectParamDS1R)
                    {
                        var nextCellOof = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);
                        nextCellOof.Value = 1.0f;
                        Cells.Add(nextCellOof);
                        //Parent.EntrySize = 36;
                        break;
                    }
                }

                var nextCell = new ParamCellValueRef(Parent.AppliedPARAMDEF.Entries[i]);

                //if (nextCell.Def.Name.StartsWith("modelDispMask0"))
                //{
                //    Console.WriteLine($"{(Parent.FilePath ?? Parent.VirtualUri)} modelDispMask0 offset: 0x{offset:X3}");
                //}

                //if (nextCell.Def.Name.StartsWith("modelDispMask16"))
                //{
                //    Console.WriteLine($"{(Parent.FilePath ?? Parent.VirtualUri)} modelDispMask16 offset: 0x{offset:X3}");
                //}

                //if (nextCell.Def.Name.StartsWith("equipModelId"))
                //{
                //    Console.WriteLine($"{(Parent.FilePath ?? Parent.VirtualUri)} equipModelId offset: 0x{offset:X3}");
                //}

                //if (nextCell.Def.Name.StartsWith("throwTypeId"))
                //{
                //    Console.WriteLine($"{(Parent.FilePath ?? Parent.VirtualUri)} throwTypeId offset: 0x{offset:X}");
                //}

                //if (nextCell.Def.Name.StartsWith("invisibleFlag48"))
                //{
                //    Console.WriteLine($"{(Parent.FilePath ?? Parent.VirtualUri)} invisibleFlag48 offset: 0x{offset:X}");
                //}

                nextCell.Value = Parent.AppliedPARAMDEF.Entries[i].ReadValueFromParamEntryRawData(this, ref offset, ref bitField, ref bitVal);
                Cells.Add(nextCell);
            }
        }