public static LinkTSSM[] GetEvents(LinkTSSM[] links, Endianness endianness, out bool success, bool isTimed, uint thisAssetID) { LinkEditor eventEditor = new LinkEditor(links, isTimed, endianness, thisAssetID); eventEditor.ShowDialog(); success = eventEditor.OK; List <LinkTSSM> assetEventBFBBs = new List <LinkTSSM>(); foreach (LinkTSSM assetEvent in eventEditor.listBoxLinks.Items) { assetEventBFBBs.Add(assetEvent); } return(assetEventBFBBs.ToArray()); }
public static LinkIncredibles[] GetEvents(LinkIncredibles[] events, out bool success, bool isTimed) { LinkEditor eventEditor = new LinkEditor(events, isTimed); eventEditor.ShowDialog(); success = eventEditor.OK; List <LinkIncredibles> assetEventBFBBs = new List <LinkIncredibles>(); foreach (LinkIncredibles assetEvent in eventEditor.listBoxLinks.Items) { assetEventBFBBs.Add(assetEvent); } return(assetEventBFBBs.ToArray()); }
public static Link[] GetLinks(Game game, Link[] links, LinkType linkType, uint thisAssetID) { LinkEditor linkEditor = new LinkEditor(game, links, linkType, thisAssetID); linkEditor.ShowDialog(); if (linkEditor.OK) { List <Link> newLinks = new List <Link>(); foreach (Link l in linkEditor.listBoxLinks.Items) { newLinks.Add(l); } return(newLinks.ToArray()); } return(null); }
public static LinkBFBB[] GetEvents(LinkBFBB[] links, Endianness endianness, bool isTimed, uint thisAssetID) { LinkEditor eventEditor = new LinkEditor(links, isTimed, endianness, thisAssetID); eventEditor.ShowDialog(); if (eventEditor.OK) { List <LinkBFBB> assetEventBFBBs = new List <LinkBFBB>(); foreach (LinkBFBB assetEvent in eventEditor.listBoxLinks.Items) { assetEventBFBBs.Add(assetEvent); } return(assetEventBFBBs.ToArray()); } return(null); }