コード例 #1
0
 private void CopyToLatestWardrobeComponent(LatestAppearanceComponent value)
 {
     if (null == value)
     {
         return;
     }
     value.Cap                    = GetLatestWardrobeValue(Wardrobe.Cap);
     value.PendantFace            = GetLatestWardrobeValue(Wardrobe.PendantFace);
     value.Inner                  = GetLatestWardrobeValue(Wardrobe.Inner);
     value.Armor                  = GetLatestWardrobeValue(Wardrobe.Armor);
     value.Outer                  = GetLatestWardrobeValue(Wardrobe.Outer);
     value.Glove                  = GetLatestWardrobeValue(Wardrobe.Glove);
     value.Waist                  = GetLatestWardrobeValue(Wardrobe.Waist);
     value.Trouser                = GetLatestWardrobeValue(Wardrobe.Trouser);
     value.Foot                   = GetLatestWardrobeValue(Wardrobe.Foot);
     value.Bag                    = GetLatestWardrobeValue(Wardrobe.Bag);
     value.Entirety               = GetLatestWardrobeValue(Wardrobe.Entirety);
     value.CharacterHair          = GetLatestWardrobeValue(Wardrobe.CharacterHair);
     value.CharacterHairContainer = GetLatestWardrobeValue(Wardrobe.CharacterHairContainer);
     value.CharacterHead          = GetLatestWardrobeValue(Wardrobe.CharacterHead);
     value.CharacterGlove         = GetLatestWardrobeValue(Wardrobe.CharacterGlove);
     value.CharacterInner         = GetLatestWardrobeValue(Wardrobe.CharacterInner);
     value.CharacterTrouser       = GetLatestWardrobeValue(Wardrobe.CharacterTrouser);
     value.CharacterFoot          = GetLatestWardrobeValue(Wardrobe.CharacterFoot);
 }
コード例 #2
0
 private void CopyToLatestWeaponComponent(LatestAppearanceComponent value)
 {
     if (null == value)
     {
         return;
     }
     value.PrimaryWeaponOne          = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponOne);
     value.PrimaryWeaponOneMuzzle    = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponOneMuzzle);
     value.PrimaryWeaponOneLowRail   = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponOneLowRail);
     value.PrimaryWeaponOneMagazine  = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponOneMagazine);
     value.PrimaryWeaponOneButtstock = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponOneButtstock);
     value.PrimaryWeaponOneScope     = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponOneScope);
     value.PrimaryWeaponTwo          = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponTwo);
     value.PrimaryWeaponTwoMuzzle    = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponTwoMuzzle);
     value.PrimaryWeaponTwoLowRail   = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponTwoLowRail);
     value.PrimaryWeaponTwoMagazine  = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponTwoMagazine);
     value.PrimaryWeaponTwoButtstock = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponTwoButtstock);
     value.PrimaryWeaponTwoScope     = GetLatestWeaponValue(LatestWeaponStateIndex.PrimaryWeaponTwoScope);
     value.SideArm          = GetLatestWeaponValue(LatestWeaponStateIndex.SideArm);
     value.SideArmMuzzle    = GetLatestWeaponValue(LatestWeaponStateIndex.SideArmMuzzle);
     value.SideArmLowRail   = GetLatestWeaponValue(LatestWeaponStateIndex.SideArmLowRail);
     value.SideArmMagazine  = GetLatestWeaponValue(LatestWeaponStateIndex.SideArmMagazine);
     value.SideArmButtstock = GetLatestWeaponValue(LatestWeaponStateIndex.SideArmButtstock);
     value.SideArmScope     = GetLatestWeaponValue(LatestWeaponStateIndex.SideArmScope);
     value.MeleeWeapon      = GetLatestWeaponValue(LatestWeaponStateIndex.MeleeWeapon);
     value.ThrownWeapon     = GetLatestWeaponValue(LatestWeaponStateIndex.ThrownWeapon);
     value.TacticWeapon     = GetLatestWeaponValue(LatestWeaponStateIndex.TacticWeapon);
 }
コード例 #3
0
 private void CopyFromLatestWardrobeComponent(LatestAppearanceComponent value)
 {
     if (null == value)
     {
         return;
     }
     SetLatestWardrobeValue(Wardrobe.Cap, value.Cap);
     SetLatestWardrobeValue(Wardrobe.PendantFace, value.PendantFace);
     SetLatestWardrobeValue(Wardrobe.Inner, value.Inner);
     SetLatestWardrobeValue(Wardrobe.Armor, value.Armor);
     SetLatestWardrobeValue(Wardrobe.Outer, value.Outer);
     SetLatestWardrobeValue(Wardrobe.Glove, value.Glove);
     SetLatestWardrobeValue(Wardrobe.Waist, value.Waist);
     SetLatestWardrobeValue(Wardrobe.Trouser, value.Trouser);
     SetLatestWardrobeValue(Wardrobe.Foot, value.Foot);
     SetLatestWardrobeValue(Wardrobe.Bag, value.Bag);
     SetLatestWardrobeValue(Wardrobe.Entirety, value.Entirety);
     SetLatestWardrobeValue(Wardrobe.CharacterHair, value.CharacterHair);
     SetLatestWardrobeValue(Wardrobe.CharacterHairContainer, value.CharacterHairContainer);
     SetLatestWardrobeValue(Wardrobe.CharacterHead, value.CharacterHead);
     SetLatestWardrobeValue(Wardrobe.CharacterGlove, value.CharacterGlove);
     SetLatestWardrobeValue(Wardrobe.CharacterInner, value.CharacterInner);
     SetLatestWardrobeValue(Wardrobe.CharacterTrouser, value.CharacterTrouser);
     SetLatestWardrobeValue(Wardrobe.CharacterFoot, value.CharacterFoot);
 }
コード例 #4
0
 private void CopyToLatestWardrobeComponent(LatestAppearanceComponent value)
 {
     if (null == value)
     {
         return;
     }
     value.PropId = GetPropIdValue();
 }
コード例 #5
0
 private void CopyFromLatestWardrobeComponent(LatestAppearanceComponent value)
 {
     if (null == value)
     {
         return;
     }
     SetPropIdValue(value.PropId);
 }
コード例 #6
0
 private void CopyFromWeaponIdsComponent(LatestAppearanceComponent value)
 {
     if (null == value)
     {
         return;
     }
     SetWeaponIdByType(WeaponInPackage.PrimaryWeaponOne, value.PrimaryWeaponOne);
     SetWeaponIdByType(WeaponInPackage.PrimaryWeaponTwo, value.PrimaryWeaponTwo);
     SetWeaponIdByType(WeaponInPackage.SideArm, value.SideArm);
     SetWeaponIdByType(WeaponInPackage.MeleeWeapon, value.MeleeWeapon);
     SetWeaponIdByType(WeaponInPackage.ThrownWeapon, value.ThrownWeapon);
     SetWeaponIdByType(WeaponInPackage.TacticWeapon, value.TacticWeapon);
 }
コード例 #7
0
        private void CopyFromAttachmentIdsComponent(LatestAppearanceComponent value)
        {
            if (null == value)
            {
                return;
            }
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponOne, WeaponPartLocation.Muzzle, value.PrimaryWeaponOneMuzzle);
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponOne, WeaponPartLocation.LowRail, value.PrimaryWeaponOneLowRail);
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponOne, WeaponPartLocation.Magazine, value.PrimaryWeaponOneMagazine);
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponOne, WeaponPartLocation.Buttstock, value.PrimaryWeaponOneButtstock);
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponOne, WeaponPartLocation.Scope, value.PrimaryWeaponOneScope);

            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponTwo, WeaponPartLocation.Muzzle, value.PrimaryWeaponTwoMuzzle);
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponTwo, WeaponPartLocation.LowRail, value.PrimaryWeaponTwoLowRail);
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponTwo, WeaponPartLocation.Magazine, value.PrimaryWeaponTwoMagazine);
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponTwo, WeaponPartLocation.Buttstock, value.PrimaryWeaponTwoButtstock);
            SetAttachmentIdByType(WeaponInPackage.PrimaryWeaponTwo, WeaponPartLocation.Scope, value.PrimaryWeaponTwoScope);

            SetAttachmentIdByType(WeaponInPackage.SideArm, WeaponPartLocation.Muzzle, value.SideArmMuzzle);
            SetAttachmentIdByType(WeaponInPackage.SideArm, WeaponPartLocation.LowRail, value.SideArmLowRail);
            SetAttachmentIdByType(WeaponInPackage.SideArm, WeaponPartLocation.Magazine, value.SideArmMagazine);
            SetAttachmentIdByType(WeaponInPackage.SideArm, WeaponPartLocation.Buttstock, value.SideArmButtstock);
            SetAttachmentIdByType(WeaponInPackage.SideArm, WeaponPartLocation.Scope, value.SideArmScope);
        }
コード例 #8
0
 public void SyncToLatestComponent(LatestAppearanceComponent value)
 {
     CopyToLatestWardrobeComponent(value);
 }
コード例 #9
0
 public void SyncFromLatestComponent(LatestAppearanceComponent value)
 {
     CopyFromLatestWeaponComponent(value);
 }
コード例 #10
0
 public void SyncFromLatestComponent(LatestAppearanceComponent value)
 {
     CopyFromWeaponIdsComponent(value);
     CopyFromAttachmentIdsComponent(value);
 }