BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Protected Member Functions | Properties | List of all members
BrawlCrate.NodeWrappers.ARCWrapper Class Reference
Inheritance diagram for BrawlCrate.NodeWrappers.ARCWrapper:
BrawlCrate.NodeWrappers.GenericWrapper BrawlCrate.NodeWrappers.BaseWrapper BrawlCrate.NodeWrappers.MultiSelectableWrapper

Public Member Functions

 ARCWrapper ()
 
ARCNode NewARC ()
 
BRRESNode NewBRES ()
 
CollisionNode NewCollision ()
 
BLOCNode NewBLOC ()
 
MSBinNode NewMSBin ()
 
SCLANode NewSCLA ()
 
STPMNode NewSTPM ()
 
ADSJNode NewADSJ ()
 
ITOVNode NewITOV ()
 
NewStageTable< T > ()
 
NewStageTable< T > (int numEntries)
 
HavokNode NewHavok ()
 
ARCEntryNode NewRedirect ()
 
void ImportARC ()
 
void ImportBRES ()
 
void ImportBLOC ()
 
void ImportCollision ()
 
void ImportMSBin ()
 
void ImportBinary ()
 
void ImportSCLA ()
 
void ImportSTPM ()
 
void ImportSTDT ()
 
void ImportTBCL ()
 
void ImportTBGC ()
 
void ImportTBGD ()
 
void ImportTBGM ()
 
void ImportTBLV ()
 
void ImportTBRM ()
 
void ImportTBST ()
 
void ImportHavok ()
 
void ImportADSJ ()
 
void ImportITOV ()
 
void LoadModels (ResourceNode node, List< IModel > models, List< CollisionNode > collisions)
 
void PreviewAll ()
 
void ExportAll ()
 
void SortChildrenByFileIndex ()
 
void ReplaceAll ()
 
- Public Member Functions inherited from BrawlCrate.NodeWrappers.GenericWrapper
 GenericWrapper (IWin32Window owner)
 
 GenericWrapper ()
 
virtual void Sort ()
 
void MoveUp ()
 
virtual void MoveUp (bool select)
 
void MoveDown ()
 
virtual void MoveDown (bool select)
 
void DeleteSelected ()
 
void ExportSelected ()
 
virtual string Export ()
 
virtual void OnExport (string outPath)
 
virtual void Replace ()
 
virtual void OnReplace (string inStream)
 
void Restore ()
 
virtual void Delete ()
 
void Rename ()
 
virtual ResourceNode Duplicate ()
 
virtual ResourceNode Duplicate (bool changeName)
 
- Public Member Functions inherited from BrawlCrate.NodeWrappers.BaseWrapper
void Link (ResourceNode res)
 
void Unlink ()
 

Static Protected Member Functions

static void NewBRESAction (object sender, EventArgs e)
 
static void NewARCAction (object sender, EventArgs e)
 
static void NewMSBinAction (object sender, EventArgs e)
 
static void NewCollisionAction (object sender, EventArgs e)
 
static void NewBLOCAction (object sender, EventArgs e)
 
static void NewSCLAAction (object sender, EventArgs e)
 
static void NewSTPMAction (object sender, EventArgs e)
 
static void NewADSJAction (object sender, EventArgs e)
 
static void NewITOVAction (object sender, EventArgs e)
 
static void NewStageTableAction< T > (object sender, EventArgs e)
 
static void NewRedirectAction (object sender, EventArgs e)
 
static void ImportBRESAction (object sender, EventArgs e)
 
static void ImportARCAction (object sender, EventArgs e)
 
static void ImportBLOCAction (object sender, EventArgs e)
 
static void ImportCollisionAction (object sender, EventArgs e)
 
static void ImportMSBinAction (object sender, EventArgs e)
 
static void ImportBinaryAction (object sender, EventArgs e)
 
static void ImportSCLAAction (object sender, EventArgs e)
 
static void ImportSTDTAction (object sender, EventArgs e)
 
static void ImportSTPMAction (object sender, EventArgs e)
 
static void ImportADSJAction (object sender, EventArgs e)
 
static void ImportTBCLAction (object sender, EventArgs e)
 
static void ImportTBGCAction (object sender, EventArgs e)
 
static void ImportTBGDAction (object sender, EventArgs e)
 
static void ImportTBGMAction (object sender, EventArgs e)
 
static void ImportTBLVAction (object sender, EventArgs e)
 
static void ImportTBRMAction (object sender, EventArgs e)
 
static void ImportTBSTAction (object sender, EventArgs e)
 
static void ImportHavokAction (object sender, EventArgs e)
 
static void ImportITOVAction (object sender, EventArgs e)
 
static void PreviewAllAction (object sender, EventArgs e)
 
static void ExportAllAction (object sender, EventArgs e)
 
static void ReplaceAllAction (object sender, EventArgs e)
 
- Static Protected Member Functions inherited from BrawlCrate.NodeWrappers.GenericWrapper
static void MoveUpAction (object sender, EventArgs e)
 
static void MoveDownAction (object sender, EventArgs e)
 
static void ExportAction (object sender, EventArgs e)
 
static void ExportSelectedAction (object sender, EventArgs e)
 
static void DeleteSelectedAction (object sender, EventArgs e)
 
static void DuplicateAction (object sender, EventArgs e)
 
static void ReplaceAction (object sender, EventArgs e)
 
static void RestoreAction (object sender, EventArgs e)
 
static void DeleteAction (object sender, EventArgs e)
 
static void RenameAction (object sender, EventArgs e)
 
static void SortAction (object sender, EventArgs e)
 
- Static Protected Member Functions inherited from BrawlCrate.NodeWrappers.BaseWrapper
static T GetInstance< T > ()
 
static IEnumerable< T > GetInstances< T > ()
 

Properties

override string ExportFilter [get]
 
override string ImportFilter [get]
 
- Properties inherited from BrawlCrate.NodeWrappers.GenericWrapper
virtual ContextMenuStrip MultiSelectMenuStrip [get]
 
virtual string DefaultName [get]
 
virtual string ExportFilter [get]
 
virtual string ImportFilter [get]
 
virtual string ReplaceFilter [get]
 
- Properties inherited from BrawlCrate.NodeWrappers.BaseWrapper
ResourceNode Resource [get]
 
virtual ? Color DefaultBackColor [get]
 
virtual ? Color DefaultForeColor [get]
 
- Properties inherited from BrawlCrate.NodeWrappers.MultiSelectableWrapper
ContextMenuStrip MultiSelectMenuStrip [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from BrawlCrate.NodeWrappers.BaseWrapper
static BaseWrapper[] GetAllNodes (BaseWrapper root)
 
static BaseWrapper Wrap (ResourceNode node)
 
static BaseWrapper Wrap (IWin32Window owner, ResourceNode node)
 
- Static Public Attributes inherited from BrawlCrate.NodeWrappers.BaseWrapper
static IWin32Window _owner
 
- Protected Member Functions inherited from BrawlCrate.NodeWrappers.BaseWrapper
 BaseWrapper ()
 
- Protected Attributes inherited from BrawlCrate.NodeWrappers.BaseWrapper
bool _discovered
 
ResourceNode _resource
 
- Static Protected Attributes inherited from BrawlCrate.NodeWrappers.BaseWrapper
static readonly ContextMenuStrip _emptyMenu = new ContextMenuStrip()
 

Constructor & Destructor Documentation

◆ ARCWrapper()

BrawlCrate.NodeWrappers.ARCWrapper.ARCWrapper ( )
inline
289 {
290 ContextMenuStrip = _menu;
291 }

Member Function Documentation

◆ ExportAll()

void BrawlCrate.NodeWrappers.ARCWrapper.ExportAll ( )
inline
704 {
705 string path = Program.ChooseFolder();
706 if (path == null)
707 {
708 return;
709 }
710 var hasTextures = Resource.GetChildrenRecursive().Any(c => c is TEX0Node);
711 if (hasTextures)
712 {
713 ExportAllFormatDialog dialog =
714 new ExportAllFormatDialog("Export All", typeof(TEX0Node), FileFilters.TEX0);
715
716 if (dialog.ShowDialog() == DialogResult.OK)
717 {
718 ((ARCNode)_resource).ExtractToFolder(path, dialog.SelectedExtension);
719 }
720 }
721 else
722 {
723 ((ARCNode)_resource).ExtractToFolder(path);
724 }
725 }
ResourceNode Resource
Definition: BaseWrapper.cs:77
ResourceNode _resource
Definition: BaseWrapper.cs:76
string SelectedExtension
Definition: ExportAllAskFormat.cs:31
Definition: FileFilters.cs:8
static string TEX0
Definition: FileFilters.cs:38
Definition: ARCNode.cs:16
List< ResourceNode > GetChildrenRecursive()
Used primarily to get bone lists. Kept for all resource nodes for utility.
Definition: ResourceNode.cs:281
Definition: TEX0Node.cs:22

◆ ExportAllAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ExportAllAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
252 {
253 GetInstance<ARCWrapper>().ExportAll();
254 }

◆ ImportADSJ()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportADSJ ( )
inline
649 {
650 if (Program.OpenFiles(FileFilters.ADSJ, out string[] paths) > 0)
651 {
652 foreach (string path in paths)
653 {
654 NewADSJ().Replace(path);
655 }
656 }
657 }
ADSJNode NewADSJ()
Definition: ARCWrapper.cs:376
static string ADSJ
Definition: FileFilters.cs:154
virtual void Replace(string fileName)
Definition: ResourceNode.cs:829

◆ ImportADSJAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportADSJAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
197 {
198 GetInstance<ARCWrapper>().ImportADSJ();
199 }

◆ ImportARC()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportARC ( )
inline
446 {
447 if (Program.OpenFiles(FileFilters.ARCImport, out string[] paths) > 0)
448 {
449 foreach (string path in paths)
450 {
451 NewARC().Replace(path);
452 }
453 }
454 }
ARCNode NewARC()
Definition: ARCWrapper.cs:293
static string ARCImport
Definition: FileFilters.cs:13

◆ ImportARCAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportARCAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
157 {
158 GetInstance<ARCWrapper>().ImportARC();
159 }

◆ ImportBinary()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportBinary ( )
inline
501 {
502 if (Program.OpenFiles(FileFilters.Raw, out string[] paths) > 0)
503 {
504 foreach (string path in paths)
505 {
506 ResourceNode n = NodeFactory.FromFile(null, path);
507 if (n is ARCEntryNode r)
508 {
509 r.FileType = ARCFileType.MiscData;
510 }
511 else
512 {
513 n.Dispose();
514 n = NodeFactory.FromFile(null, path, typeof(ARCEntryNode));
515 ((ARCEntryNode)n).FileType = ARCFileType.MiscData;
516 }
518 n.Name = "Misc Data [0]";
519
520 BaseWrapper w = FindResource(n, false);
521 w.EnsureVisible();
522 w.TreeView.SelectedNode = w;
523 }
524 }
525 }
BaseWrapper()
Definition: BaseWrapper.cs:79
static string Raw
Definition: FileFilters.cs:167
Definition: ARCNode.cs:872
Definition: NodeFactory.cs:18
static ResourceNode FromFile(ResourceNode parent, string path)
Definition: NodeFactory.cs:69
Definition: ResourceNode.cs:129
virtual void Dispose()
Definition: ResourceNode.cs:430
virtual void AddChild(ResourceNode child)
Definition: ResourceNode.cs:757
ARCFileType
Definition: ARC.cs:144

◆ ImportBinaryAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportBinaryAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
177 {
178 GetInstance<ARCWrapper>().ImportBinary();
179 }

◆ ImportBLOC()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportBLOC ( )
inline
468 {
469 if (Program.OpenFiles(FileFilters.BLOC, out string[] paths) > 0)
470 {
471 foreach (string path in paths)
472 {
473 NewBLOC().Replace(path);
474 }
475 }
476 }
BLOCNode NewBLOC()
Definition: ARCWrapper.cs:328
static string BLOC
Definition: FileFilters.cs:116

◆ ImportBLOCAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportBLOCAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
162 {
163 GetInstance<ARCWrapper>().ImportBLOC();
164 }

◆ ImportBRES()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportBRES ( )
inline
457 {
458 if (Program.OpenFiles(FileFilters.BRES, out string[] paths) > 0)
459 {
460 foreach (string path in paths)
461 {
462 NewBRES().Replace(path);
463 }
464 }
465 }
BRRESNode NewBRES()
Definition: ARCWrapper.cs:304
static string BRES
Definition: FileFilters.cs:28

◆ ImportBRESAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportBRESAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
152 {
153 GetInstance<ARCWrapper>().ImportBRES();
154 }

◆ ImportCollision()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportCollision ( )
inline
479 {
480 if (Program.OpenFiles(FileFilters.CollisionDef, out string[] paths) > 0)
481 {
482 foreach (string path in paths)
483 {
484 NewCollision().Replace(path);
485 }
486 }
487 }
CollisionNode NewCollision()
Definition: ARCWrapper.cs:316
static string CollisionDef
Definition: FileFilters.cs:95

◆ ImportCollisionAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportCollisionAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
167 {
168 GetInstance<ARCWrapper>().ImportCollision();
169 }

◆ ImportHavok()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportHavok ( )
inline
638 {
639 if (Program.OpenFiles(FileFilters.Havok, out string[] paths) > 0)
640 {
641 foreach (string path in paths)
642 {
643 NewHavok().Replace(path);
644 }
645 }
646 }
HavokNode NewHavok()
Definition: ARCWrapper.cs:421
static string Havok
Definition: FileFilters.cs:175
override void Replace(string fileName, FileMapProtect prot, FileOptions options)
Definition: HavokNode.cs:404

◆ ImportHavokAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportHavokAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
237 {
238 GetInstance<ARCWrapper>().ImportHavok();
239 }

◆ ImportITOV()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportITOV ( )
inline
660 {
661 if (Program.OpenFiles(FileFilters.ITOV, out string[] paths) > 0)
662 {
663 foreach (string path in paths)
664 {
665 NewITOV().Replace(path);
666 }
667 }
668 }
ITOVNode NewITOV()
Definition: ARCWrapper.cs:388
static string ITOV
Definition: FileFilters.cs:214

◆ ImportITOVAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportITOVAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
242 {
243 GetInstance<ARCWrapper>().ImportITOV();
244 }

◆ ImportMSBin()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportMSBin ( )
inline
490 {
491 if (Program.OpenFiles(FileFilters.MSBin, out string[] paths) > 0)
492 {
493 foreach (string path in paths)
494 {
495 NewMSBin().Replace(path);
496 }
497 }
498 }
MSBinNode NewMSBin()
Definition: ARCWrapper.cs:340
static string MSBin
Definition: FileFilters.cs:68
override void Replace(string fileName)
Definition: MSBinNode.cs:120

◆ ImportMSBinAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportMSBinAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
172 {
173 GetInstance<ARCWrapper>().ImportMSBin();
174 }

◆ ImportSCLA()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportSCLA ( )
inline
528 {
529 if (Program.OpenFiles(FileFilters.SCLA, out string[] paths) > 0)
530 {
531 foreach (string path in paths)
532 {
533 NewSCLA().Replace(path);
534 }
535 }
536 }
SCLANode NewSCLA()
Definition: ARCWrapper.cs:352
static string SCLA
Definition: FileFilters.cs:129

◆ ImportSCLAAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportSCLAAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
182 {
183 GetInstance<ARCWrapper>().ImportSCLA();
184 }

◆ ImportSTDT()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportSTDT ( )
inline
550 {
551 if (Program.OpenFiles(FileFilters.STDT, out string[] paths) > 0)
552 {
553 foreach (string path in paths)
554 {
555 NewStageTable<STDTNode>().Replace(path);
556 }
557 }
558 }
static string STDT
Definition: FileFilters.cs:126

◆ ImportSTDTAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportSTDTAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
187 {
188 GetInstance<ARCWrapper>().ImportSTDT();
189 }

◆ ImportSTPM()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportSTPM ( )
inline
539 {
540 if (Program.OpenFiles(FileFilters.STPM, out string[] paths) > 0)
541 {
542 foreach (string path in paths)
543 {
544 NewSTPM().Replace(path);
545 }
546 }
547 }
STPMNode NewSTPM()
Definition: ARCWrapper.cs:364
static string STPM
Definition: FileFilters.cs:123

◆ ImportSTPMAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportSTPMAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
192 {
193 GetInstance<ARCWrapper>().ImportSTPM();
194 }

◆ ImportTBCL()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBCL ( )
inline
561 {
562 if (Program.OpenFiles(FileFilters.TBCL, out string[] paths) > 0)
563 {
564 foreach (string path in paths)
565 {
566 //NewStageTable<TBCLNode>().Replace(path);
567 }
568 }
569 }
static string TBCL
Definition: FileFilters.cs:132

◆ ImportTBCLAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBCLAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
202 {
203 GetInstance<ARCWrapper>().ImportTBCL();
204 }

◆ ImportTBGC()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBGC ( )
inline
572 {
573 if (Program.OpenFiles(FileFilters.TBGC, out string[] paths) > 0)
574 {
575 foreach (string path in paths)
576 {
577 //NewStageTable<TBGCNode>().Replace(path);
578 }
579 }
580 }
static string TBGC
Definition: FileFilters.cs:135

◆ ImportTBGCAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBGCAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
207 {
208 GetInstance<ARCWrapper>().ImportTBGC();
209 }

◆ ImportTBGD()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBGD ( )
inline
583 {
584 if (Program.OpenFiles(FileFilters.TBGD, out string[] paths) > 0)
585 {
586 foreach (string path in paths)
587 {
588 //NewStageTable<TBGDNode>().Replace(path);
589 }
590 }
591 }
static string TBGD
Definition: FileFilters.cs:138

◆ ImportTBGDAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBGDAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
212 {
213 GetInstance<ARCWrapper>().ImportTBGD();
214 }

◆ ImportTBGM()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBGM ( )
inline
594 {
595 if (Program.OpenFiles(FileFilters.TBGM, out string[] paths) > 0)
596 {
597 foreach (string path in paths)
598 {
599 //NewStageTable<TBGMNode>().Replace(path);
600 }
601 }
602 }
static string TBGM
Definition: FileFilters.cs:141

◆ ImportTBGMAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBGMAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
217 {
218 GetInstance<ARCWrapper>().ImportTBGM();
219 }

◆ ImportTBLV()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBLV ( )
inline
605 {
606 if (Program.OpenFiles(FileFilters.TBLV, out string[] paths) > 0)
607 {
608 foreach (string path in paths)
609 {
610 //NewStageTable<TBLVNode>().Replace(path);
611 }
612 }
613 }
static string TBLV
Definition: FileFilters.cs:144

◆ ImportTBLVAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBLVAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
222 {
223 GetInstance<ARCWrapper>().ImportTBLV();
224 }

◆ ImportTBRM()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBRM ( )
inline
616 {
617 if (Program.OpenFiles(FileFilters.TBRM, out string[] paths) > 0)
618 {
619 foreach (string path in paths)
620 {
621 //NewStageTable<TBRMNode>().Replace(path);
622 }
623 }
624 }
static string TBRM
Definition: FileFilters.cs:147

◆ ImportTBRMAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBRMAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
227 {
228 GetInstance<ARCWrapper>().ImportTBRM();
229 }

◆ ImportTBST()

void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBST ( )
inline
627 {
628 if (Program.OpenFiles(FileFilters.TBST, out string[] paths) > 0)
629 {
630 foreach (string path in paths)
631 {
632 //NewStageTable<TBSTNode>().Replace(path);
633 }
634 }
635 }
static string TBST
Definition: FileFilters.cs:150

◆ ImportTBSTAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ImportTBSTAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
232 {
233 GetInstance<ARCWrapper>().ImportTBST();
234 }

◆ LoadModels()

void BrawlCrate.NodeWrappers.ARCWrapper.LoadModels ( ResourceNode  node,
List< IModel models,
List< CollisionNode collisions 
)
inline
671 {
672 switch (node.ResourceFileType)
673 {
674 case ResourceType.ARC:
675 case ResourceType.MRG:
676 case ResourceType.U8:
677 case ResourceType.U8Folder:
678 case ResourceType.BRES:
679 case ResourceType.BRESGroup:
680 foreach (ResourceNode n in node.Children)
681 {
682 LoadModels(n, models, collisions);
683 }
684
685 break;
686 case ResourceType.MDL0:
687 models.Add((IModel) node);
688 break;
689 case ResourceType.CollisionDef:
690 collisions.Add((CollisionNode) node);
691 break;
692 }
693 }
void LoadModels(ResourceNode node, List< IModel > models, List< CollisionNode > collisions)
Definition: ARCWrapper.cs:670
Definition: CollisionNode.cs:15
virtual ResourceType ResourceFileType
Definition: ResourceNode.cs:193
List< ResourceNode > Children
Definition: ResourceNode.cs:262
Definition: IModel.cs:12
ResourceType
Definition: ResourceType.cs:6

◆ NewADSJ()

ADSJNode BrawlCrate.NodeWrappers.ARCWrapper.NewADSJ ( )
inline
377 {
378 ADSJNode node = new ADSJNode { FileType = ARCFileType.MiscData };
379 _resource.AddChild(node);
380 node.UpdateName();
381
382 BaseWrapper w = FindResource(node, false);
383 w.EnsureVisible();
384 w.TreeView.SelectedNode = w;
385 return node;
386 }
Definition: ADSJNode.cs:8
void UpdateName()
Definition: ARCNode.cs:1093

◆ NewADSJAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewADSJAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
126 {
127 GetInstance<ARCWrapper>().NewADSJ();
128 }

◆ NewARC()

ARCNode BrawlCrate.NodeWrappers.ARCWrapper.NewARC ( )
inline
294 {
295 ARCNode node = new ARCNode {Name = _resource.FindName("NewARChive"), FileType = ARCFileType.MiscData};
296 _resource.AddChild(node);
297
298 BaseWrapper w = FindResource(node, false);
299 w.EnsureVisible();
300 w.TreeView.SelectedNode = w;
301 return node;
302 }
unsafe string FindName(string name)
Definition: ResourceNode.cs:1578

◆ NewARCAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewARCAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
96 {
97 GetInstance<ARCWrapper>().NewARC();
98 }

◆ NewBLOC()

BLOCNode BrawlCrate.NodeWrappers.ARCWrapper.NewBLOC ( )
inline
329 {
330 BLOCNode node = new BLOCNode {FileType = ARCFileType.MiscData};
331 _resource.AddChild(node);
332 node.UpdateName();
333
334 BaseWrapper w = FindResource(node, false);
335 w.EnsureVisible();
336 w.TreeView.SelectedNode = w;
337 return node;
338 }
Definition: BLOCNode.cs:11

◆ NewBLOCAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewBLOCAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
111 {
112 GetInstance<ARCWrapper>().NewBLOC();
113 }

◆ NewBRES()

BRRESNode BrawlCrate.NodeWrappers.ARCWrapper.NewBRES ( )
inline
305 {
306 BRRESNode node = new BRRESNode {FileType = ARCFileType.MiscData};
307 _resource.AddChild(node);
308 node.UpdateName();
309
310 BaseWrapper w = FindResource(node, false);
311 w.EnsureVisible();
312 w.TreeView.SelectedNode = w;
313 return node;
314 }
Definition: BRRESNode.cs:19

◆ NewBRESAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewBRESAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
91 {
92 GetInstance<ARCWrapper>().NewBRES();
93 }

◆ NewCollision()

CollisionNode BrawlCrate.NodeWrappers.ARCWrapper.NewCollision ( )
inline
317 {
318 CollisionNode node = new CollisionNode {FileType = ARCFileType.MiscData};
319 _resource.AddChild(node);
320 node.UpdateName();
321
322 BaseWrapper w = FindResource(node, false);
323 w.EnsureVisible();
324 w.TreeView.SelectedNode = w;
325 return node;
326 }

◆ NewCollisionAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewCollisionAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
106 {
107 GetInstance<ARCWrapper>().NewCollision();
108 }

◆ NewHavok()

HavokNode BrawlCrate.NodeWrappers.ARCWrapper.NewHavok ( )
inline
422 {
423 HavokNode node = new HavokNode {Name = _resource.FindName("NewHavokData"), FileType = ARCFileType.MiscData};
424 _resource.AddChild(node);
425
426 BaseWrapper w = FindResource(node, false);
427 w.EnsureVisible();
428 w.TreeView.SelectedNode = w;
429 return node;
430 }
Definition: HavokNode.cs:13

◆ NewITOV()

ITOVNode BrawlCrate.NodeWrappers.ARCWrapper.NewITOV ( )
inline
389 {
390 ITOVNode node = new ITOVNode { FileType = ARCFileType.MiscData, FileIndex = 20000 };
391 _resource.AddChild(node);
392 node.UpdateName();
393
394 BaseWrapper w = FindResource(node, false);
395 w.EnsureVisible();
396 w.TreeView.SelectedNode = w;
397 return node;
398 }

◆ NewITOVAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewITOVAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
131 {
132 GetInstance<ARCWrapper>().NewITOV();
133 }

◆ NewMSBin()

MSBinNode BrawlCrate.NodeWrappers.ARCWrapper.NewMSBin ( )
inline
341 {
342 MSBinNode node = new MSBinNode {FileType = ARCFileType.MiscData};
343 _resource.AddChild(node);
344 node.UpdateName();
345
346 BaseWrapper w = FindResource(node, false);
347 w.EnsureVisible();
348 w.TreeView.SelectedNode = w;
349 return node;
350 }
Definition: MSBinNode.cs:9

◆ NewMSBinAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewMSBinAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
101 {
102 GetInstance<ARCWrapper>().NewMSBin();
103 }

◆ NewRedirect()

ARCEntryNode BrawlCrate.NodeWrappers.ARCWrapper.NewRedirect ( )
inline
433 {
434 ARCEntryNode node = new ARCEntryNode
435 {FileType = ARCFileType.MiscData, _resourceType = ResourceType.Redirect};
436 _resource.AddChild(node);
437 node.RedirectIndex = 0;
438
439 BaseWrapper w = FindResource(node, false);
440 w.EnsureVisible();
441 w.TreeView.SelectedNode = w;
442 return node;
443 }

◆ NewRedirectAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewRedirectAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
147 {
148 GetInstance<ARCWrapper>().NewRedirect();
149 }

◆ NewSCLA()

SCLANode BrawlCrate.NodeWrappers.ARCWrapper.NewSCLA ( )
inline
353 {
354 SCLANode node = new SCLANode {FileType = ARCFileType.MiscData};
355 _resource.AddChild(node);
356 node.UpdateName();
357
358 BaseWrapper w = FindResource(node, false);
359 w.EnsureVisible();
360 w.TreeView.SelectedNode = w;
361 return node;
362 }
Definition: SCLANode.cs:8

◆ NewSCLAAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewSCLAAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
116 {
117 GetInstance<ARCWrapper>().NewSCLA();
118 }

◆ NewStageTable< T >() [1/2]

T BrawlCrate.NodeWrappers.ARCWrapper.NewStageTable< T > ( )
inline
Type Constraints
T :StageTableNode 
T :new() 
400 : StageTableNode, new()
401 {
402 return NewStageTable<T>(0);
403 }
T NewStageTable< T >()
Definition: ARCWrapper.cs:400
Definition: StageTableNode.cs:13

◆ NewStageTable< T >() [2/2]

T BrawlCrate.NodeWrappers.ARCWrapper.NewStageTable< T > ( int  numEntries)
inline
Type Constraints
T :StageTableNode 
T :new() 
405 : StageTableNode, new()
406 {
407 T node = new T {FileType = ARCFileType.MiscData};
408 while (node.NumEntries < numEntries)
409 {
410 node.EntryList.Add(0);
411 }
412
413 _resource.AddChild(node);
414
415 BaseWrapper w = FindResource(node, false);
416 w.EnsureVisible();
417 w.TreeView.SelectedNode = w;
418 return node;
419 }
List< byte > EntryList
Definition: StageTableNode.cs:77

◆ NewStageTableAction< T >()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewStageTableAction< T > ( object  sender,
EventArgs  e 
)
inlinestaticprotected
Type Constraints
T :StageTableNode 
T :new() 
135 : StageTableNode, new()
136 {
137 using (NumericInputForm entryCount = new NumericInputForm())
138 {
139 if (entryCount.ShowDialog($"{typeof(T).Name} Generation", "Number of Entries:") == DialogResult.OK)
140 {
141 GetInstance<ARCWrapper>().NewStageTable<T>(entryCount.NewValue);
142 }
143 }
144 }
Definition: NumericInputForm.cs:7
new DialogResult ShowDialog()
Definition: NumericInputForm.cs:20
int NewValue
Definition: NumericInputForm.cs:16

◆ NewSTPM()

STPMNode BrawlCrate.NodeWrappers.ARCWrapper.NewSTPM ( )
inline
365 {
366 STPMNode node = new STPMNode {FileType = ARCFileType.MiscData};
367 _resource.AddChild(node);
368 node.UpdateName();
369
370 BaseWrapper w = FindResource(node, false);
371 w.EnsureVisible();
372 w.TreeView.SelectedNode = w;
373 return node;
374 }
Definition: STPMNode.cs:9

◆ NewSTPMAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.NewSTPMAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
121 {
122 GetInstance<ARCWrapper>().NewSTPM();
123 }

◆ PreviewAll()

void BrawlCrate.NodeWrappers.ARCWrapper.PreviewAll ( )
inline
696 {
697 List<IModel> models = new List<IModel>();
698 List<CollisionNode> collisions = new List<CollisionNode>();
699 LoadModels(_resource, models, collisions);
700 new ModelForm().Show(_owner, models, collisions);
701 }
static IWin32Window _owner
Definition: BaseWrapper.cs:398

◆ PreviewAllAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.PreviewAllAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
247 {
248 GetInstance<ARCWrapper>().PreviewAll();
249 }

◆ ReplaceAll()

void BrawlCrate.NodeWrappers.ARCWrapper.ReplaceAll ( )
inline
734 {
735 string path = Program.ChooseFolder();
736 if (path == null)
737 {
738 return;
739 }
740
741 ((ARCNode) _resource).ReplaceFromFolder(path);
742 }

◆ ReplaceAllAction()

static void BrawlCrate.NodeWrappers.ARCWrapper.ReplaceAllAction ( object  sender,
EventArgs  e 
)
inlinestaticprotected
257 {
258 GetInstance<ARCWrapper>().ReplaceAll();
259 }

◆ SortChildrenByFileIndex()

void BrawlCrate.NodeWrappers.ARCWrapper.SortChildrenByFileIndex ( )
inline
728 {
729 ((ARCNode)_resource).SortChildrenByFileIndex();
730 RefreshView(_resource);
731 }

Property Documentation

◆ ExportFilter

override string BrawlCrate.NodeWrappers.ARCWrapper.ExportFilter
get

◆ ImportFilter

override string BrawlCrate.NodeWrappers.ARCWrapper.ImportFilter
get

The documentation for this class was generated from the following file: