MoltenMercury/DataModel/CharaSet.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;


/* ============================================================================
 * CharaSet.cs
 * ----------------------------------------------------------------------------
 * 2012 (C) Jieni Luchijinzhou a.k.a Aragorn Wyvernzora
 *   
 * This is the class representing a set of bitmaps that form one single part of
 * a character. 
 */

namespace MoltenMercury.DataModel
{
    /// <summary>
    /// Represents a set of Character Parts
    /// </summary>
    public class CharaSet : IList<CharaPart>
    {
        String m_name;      // Name if the set
        Boolean m_selected = false; // Flag indicating whether the set has been selected
        List<CharaPart> m_parts = new List<CharaPart>();    // Parts contained in this set

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="name">name of the set</param>
        public CharaSet(String name)
        {
            m_name = name;
            LayerAdjustment = 0;
        }
          
        /// <summary>
        /// Gets or sets CharaSetGroup containing this set
        /// </summary>
        public CharaSetGroup Parent
        { get; set; }
        /// <summary>
        /// Gets a value indicating whether this set has been selcted
        /// </summary>
        public Boolean Selected
        {
            get
            { return m_selected; }
            set
            {
                if (value == m_selected) return;

                if (value)
                    this.Parent.ResourceManager.SetSelected(this);
                else
                    this.Parent.ResourceManager.SetDeselected(this);

                m_selected = value;
            }
后面还有 142 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。