Example #1
0
        protected virtual Core.Screen PopulateScreenObject()
        {
            Core.Screen retVal = null;

            //string[] urlSegments = this.Request.Url.Segments;

            //string rootFolder = null;

            ////if (urlSegments.Length > 4)
            ////{
            ////    rootFolder = urlSegments[urlSegments.Length - 3].Replace("/", "");
            ////}
            ////else
            ////{
            ////    rootFolder = urlSegments[urlSegments.Length - 2].Replace("/", "");
            ////}



            //if (rootFolder.ToLower() == "app")
            if (this.Request.Url.AbsolutePath.ToLower().Contains("/app/"))
            {
                string pageName = this.RouteData.GetRequiredString("page");
                string folder   = this.RouteData.GetRequiredString("folder");

                retVal = Screen.GetByFolderAndName(folder, pageName);
                this.EnableViewState = true;
            }

            return(retVal);
        }
Example #2
0
        private void ProcessScreen(Core.Screen screen)
        {
            Grid           grid;
            List <Section> sections;
            GridSection    gridSection;



            foreach (Section section in screen.Sections)
            {
                if (section is GridSection)
                {
                    gridSection = (GridSection)section;
                    grid        = gridSection.Grid;
                    ProcessGrid(grid);
                }

                if (section is EditableGridSection)
                {
                    gridSection = (EditableGridSection)section;
                    grid        = gridSection.Grid;
                    ProcessGrid(grid);
                }
            }

            Core.Screen.Save(screen);
        }
Example #3
0
        public DirectXControl()
        {
            InitializeComponent();

            this.screen = new Core.Screen(Handle);

            this.Resize   += DirectXControl_Resize;
            this.Paint    += DirectXControl_Paint;
            this.Disposed += DirectXControl_Disposed;
        }
Example #4
0
 public Sob(NPC associatedNPC)
 {
     this.associatedNPC = associatedNPC;
     _baseentity = new BaseEntity(this);
     _screen = new ProjectX_V3_Game.Core.Screen(this);
 }
Example #5
0
        public GameClient()
        {
            IsAIBot = true;
            this.socketClient = new ProjectX_V3_Lib.Network.SocketClient();
            socketClient.Owner = this;
            socketClient.Crypto = new ProjectX_V3_Lib.Cryptography.GameCrypto(Program.Config.ReadString("GameKey").GetBytes());

            _screen = new ProjectX_V3_Game.Core.Screen(this);
            _baseentity = new BaseEntity(this);
            _maxhp = 0;
            _maxmp = 0;

            _inventory = new ProjectX_V3_Game.Data.Inventory(this);
            _equipments = new ProjectX_V3_Game.Data.Equipments(this);
            _trade = new ProjectX_V3_Game.Data.TradeData();

            _spelldata = new ProjectX_V3_Game.Data.SpellData(this);

            _subclasses = new SubClasses();

            Warehouses = new ConcurrentDictionary<ushort, ProjectX_V3_Game.Data.Warehouse>();
            foreach (ushort whID in whids)
            {
                if (!Warehouses.TryAdd(whID, new Data.Warehouse(this, whID)))
                    throw new Exception("Failed to add Warehouse...");
            }
            TournamentScore = new ProjectX_V3_Game.Tournaments.TournamentScore();
            TournamentInfo = new ProjectX_V3_Game.Tournaments.TournamentInfo(this);

            Arena = new ProjectX_V3_Game.Data.ArenaInfo(this);
            Pets = new ConcurrentDictionary<int, BattlePet>();

            Permission = Enums.PlayerPermission.Normal;
        }
Example #6
0
 public Monster()
 {
     _screen = new ProjectX_V3_Game.Core.Screen(this);
     _baseentity = new BaseEntity(this);
 }
Example #7
0
 public NPC()
 {
     _screen = new ProjectX_V3_Game.Core.Screen(this);
     _baseentity = new BaseEntity(this);
     _maxhp = 0;
     _maxmp = 0;
 }
Example #8
0
 /// <summary>
 /// Creates a new instance of GroundItem.
 /// </summary>
 /// <param name="item">The actual item info.</param>
 public GroundItem(ItemInfo item)
 {
     this.item = item;
     _screen = new ProjectX_V3_Game.Core.Screen(this);
 }