예제 #1
0
    /// <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;
        }
    }
예제 #2
0
    /// <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;
        }
    }