Exemplo n.º 1
0
        public PawnFaceGraphic(CompFace compFace)
        {
            this._compFace = compFace;
            this._pawn     = compFace.Pawn;

            this.pawnFace = this._compFace.PawnFace;
            if (this.pawnFace != null)
            {
                if (this._compFace.Props.hasBeard)
                {
                    this.InitializeGraphicsBeard();
                }

                if (this._compFace.Props.hasWrinkles)
                {
                    this.InitializeGraphicsWrinkles();
                }

                this.MakeEyes();
            }

            if (this._compFace.Props.hasMouth)
            {
                this.Mouthgraphic = new HumanMouthGraphics(this._pawn);
                this.InitializeGraphicsMouth();
            }
        }
Exemplo n.º 2
0
        public PawnFaceGraphic(CompFace compFace)
        {
            this._compFace = compFace;
            this._pawn     = compFace.Pawn;

            this.pawnFace = this._compFace.PawnFace;
            if (this.pawnFace != null)
            {
                if (this._compFace.Props.hasBeard)
                {
                    this.InitializeGraphicsBeard();
                }

                if (this._compFace.Props.hasWrinkles)
                {
                    this.InitializeGraphicsWrinkles();
                }

                if (this._compFace.Props.hasEyes)
                {
                    this._compFace.TexPathEyeRight = this._compFace.EyeTexPath(Side.Right);
                    this._compFace.TexPathEyeLeft  = this._compFace.EyeTexPath(Side.Left);
                    this.TexPathEyeLeftClosed      = this._compFace.EyeTexPath(Side.Left, EyeDefOf.Closed);
                    this.TexPathEyeRightClosed     = this._compFace.EyeTexPath(Side.Right, EyeDefOf.Closed);
                    this.TexPathBrow = this._compFace.BrowTexPath(this.pawnFace.BrowDef);


                    this.InitializeGraphicsEyes();
                    this.InitializeGraphicsBrows();
                }
            }

            if (this._compFace.Props.hasMouth)
            {
                this.Mouthgraphic = new HumanMouthGraphics(this._pawn);
                this.InitializeGraphicsMouth();
            }
        }