Beispiel #1
0
        public AsmPatch Copy()
        {
            AsmPatch result = new AsmPatch(Name, Filename, Description, CopyableEntry.CopyList <PatchedByteArray>(innerList), HideInDefault, IsHidden, CopyableEntry.CopyArray <VariableType>(Variables));

            result.ErrorText = ErrorText;
            return(result);
        }
 private void Reload()
 {
     if ((_defaultCustomSections != null) && (_customSectionIndex < _defaultCustomSections.Count))
     {
         _customSections[_customSectionIndex].CustomEntryList.Clear();
         _customSections[_customSectionIndex].CustomEntryList.AddRange(CopyableEntry.CopyList <CustomEntry>(_defaultCustomSections[_customSectionIndex].CustomEntryList));
         PopulateSection(0);
     }
 }
Beispiel #3
0
 private void btn_Reload_Click(object sender, EventArgs e)
 {
     if ((_defaultCommandList != null) && (_defaultCommandList.Count > 0))
     {
         _commandList.Clear();
         _commandList.AddRange(CopyableEntry.CopyList <Command>(_defaultCommandList));
         PopulateCommands(0);
     }
 }
 private void Reload()
 {
     if ((_defaultConditionalSets != null) && (_conditionalSetIndex < _defaultConditionalSets.Count))
     {
         _conditionalSets[_conditionalSetIndex].ConditionalBlocks.Clear();
         _conditionalSets[_conditionalSetIndex].ConditionalBlocks.AddRange(CopyableEntry.CopyList <ConditionalBlock>(_defaultConditionalSets[_conditionalSetIndex].ConditionalBlocks));
         _conditionalSets[_conditionalSetIndex].Name = _defaultConditionalSets[_conditionalSetIndex].Name;
         PopulateSets(_conditionalSetIndex);
     }
 }
Beispiel #5
0
        public VariableType Copy()
        {
            VariableType variable = new VariableType();

            variable.NumBytes     = NumBytes;
            variable.ByteArray    = (byte[])ByteArray.Clone();
            variable.Name         = Name;
            variable.Content      = CopyableEntry.CopyList <PatchedByteArray>(Content);
            variable.IsReference  = IsReference;
            variable.Reference    = Reference.Copy();
            variable.PresetValues = CopyableEntry.CopyList <VariablePreset>(PresetValues);
            return(variable);
        }
Beispiel #6
0
 private void Reload()
 {
     if ((_defaultEvents != null) && (_eventIndex < _defaultEvents.Count))
     {
         _events[_eventIndex].CommandList.Clear();
         _events[_eventIndex].CommandList.AddRange(CopyableEntry.CopyList <Command>(_defaultEvents[_eventIndex].CommandList));
         _events[_eventIndex].TextSection.CustomEntryList.Clear();
         _events[_eventIndex].TextSection.CustomEntryList.AddRange(CopyableEntry.CopyList <CustomEntry>(_defaultEvents[_eventIndex].TextSection.CustomEntryList));
         _events[_eventIndex].DataSection.CustomEntryList.Clear();
         _events[_eventIndex].DataSection.CustomEntryList.AddRange(CopyableEntry.CopyList <CustomEntry>(_defaultEvents[_eventIndex].DataSection.CustomEntryList));
         _events[_eventIndex].Name = _defaultEvents[_eventIndex].Name;
         PopulateEvents(_eventIndex);
     }
 }
Beispiel #7
0
 public List <Command> CopyCommandList()
 {
     commandListEditor.SavePage();
     return(CopyableEntry.CopyList <Command>(commandListEditor.CommandList));
 }