Ejemplo n.º 1
0
        public OnWorld(
            MenuManager menumanager,
            GlobalWorld globalworld,
            ParticleToTexture particletotexture)
        {
            MenuManager       = menumanager;
            GlobalWorld       = globalworld;
            ParticleToTexture = particletotexture;

            if (MenuManager.OnWorldItem.Value)
            {
                Drawing.OnDraw += OnDraw;
            }

            MenuManager.OnWorldItem.PropertyChanged += OnWorldItemChanged;
        }
Ejemplo n.º 2
0
        public BeAwarePlusConfig(BeAwarePlus BeAwarePlus)
        {
            MenuManager = new MenuManager();

            Colors = new Colors();

            Dangerous = new Dangerous();

            EntityToTexture = new EntityToTexture();

            ModifierToTexture = new ModifierToTexture();

            ParticleToTexture = new ParticleToTexture();

            GlobalMiniMap = new GlobalMiniMap();

            GlobalWorld = new GlobalWorld();

            MessageCreator = new MessageCreator(MenuManager);

            Resolution = new Resolution(MessageCreator);

            SoundPlayer = new SoundPlayer(MenuManager);

            Others = new Others(
                MenuManager,
                BeAwarePlus.Context.Owner,
                MessageCreator,
                SoundPlayer);

            DrawHelper = new DrawHelper(
                MenuManager,
                BeAwarePlus.Context.Owner,
                GlobalMiniMap,
                GlobalWorld);

            ParticleSpells = new ParticleSpells(
                MenuManager,
                BeAwarePlus.Context.Owner,
                Dangerous,
                MessageCreator,
                SoundPlayer,
                Colors,
                DrawHelper);

            ParticleItems = new ParticleItems(
                MenuManager,
                BeAwarePlus.Context.Owner,
                Dangerous,
                MessageCreator,
                SoundPlayer,
                Colors,
                DrawHelper);

            ParticleTeleport = new ParticleTeleport(
                MenuManager,
                BeAwarePlus.Context.Owner,
                MessageCreator,
                SoundPlayer,
                Colors,
                GlobalMiniMap,
                GlobalWorld);

            Entities = new Entities(
                MenuManager,
                BeAwarePlus.Context.Owner,
                Dangerous,
                MessageCreator,
                SoundPlayer,
                Colors,
                GlobalMiniMap,
                GlobalWorld);

            Modifiers = new Modifiers(
                MenuManager,
                BeAwarePlus.Context.Owner,
                Dangerous,
                MessageCreator,
                SoundPlayer,
                Colors,
                GlobalMiniMap,
                GlobalWorld);

            OnMiniMap = new OnMiniMap(
                MenuManager,
                BeAwarePlus.Render,
                GlobalMiniMap);

            OnWorld = new OnWorld(
                MenuManager,
                GlobalWorld,
                ParticleToTexture);
        }