예제 #1
0
        public PlayerLookController(PlayerLookData playerLookData,
                                    PlayerLookLoader playerLookLoader,
                                    PlayerItemLoader playerItemLoader)
        {
            this.playerLookData   = playerLookData;
            this.playerLookLoader = playerLookLoader;
            this.playerItemLoader = playerItemLoader;

            if (CurrentBodyId.Length > 0)
            {
                var currentItem = GetBody(CurrentBodyId);
                currentItem.Equipped = true;
            }

            if (CurrentBagId.Length > 0)
            {
                var currentItem = GetBag(CurrentBagId);
                currentItem.Equipped = true;
            }

            if (CurrentStickId.Length > 0)
            {
                var currentItem = GetStick(CurrentStickId);
                currentItem.Equipped = true;
            }

            if (CurrentGlassesId.Length > 0)
            {
                var currentItem = GetGlasses(CurrentGlassesId);
                currentItem.Equipped = true;
            }

            if (CurrentBeardId.Length > 0)
            {
                var currentItem = GetBeard(CurrentBeardId);
                currentItem.Equipped = true;
            }
        }
예제 #2
0
 public PlayerLookLoader(PlayerItemLoader playerBodyLoader, PrefsWrapper wrapper)
 {
     this.playerItemLoader = playerBodyLoader;
     this.wrapper          = wrapper;
 }