/// <summary> /// Add the specified entry. /// </summary> /// <param name="entry">Entry.</param> public void Add(XEntry entry) { switch (entry.Type()) { case XEntryType.Pack: packs.Add(entry.name, entry as XPack); break; case XEntryType.File: files.Add(entry.name, entry as XFile); break; case XEntryType.Scene: scenes.Add(entry.name, entry as XScene); break; } }
/// <summary> /// Remove the specified entry. /// </summary> /// <param name="entry">Entry.</param> public void Remove(XEntry entry) { switch (entry.Type()) { case XEntryType.Pack: packs.Remove(entry.name); break; case XEntryType.File: files.Remove(entry.name); break; case XEntryType.Scene: scenes.Remove(entry.name); break; } }