void Add_CAkCommon(BNK_Relation Temp_Relation, int From_Line, int To_Line) { More_Class.List_Add(Actor_Mixer_Hierarchy_Project, "<PropertyList>"); int Add_Property_Mode = 0; for (int Number = From_Line; Number <= To_Line; Number++) { if (Read_All[Number].Contains("<object name=\"AkPropBundle<AkPropValue,unsigned char>\">")) { Add_Property_Mode = 1; } else if (Read_All[Number].Contains("<object name=\"AkPropBundle<RANGED_MODIFIERS<AkPropValue>>\">")) { Add_Property_Mode = 2; } if (Read_All[Number].Contains("valuefmt=\"0x06[MakeUpGain]\"")) { string strValue = Read_All[Number].Remove(0, Read_All[Number].IndexOf("value=\"") + 7); strValue = strValue.Remove(strValue.LastIndexOf("\"")); More_Class.List_Add(Actor_Mixer_Hierarchy_Project, "<Property Name=\"MakeUpGain\" Type=\"Real64\">"); More_Class.List_Add(Actor_Mixer_Hierarchy_Project, "<ValueList>"); More_Class.List_Add(Actor_Mixer_Hierarchy_Project, "<Value>" + strValue + "</Value>"); More_Class.List_Add(Actor_Mixer_Hierarchy_Project, "</ValueList>"); More_Class.List_Add(Actor_Mixer_Hierarchy_Project, "</Property>"); continue; } if (Read_All[Number].Contains("<object name=\"PositioningParams\">")) { break; } } }
void Add_CAkLayerCntr(BNK_Relation Temp_Relation, int From_Line, int To_Line) { string Temp_GUID = Guid.NewGuid().ToString().ToUpper(); More_Class.List_Add(Actor_Mixer_Hierarchy_Project, "<ActorMixer Name=\"" + Temp_Relation.My + "\" ID=\"{" + Temp_GUID + "}\" ShortID=\"" + Temp_Relation.My + "\">"); // Add_CAkCommon(Temp_Relation, From_Line, To_Line); }
void Set_Actor_Mixer_Container(BNK_Relation Temp_Relation) { int From_Line = Temp_Relation.Line; int To_Line; int Temp_Line = Temp_Relation.Line; uint OverWriteParent = Temp_Relation.Parent; bool IsNoParent = Temp_Relation.Parent == 0 ? true : false; while (true) { Temp_Line++; if (Read_All.Count - 1 == Temp_Line) { To_Line = Temp_Line - 1; break; } if (Read_All[Temp_Line].Contains("type=\"u8\" name=\"eHircType\"")) { To_Line = Temp_Line - 4; break; } } int Write_Start_Line = -1; if (IsNoParent) { Write_Start_Line = 4; } else { for (int Number_01 = 0; Number_01 < Actor_Mixer_Child_Line.Count; Number_01++) { if (Actor_Mixer_Child_Line[Number_01][0] == OverWriteParent) { Write_Start_Line = (int)Actor_Mixer_Child_Line[Number_01][1]; break; } } } if (Write_Start_Line == -1) { return; } string Type = Temp_Relation.Type; if (Type == "CAkLayerCntr") { More_Class.List_Init(Write_Start_Line + 1); } }