コード例 #1
0
        public CharacterAppearance(BodyHeightEnum _bodyHeight, BodyTypeEnum _bodyType, string _bodyTypeDescription, Skin _skin, Hair _hair, ColorEnum _eyeColor,
                                   string _eyeDescription, uint _ageInYears, Dictionary <BodyPartEnum, AppearanceFeatureEnum> _bodyPartFeatures, string _appearanceDescription)
        {
            this._bodyHeight = _bodyHeight;
            this._bodyType   = _bodyType;
            this._skin       = (_skin == null) ? new Skin(SkinColorTypeEnum.SINGLE_COLOR, SkinTypeEnum.SKIN, ColorEnum.MEDIUM_FLESH, ColorEnum.MEDIUM_FLESH, "") : _skin;
            this._hair       = (_hair == null) ? new Hair(HairStyleEnum.BALD, HairLengthEnum.NONE, ColorEnum.BROWN, null) : _hair;
            this._eyeColor   = _eyeColor;
            this._ageInYears = _ageInYears;

            this._bodyTypeDescription   = (_bodyTypeDescription == null) ? "" : _bodyTypeDescription;
            this._eyeDescription        = (_eyeDescription == null) ? "" : _eyeDescription;
            this._appearanceDescription = (_appearanceDescription == null) ? "" : _appearanceDescription;

            this._bodyPartFeatures = (_bodyPartFeatures == null) ? new Dictionary <BodyPartEnum, AppearanceFeatureEnum>() : _bodyPartFeatures;

            WfLogger.Log(this, LogLevel.DETAILED, "Created new Character Appearance with all members");
        }