public virtual void ReadChildData(BinaryReader reader) { int x = 0; _model.ReadString(reader); _animationGraph.ReadString(reader); _collisionModel.ReadString(reader); _physics.ReadString(reader); _modifierShader.ReadString(reader); _creationEffect.ReadString(reader); for (x = 0; (x < _attachments.Count); x = (x + 1)) { Attachments.Add(new ObjectAttachmentBlock()); Attachments[x].Read(reader); } for (x = 0; (x < _attachments.Count); x = (x + 1)) { Attachments[x].ReadChildData(reader); } for (x = 0; (x < _widgets.Count); x = (x + 1)) { Widgets.Add(new ObjectWidgetBlock()); Widgets[x].Read(reader); } for (x = 0; (x < _widgets.Count); x = (x + 1)) { Widgets[x].ReadChildData(reader); } for (x = 0; (x < _functions.Count); x = (x + 1)) { Functions.Add(new ObjectFunctionBlock()); Functions[x].Read(reader); } for (x = 0; (x < _functions.Count); x = (x + 1)) { Functions[x].ReadChildData(reader); } for (x = 0; (x < _changeColors.Count); x = (x + 1)) { ChangeColors.Add(new ObjectChangeColorsBlock()); ChangeColors[x].Read(reader); } for (x = 0; (x < _changeColors.Count); x = (x + 1)) { ChangeColors[x].ReadChildData(reader); } for (x = 0; (x < _predictedResources.Count); x = (x + 1)) { PredictedResources.Add(new PredictedResourceBlock()); PredictedResources[x].Read(reader); } for (x = 0; (x < _predictedResources.Count); x = (x + 1)) { PredictedResources[x].ReadChildData(reader); } }
internal override bool Reconstruct(BlamLib.Blam.CacheFile c) { Invert_Value(ref power_transition_time.Value); Invert_Value(ref power_acceleration_time.Value); Invert_Value(ref position_transition_time.Value); Invert_Value(ref position_acceleration_time.Value); Invert_Value(ref depowered_position_transition_time.Value); Invert_Value(ref depowered_position_acceleration_time.Value); PredictedResources.DeleteAll(); return(true); }
public void ReadChildData(BinaryReader reader) { _model.ReadString(reader); _animationGraph.ReadString(reader); _collisionModel.ReadString(reader); _physics.ReadString(reader); _modifierShader.ReadString(reader); _creationEffect.ReadString(reader); for (int x = 0; x < _attachments.Count; x++) { Attachments.AddNew(); Attachments[x].Read(reader); } for (int x = 0; x < _attachments.Count; x++) { Attachments[x].ReadChildData(reader); } for (int x = 0; x < _widgets.Count; x++) { Widgets.AddNew(); Widgets[x].Read(reader); } for (int x = 0; x < _widgets.Count; x++) { Widgets[x].ReadChildData(reader); } for (int x = 0; x < _functions.Count; x++) { Functions.AddNew(); Functions[x].Read(reader); } for (int x = 0; x < _functions.Count; x++) { Functions[x].ReadChildData(reader); } for (int x = 0; x < _changeColors.Count; x++) { ChangeColors.AddNew(); ChangeColors[x].Read(reader); } for (int x = 0; x < _changeColors.Count; x++) { ChangeColors[x].ReadChildData(reader); } for (int x = 0; x < _predictedResources.Count; x++) { PredictedResources.AddNew(); PredictedResources[x].Read(reader); } for (int x = 0; x < _predictedResources.Count; x++) { PredictedResources[x].ReadChildData(reader); } }
internal override bool Reconstruct(BlamLib.Blam.CacheFile c) { PredictedResources.DeleteAll(); bool result = true; // recreate the section data if (ClusterData.Count != 1) { structure_bsp_cluster_data_block_new cdata; ClusterData.Add(out cdata); result = cdata.Section.Value.Reconstruct(c, SectionInfo.Value, GeometryBlockInfo.Value); } GeometryBlockInfo.Value.ClearPostReconstruction(); return(result); }
internal override bool Reconstruct(BlamLib.Blam.CacheFile c) { PredictedResources.DeleteAll(); EditorScenarioData.Delete(); LevelData.DeleteAll(); SharedReferences.DeleteAll(); SimulationDefinitionTable.DeleteAll(); DeleteCompiledScripts(); if (ScenarioResources.Count >= 1) { var scenario_resources = ScenarioResources[0]; scenario_resources.references.DeleteAll(); scenario_resources.ai_resources.DeleteAll(); } return(true); }
internal override bool Reconstruct(BlamLib.Blam.CacheFile c) { PredictedResources.DeleteAll(); return(true); }