示例#1
0
        public SavedOutfit(SimOutfit outfit)
        {
            if (outfit != null)
            {
                foreach (CASPart oldPart in outfit.Parts)
                {
                    string oldPreset = outfit.GetPartPreset(oldPart.Key);

                    mParts.Add(new SavedPart(oldPart, oldPreset));
                }
            }

            mStore = new ColorStore(this);
        }
示例#2
0
        public SavedOutfit(SimOutfit outfit)
        {
            if (outfit != null)
            {
                foreach (CASPart oldPart in outfit.Parts)
                {
                    string oldPreset = outfit.GetPartPreset(oldPart.Key);

                    mParts.Add(new SavedPart(oldPart, oldPreset));
                }
            }

            mStore = new ColorStore(this);
        }
示例#3
0
文件: CASParts.cs 项目: yakoder/NRaas
            public static bool GetPartPreset(BodyTypes type, SimOutfit sourceOutfit, ref PartPreset result)
            {
                foreach (CASPart part in sourceOutfit.Parts)
                {
                    if (part.BodyType != type)
                    {
                        continue;
                    }

                    result = new PartPreset(part, sourceOutfit.GetPartPreset(part.Key));
                    return(true);
                }

                return(false);
            }
示例#4
0
文件: CASParts.cs 项目: yakoder/NRaas
 public static PartPreset GetPartPreset(CASPart part, SimOutfit sourceOutfit)
 {
     return(new PartPreset(part, sourceOutfit.GetPartPreset(part.Key)));
 }
示例#5
0
文件: CASParts.cs 项目: yakoder/NRaas
 public PartPreset(CASPart part, SimOutfit sourceOutfit)
     : base(part, sourceOutfit.GetPartPreset(part.Key))
 {
 }
示例#6
0
            public static bool GetPartPreset(BodyTypes type, SimOutfit sourceOutfit, ref PartPreset result)
            {
                foreach (CASPart part in sourceOutfit.Parts)
                {
                    if (part.BodyType != type) continue;

                    result = new PartPreset(part, sourceOutfit.GetPartPreset(part.Key));
                    return true;
                }

                return false;
            }
示例#7
0
 public static PartPreset GetPartPreset(CASPart part, SimOutfit sourceOutfit)
 {
     return new PartPreset(part, sourceOutfit.GetPartPreset(part.Key));
 }
示例#8
0
 public PartPreset(CASPart part, SimOutfit sourceOutfit)
     : base(part, sourceOutfit.GetPartPreset(part.Key))
 { }