예제 #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))
 { }