Пример #1
0
 public CharacterDisplay(char p_chBodyType, ItemCodex.ItemTypes p_enHat, ItemCodex.ItemTypes p_enFacegear, ItemCodex.ItemTypes p_enHairdo)
 {
     ContentManager Content = RenderMaster.contPlayerStuff;
     this.chBodyType = p_chBodyType;
     this.txBaseMaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Up");
     this.txBaseMaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Right");
     this.txBaseMaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Down");
     this.txBaseMaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Left");
     this.txBaseFemaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Up");
     this.txBaseFemaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Right");
     this.txBaseFemaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Down");
     this.txBaseFemaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Left");
     this.xHat = HatCodex.GetHatInfo(p_enHat);
     this.xFacegear = FacegearCodex.GetHatInfo(p_enFacegear);
     this.xHairdo = HairdoCodex.GetHairdoInfo(p_enHairdo);
     this.rt2dPreRender = new RenderTarget2D(Program.GetTheGame().GraphicsDevice, 150, 150, false, SurfaceFormat.Color, DepthFormat.None);
 }
Пример #2
0
 public CharacterDisplay(PlayerView xView)
 {
     ContentManager Content = RenderMaster.contPlayerStuff;
     this.txBaseMaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Up");
     this.txBaseMaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Right");
     this.txBaseMaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Down");
     this.txBaseMaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/Idle/Left");
     this.txBaseFemaleTextures[0] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Up");
     this.txBaseFemaleTextures[1] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Right");
     this.txBaseFemaleTextures[2] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Down");
     this.txBaseFemaleTextures[3] = Content.Load<Texture2D>("Sprites/Heroes/IdleFemale/Left");
     if (xView.xEquipment.xHairdo != null)
     {
         this.xHairdo = HairdoCodex.GetHairdoInfo(xView.xEquipment.xHairdo.enItemType);
     }
     if (xView.xEquipment.xHat != null)
     {
         this.xHat = HatCodex.GetHatInfo(xView.xEquipment.xHat.enItemType);
     }
     if (xView.xEquipment.xFacegear != null)
     {
         this.xFacegear = FacegearCodex.GetHatInfo(xView.xEquipment.xFacegear.enItemType);
     }
     this.bIsMale = xView.xViewStats.bIsMale;
     this.xClothingSet = new PlayerPalette.ClothingSet(xView.xEquipment.xClothingSet);
     this.rt2dPreRender = new RenderTarget2D(Program.GetTheGame().GraphicsDevice, 150, 150, false, SurfaceFormat.Color, DepthFormat.None);
     this.av4ShaderFeed = RenderMaster.CreateRecolorArray(this.xClothingSet);
     this.av4ShaderHairColorFeed = PlayerPalette.denHairPalettes[this.xClothingSet.enHairColor].av4Palette;
 }