Пример #1
0
        public void NewEntry()
        {
            if (_resource.Children.Count >= 50)
            {
                return;
            }

            CSSCEntryNode node = new CSSCEntryNode
            {
                _colorID = 0x0B
            };

            if (_resource.HasChildren)
            {
                node._costumeID =
                    (byte)(((CSSCEntryNode)_resource.Children[_resource.Children.Count - 1])._costumeID + 1);
            }

            node._name =
                "Fit" + FighterNameGenerators.InternalNameFromID(
                    ((CSSCNode)_resource)._cosmeticSlot,
                    FighterNameGenerators.cosmeticIDIndex,
                    "+S") + node._costumeID.ToString("00") +
                (BrawlExColorID.Colors.Length > node._colorID
                    ? " - " + BrawlExColorID.Colors[node._colorID].Name
                    : "");
            _resource.AddChild(node);
        }
Пример #2
0
        public void NewEntry(byte cssID)
        {
            if (((RSTCNode)_resource).cssList.entries >= 256 ||
                ((RSTCNode)_resource).randList.entries >= 256)
            {
                return;
            }

            RSTCEntryNode node1 = new RSTCEntryNode
            {
                FighterID = cssID,
                _name     = FighterNameGenerators.FromID(cssID,
                                                         FighterNameGenerators.cssSlotIDIndex, "+S")
            };

            ((RSTCNode)_resource).cssList.AddChild(node1);
            RSTCEntryNode node2 = new RSTCEntryNode
            {
                FighterID = cssID,
                _name     = FighterNameGenerators.FromID(cssID,
                                                         FighterNameGenerators.cssSlotIDIndex, "+S")
            };

            ((RSTCNode)_resource).randList.AddChild(node2);
        }