public CharacterCreationData()
 {
     Genders = new SexTypeEnum []
     {
         SexTypeEnum.SEX_MALE,
         SexTypeEnum.SEX_FEMALE
     };
 }
Exemplo n.º 2
0
        public SexChallenge(int id, IFight fight)
            : base(id, fight)
        {
            BonusMin = 35;
            BonusMax = 35;

            m_sexType = id == (int)ChallengeEnum.NI_PIOUTES_NI_SOUMISES ? SexTypeEnum.SEX_FEMALE : SexTypeEnum.SEX_MALE;
        }
Exemplo n.º 3
0
 public CharacterCreationData()
 {
     Genders = new SexTypeEnum []
     {
         SexTypeEnum.SEX_MALE,
         SexTypeEnum.SEX_FEMALE
     };
 }
Exemplo n.º 4
0
        public ActorLook GetLook(SexTypeEnum sex, bool clone = false)
        {
            if (clone)
            {
                return(sex == SexTypeEnum.SEX_FEMALE ? FemaleLook.Clone() : MaleLook.Clone());
            }

            return(sex == SexTypeEnum.SEX_FEMALE ? FemaleLook : MaleLook);
        }
Exemplo n.º 5
0
        public ActorLook GetLook(SexTypeEnum sex, bool clone = false)
        {
            ActorLook result;

            if (clone)
            {
                result = ((sex == SexTypeEnum.SEX_FEMALE) ? this.FemaleLook.Clone() : this.MaleLook.Clone());
            }
            else
            {
                result = ((sex == SexTypeEnum.SEX_FEMALE) ? this.FemaleLook : this.MaleLook);
            }
            return(result);
        }
Exemplo n.º 6
0
    /// <summary>
    /// 改变性别
    /// </summary>
    /// <param name="sexType"></param>
    public void ChangeSex(SexTypeEnum sexType)
    {
        CreatureCptCharacter character = GetCharacter();

        character.characterSkin.ChangeSex(sexType);

        ui_Man.interactable   = true;
        ui_Woman.interactable = true;
        switch (sexType)
        {
        case SexTypeEnum.Man:
            ui_Man.interactable = false;
            ui_SexTitle.text    = TextHandler.Instance.GetTextById(33);
            break;

        case SexTypeEnum.Woman:
            ui_Woman.interactable = false;
            ui_SexTitle.text      = TextHandler.Instance.GetTextById(34);
            break;
        }
    }
Exemplo n.º 7
0
    /// <summary>
    /// 改变性别
    /// </summary>
    /// <param name="sexType"></param>
    public void ChangeSex(SexTypeEnum sexType)
    {
        this.characterData.SetSex(sexType);
        long skinId = 0;

        switch (sexType)
        {
        case SexTypeEnum.Man:
            skinId = 2;
            break;

        case SexTypeEnum.Woman:
            skinId = 1;
            break;
        }

        CharacterInfoBean characterInfo = CreatureHandler.Instance.manager.GetCharacterInfoSkin(skinId);

        if (characterInfo == null)
        {
            LogUtil.LogError($"查询皮肤数据失败,没有ID为 {skinId} 的皮肤数据");
        }
        else
        {
            CreatureHandler.Instance.manager.GetCharacterSkinTex(characterInfo.model_name,
                                                                 (data) =>
            {
                if (data == null)
                {
                    LogUtil.LogError($"查询皮肤贴图失败,没有名字为 {characterInfo.model_name} 的皮肤贴图");
                }
                else
                {
                    bodyMat.mainTexture = data;
                }
            });
        }
    }
Exemplo n.º 8
0
 /// <summary>
 /// 设置性别
 /// </summary>
 /// <param name="sexType"></param>
 public void SetSex(SexTypeEnum sexType)
 {
     this.characterSex = (int)sexType;
 }
Exemplo n.º 9
0
 public uint[] GetColors(SexTypeEnum sex) => sex == SexTypeEnum.SEX_FEMALE ? FemaleColors : MaleColors;