Ejemplo n.º 1
0
 private void Start()
 {
     _commandInfoList = _commandInfo.GetAllCommandInfos("Commands");
     _clothingManager = GameObject.FindWithTag("generator").GetComponent <ClothingManager>();
     _spriteHandler   = GameObject.FindWithTag("generator").GetComponent <SpriteHandler>();
     _inputField      = gameObject.GetComponent <InputField>();
 }
Ejemplo n.º 2
0
 internal Game()
 {
     ClientManager            = new GameClientManager();
     BanManager               = new ModerationBanManager();
     RoleManager              = new RoleManager();
     Catalog                  = new Catalog();
     CatalogPremium           = new CatalogPremium();
     Navigator                = new Navigator();
     NewNavigatorManager      = new NewNavigatorManager();
     ItemManager              = new ItemManager();
     RoomManager              = new RoomManager();
     GroupManager             = new GroupManager();
     newsManager              = new NewsManager();
     ModerationTool           = new ModerationTool();
     questManager             = new QuestManager();
     youtubeManager           = new YoutubeManager();
     piñataManager            = new PiñataHandler();
     roomRankConfig           = new RoomRankConfig();
     AchievementManager       = new AchievementManager();
     talentManager            = new TalentManager();
     AlfaManager              = new AlfaManager();
     MuteManager              = new MuteManager();
     PromotionalBadgesManager = new PromotionalBadges();
     TargetedOfferManager     = new TargetedOfferManager();
     RoomQueueManager         = new RoomQueueManager();
     CraftableProductsManager = new CraftableProductsManager();
     ClothingManager          = new ClothingManager();
     UserLookManager          = new UserLook();
     PrisaoManager            = new PrisaoManager();
     LandingTopUsersManager   = new LandingTopUsers();
     corManager               = new CorManager();
     giftManager              = new GiftModeloManager();
 }
Ejemplo n.º 3
0
 public static void disposeInstance()
 {
     if(instance != null)
     {
         instance = null;
     }
 }
Ejemplo n.º 4
0
 public static ClothingManager getInstance(ClothingSize para_size)
 {
     if(instance == null)
     {
         // Create instance.
         instance = new ClothingManager(para_size);
     }
     return instance;
 }
Ejemplo n.º 5
0
        public CatalogManager()
        {
            this._marketplace     = new MarketplaceManager();
            this._petRaceManager  = new PetRaceManager();
            this._voucherManager  = new VoucherManager();
            this._clothingManager = new ClothingManager();

            this._itemOffers = new Dictionary <int, int>();
            this._pages      = new Dictionary <int, CatalogPage>();
            this._botPresets = new Dictionary <int, CatalogBot>();
            this._items      = new Dictionary <int, Dictionary <int, CatalogItem> >();
            this._deals      = new Dictionary <int, Dictionary <int, CatalogDeal> >();
        }
Ejemplo n.º 6
0
	public DressingRoomGUI (NiteController niteController) {
		clothingManager = new ClothingManager(niteController);//"ClothesAttachments.xml");
		camera = GameObject.Find("Main Camera").GetComponent<Camera>();
		currentSelections = new List<ClothingButton>();
		
		handIcon = Resources.Load("hand") as Texture2D;
		
		buttons = new List<ClothingButton>();
		int currentY = MENU_START_y;
		for (int i = 0; i < clothingManager.clothing.Length; i++) {
			buttons.Add(new ClothingButton(clothingManager.clothing[i], MENU_START_x, currentY, BUTTON_WIDTH, BUTTON_HEIGHT));
			currentY += BUTTON_HOR_GAP;
		}
	}
Ejemplo n.º 7
0
 public CatalogManager()
 {
     _marketplace    = new MarketplaceManager();
     _petRaceManager = new PetRaceManager();
     _voucherManager = new VoucherManager();
     _voucherManager.Init();
     _clothingManager = new ClothingManager();
     _clothingManager.Init();
     _itemOffers = new Dictionary <int, int>();
     _pages      = new Dictionary <int, CatalogPage>();
     _botPresets = new Dictionary <int, CatalogBot>();
     _items      = new Dictionary <int, Dictionary <int, CatalogItem> >();
     _deals      = new Dictionary <int, CatalogDeal>();
     _promotions = new Dictionary <int, CatalogPromotion>();
 }
Ejemplo n.º 8
0
        void Awake()
        {
            foreach (var clothingsInConfirmationMenu in FindObjectsOfType <PurchaseClothingConfirmationMenu>())
            {
                if (clothingsInConfirmationMenu != this)
                {
                    Destroy(clothingsInConfirmationMenu.gameObject);
                }
            }

            clothingManager = FindObjectOfType <ClothingManager>();
            closeButton.onClick.AddListener(() => Destroy(gameObject));
            EventBroker.Instance().SubscribeMessage <EventUpdatePlayerInventory>(OnEventUpdateInventory);
            EventBroker.Instance().SubscribeMessage <EventHideUpdateWindows>(OnHideMenu);
        }
        public CatalogManager()
        {
            _marketplace        = new MarketplaceManager();
            _petRaceManager     = new PetRaceManager();
            _voucherManager     = new VoucherManager();
            _clothingManager    = new ClothingManager();
            _predesignedManager = new PredesignedRoomsManager();
            _predesignedManager.Initialize();

            _itemOffers       = new Dictionary <int, int>();
            _pages            = new Dictionary <int, CatalogPage>();
            _botPresets       = new Dictionary <int, CatalogBot>();
            _items            = new Dictionary <int, Dictionary <int, CatalogItem> >();
            _deals            = new Dictionary <int, Dictionary <int, CatalogDeal> >();
            _predesignedItems = new Dictionary <int, PredesignedContent>();
            _recyclerLevels   = new List <int>();
        }
Ejemplo n.º 10
0
    public DressingRoomGUI(NiteController niteController)
    {
        clothingManager   = new ClothingManager(niteController);      //"ClothesAttachments.xml");
        camera            = GameObject.Find("Main Camera").GetComponent <Camera>();
        currentSelections = new List <ClothingButton>();

        handIcon = Resources.Load("hand") as Texture2D;

        buttons = new List <ClothingButton>();
        int currentY = MENU_START_y;

        for (int i = 0; i < clothingManager.clothing.Length; i++)
        {
            buttons.Add(new ClothingButton(clothingManager.clothing[i], MENU_START_x, currentY, BUTTON_WIDTH, BUTTON_HEIGHT));
            currentY += BUTTON_HOR_GAP;
        }
    }
        public CatalogManager()
        {
            this._marketplace        = new MarketplaceManager();
            this._petRaceManager     = new PetRaceManager();
            this._voucherManager     = new VoucherManager();
            this._clothingManager    = new ClothingManager();
            this._predesignedManager = new PredesignedRoomsManager();
            this._predesignedManager.Initialize();

            this._itemOffers       = new Dictionary <int, int>();
            this._pages            = new Dictionary <int, CatalogPage>();
            this._botPresets       = new Dictionary <int, CatalogBot>();
            this._items            = new Dictionary <int, Dictionary <int, CatalogItem> >();
            this._deals            = new Dictionary <int, Dictionary <int, CatalogDeal> >();
            this._predesignedItems = new Dictionary <int, PredesignedContent>();
            this._televisions      = new Dictionary <int, TelevisionItem>();
        }
Ejemplo n.º 12
0
    void Awake()
    {
        if (instance != null)
        {
            Destroy(this.gameObject);
        }
        else
        {
            instance = this;
        }

        DontDestroyOnLoad(gameObject);

        /*---Adds all outfit items from the Resource folder to the clothes dictionary---*/
        OutfitItem[] clothesFound = Resources.LoadAll <OutfitItem>("Clothing");
        for (int i = 0; i < clothesFound.Length; i++)
        {
            clothes.Add(clothesFound[i].clothingID, clothesFound[i]);
        }
    }
Ejemplo n.º 13
0
 void Awake()
 {
     clothingManager = FindObjectOfType <ClothingManager>();
     print("Cloth Manager is:" + clothingManager);
 }
Ejemplo n.º 14
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="HabboHotel" /> class.
        /// </summary>
        /// <param name="conns">The conns.</param>
        internal HabboHotel(int conns)
        {
            YupiWriterManager.WriteLine(@"Starting up Yupi Emulator for " + Environment.MachineName + "...", @"Yupi.Boot");

            _clientManager = new GameClientManager();

            using (IQueryAdapter queryReactor = Yupi.GetDatabaseManager().GetQueryReactor())
            {
                AbstractBar bar = new AnimatedBar();

                const int wait = 15, end = 5;

                uint itemsLoaded;
                uint navigatorLoaded;
                uint roomModelLoaded;
                uint achievementLoaded;
                uint pollLoaded;

                Progress(bar, wait, end, "Cleaning dirty in database...");
                DatabaseCleanup(queryReactor);

                Progress(bar, wait, end, "Loading Bans...");
                _banManager = new ModerationBanManager();
                _banManager.LoadBans(queryReactor);

                Progress(bar, wait, end, "Loading Roles...");
                _roleManager = new RoleManager();
                _roleManager.LoadRights(queryReactor);

                Progress(bar, wait, end, "Loading Items...");
                _itemManager = new ItemManager();
                _itemManager.LoadItems(queryReactor, out itemsLoaded);

                Progress(bar, wait, end, "Loading Catalog...");
                _catalog = new CatalogManager();

                Progress(bar, wait, end, "Loading Targeted Offers...");
                _targetedOfferManager = new TargetedOfferManager();

                Progress(bar, wait, end, "Loading Clothing...");
                _clothingManager = new ClothingManager();
                _clothingManager.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Rooms...");
                _roomManager = new RoomManager();
                _roomManager.LoadModels(queryReactor, out roomModelLoaded);

                Progress(bar, wait, end, "Loading NavigatorManager...");
                _navigatorManager = new HotelBrowserManager();
                _navigatorManager.Initialize(queryReactor, out navigatorLoaded);

                Progress(bar, wait, end, "Loading Groups...");
                _groupManager = new GroupManager();
                _groupManager.InitGroups();

                Progress(bar, wait, end, "Loading PixelManager...");
                _pixelManager = new ExchangeManager();

                Progress(bar, wait, end, "Loading HotelView...");
                _hotelView = new HotelLandingManager();

                Progress(bar, wait, end, "Loading Hall Of Fame...");
                _hallOfFame = new HallOfFame();

                Progress(bar, wait, end, "Loading ModerationTool...");
                _moderationTool = new ModerationTool();
                _moderationTool.LoadMessagePresets(queryReactor);
                _moderationTool.LoadPendingTickets(queryReactor);

                Progress(bar, wait, end, "Loading Bots...");
                _botManager = new BotManager();

                Progress(bar, wait, end, "Loading Events...");
                _events = new RoomEvents();

                Progress(bar, wait, end, "Loading Talents...");
                _talentManager = new TalentManager();
                _talentManager.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Pinata...");
                _pinataHandler = new PinataHandler();
                _pinataHandler.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Crackable Eggs...");
                _crackableEggHandler = new CrackableEggHandler();
                _crackableEggHandler.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Polls...");
                _pollManager = new PollManager();
                _pollManager.Init(queryReactor, out pollLoaded);

                Progress(bar, wait, end, "Loading Achievements...");
                _achievementManager = new AchievementManager(queryReactor, out achievementLoaded);

                Progress(bar, wait, end, "Loading StaticMessages ...");
                StaticMessagesManager.Load();

                Progress(bar, wait, end, "Loading Guides ...");
                _guideManager = new GuideManager();

                Progress(bar, wait, end, "Loading and Registering Commands...");
                CommandsManager.Register();

                CacheManager.StartProcess();

                //Progress(bar, wait, end, "Loading ServerMutantManager...");
                //this.ServerMutantManager = new ServerMutantManager();

                Console.Write("\r".PadLeft(Console.WindowWidth - Console.CursorLeft - 1));
            }
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Game"/> class.
        /// </summary>
        /// <param name="conns">The conns.</param>
        internal Game(int conns)
        {
            Console.WriteLine();
            Console.WriteLine(@" ╔═╗╔╗╔╗────  ╔═╗╔═╗ ", @"");
            Console.WriteLine(@" ║╔╝╠╣║╚╗╔╦╗  ║╬║║╬║ ", @"");
            Console.WriteLine(@" ║╚╗║║║╔╣║║║  ║╗╣║╔╝", @"");
            Console.WriteLine(@" ╚═╝╚╝╚═╝╠╗║  ╚╩╝╚╝─ ", @"");
            Console.WriteLine(@" ────────╚═╝  ──────     ", @"");
            Console.WriteLine();
            Out.WriteLine(@"Mereos Developer", @"", ConsoleColor.Red);
            Out.WriteLine(@"Emulador desenvolvido para CityRP.", @"", ConsoleColor.Red);
            Console.WriteLine();
            Out.WriteLine(@"CityRP Emulador está inicializando...", @"", ConsoleColor.Green);
            Console.WriteLine();

            _clientManager = new GameClientManager();
            using (var queryReactor = Plus.GetDatabaseManager().GetQueryReactor())
            {
                AbstractBar bar = new AnimatedBar();
                const int   wait = 15, end = 5;

                uint itemsLoaded;
                uint navigatorLoaded;
                uint roomModelLoaded;
                uint achievementLoaded;
                uint pollLoaded;

                Progress(bar, wait, end, "Loading Bans...");
                _banManager = new ModerationBanManager();
                _banManager.Init();

                Progress(bar, wait, end, "Loading Roles...");
                _roleManager = new RoleManager();
                _roleManager.LoadRights(queryReactor);

                Progress(bar, wait, end, "Loading Items...");
                _itemManager = new ItemManager();
                _itemManager.LoadItems(queryReactor, out itemsLoaded);

                Progress(bar, wait, end, "Loading Catalog...");
                _catalog = new Catalog();

                Progress(bar, wait, end, "Loading Clothing...");
                _clothingManager = new ClothingManager();
                _clothingManager.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Crafting...");
                _craftingManager = new CraftingManager();
                _craftingManager.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Rooms...");
                _roomManager = new RoomManager();
                _roomManager.LoadModels(queryReactor, out roomModelLoaded);

                Progress(bar, wait, end, "Loading Navigator...");
                _navigator = new Navigator();
                _navigator.Initialize(queryReactor, out navigatorLoaded);

                Progress(bar, wait, end, "Loading Groups...");
                _groupManager = new GroupManager();
                _groupManager.InitGroups();

                _globalInventory = new InventoryGlobal();

                Progress(bar, wait, end, "Loading HotelView...");
                _hotelView = new HotelView();

                Progress(bar, wait, end, "Loading ModerationTool...");
                _moderationTool = new ModerationTool();
                _moderationTool.LoadMessagePresets(queryReactor);
                _moderationTool.LoadPendingTickets(queryReactor);

                Progress(bar, wait, end, "Loading Bots...");
                _botManager = new BotManager();

                Progress(bar, wait, end, "Loading Quests...");
                _questManager = new QuestManager();
                _questManager.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Events...");
                _events = new RoomEvents();

                Progress(bar, wait, end, "Loading Ranks...");
                _roomRankConfig = new RoomRankConfig();
                _roomRankConfig.Initialize();

                Progress(bar, wait, end, "Loading Talents...");
                _talentManager = new TalentManager();
                _talentManager.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Pinata...");
                _pinataHandler = new PinataHandler();
                _pinataHandler.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Crackable Eggs...");
                _crackableEggHandler = new CrackableEggHandler();
                _crackableEggHandler.Initialize(queryReactor);

                Progress(bar, wait, end, "Loading Polls...");
                _pollManager = new PollManager();
                _pollManager.Init(queryReactor, out pollLoaded);

                Progress(bar, wait, end, "Loading Achievements...");
                _achievementManager = new AchievementManager(queryReactor, out achievementLoaded);

                Progress(bar, wait, end, "Loading StaticMessages ...");
                StaticMessagesManager.Load();

                Progress(bar, wait, end, "Loading Guides ...");
                _guideManager = new GuideManager();


                #region Roleplay

                Console.Write("[" + DateTime.Now.ToString("HH:mm:ss") + "] >> Lista de procurados gerada!");
                Console.WriteLine(" -> READY!");
                RoleplayManager.GenerateWantedList();

                JobManager.init();
                Console.Write("[" + DateTime.Now.ToString("HH:mm:ss") + "] >> " + JobManager.JobData.Count + " Trabalhos carregados");
                Console.WriteLine(" -> READY!");
                GetGroupManager().InitGroups();

                GangManager.init();
                Console.Write("[" + DateTime.Now.ToString("HH:mm:ss") + "] >> " + GangManager.GangData.Count + " Gangues carregadas");
                Console.WriteLine(" -> READY!");

                WeaponManager.init();
                Console.Write("[" + DateTime.Now.ToString("HH:mm:ss") + "] >> " + WeaponManager.WeaponsData.Count + " Armas carregadas");
                Console.WriteLine(" -> READY!");

                ColourManager.Initialize();
                MafiaWars = new MafiaWarManager();
                Console.Write("[" + DateTime.Now.ToString("HH:mm:ss") + "] >> Mini Games iniciados!");
                Console.WriteLine(" -> READY!");

                RoleplayManager.init();

                #endregion

                Manager.Cache.StartProcess();

                using (var dbCleanUp = Plus.GetDatabaseManager().GetQueryReactor())
                    DatabaseCleanup(dbCleanUp);

                Console.Write("\r".PadLeft(Console.WindowWidth - Console.CursorLeft - 1));
            }
        }