Пример #1
0
        private FileValidity LoadFileSections()
        {
            m_sections.Clear();

            if (m_fileData.Length < MinimumFileSize)
            {
                return(FileValidity.NotDiablo2File);
            }

            int offset = 0;

            m_headerSection = new HeaderSection(m_fileData);
            m_sections.Add(m_headerSection);
            offset += m_headerSection.Size;

            var validity = ValidateData();

            if (validity == FileValidity.Valid)
            {
                m_questSection = new QuestSection(m_fileData, offset);
                m_sections.Add(m_questSection);
                offset += m_questSection.Size;

                m_waypointSection = new WaypointSection(m_fileData, offset);
                m_sections.Add(m_waypointSection);
                offset += m_waypointSection.Size;

                m_npcSection = new NpcSection(m_fileData, offset);
                m_sections.Add(m_npcSection);
                offset += m_npcSection.Size;

                m_statsSection = new StatsSection(m_fileData, offset);
                m_sections.Add(m_statsSection);
                offset += m_statsSection.Size;

                m_skillSection = new SkillSection(m_fileData, offset, m_headerSection.SkillSectionLength);
                m_sections.Add(m_skillSection);
                offset += m_skillSection.Size;

                m_itemSection = new ItemListSection(m_fileData, offset);
                m_sections.Add(m_itemSection);
                offset += m_itemSection.Size;

                m_corpseSection = new ItemListSection(m_fileData, offset);
                m_sections.Add(m_corpseSection);
                offset += m_corpseSection.Size;

                m_mercenarySection = new MercenaryItemSection(m_fileData, offset);
                m_sections.Add(m_mercenarySection);
                offset += m_mercenarySection.Size;

                //if (offset != m_fileData.Length)
                //    validity = FileValidity.UnknownError;
            }

            return(validity);
        }
Пример #2
0
        private ReadOnlySpan <byte> ReadSkillSection(ReadOnlySpan <byte> fileData)
        {
            m_skillSection = new SkillSection(fileData.Slice(0, m_headerSection.SkillSectionLength));
            m_skillSection.Validate();

            m_sections.Add(m_skillSection);

            return(fileData.Slice(m_skillSection.Size));
        }
Пример #3
0
        public ResumeVM()
        {
            jobs.Add(new WorkTile
            {
                companyName    = "Jacksonville Electric Authority",
                fromDate       = "May 2019",
                toDate         = "Aug 2019",
                iconSrc        = "JEA.png",
                jobTitle       = "Software Development Intern",
                location       = "Jacksonville, FL",
                jobDescription = "• Designed and maintained ASP.NET applications using C# for use by employees " + Environment.NewLine +
                                 "• Developed database procedures, packages, and triggers in Oracle SQL Developer using Oracle SQL " + Environment.NewLine +
                                 "• Created and updated in-house ASP.NET web pages " + Environment.NewLine +
                                 "• Used Agile methodology to ensure high quality software delivery " + Environment.NewLine +
                                 "Skills / Technologies: C#, ASP.NET, Oracle SQL, SQL Developer, Visual Studio, Agile"
            });

            jobs.Add(new WorkTile
            {
                companyName    = "Independent Contractor",
                fromDate       = "Oct 2012",
                toDate         = "Present",
                iconSrc        = "whistle.png",
                jobTitle       = "Grade 8 Soccer Referee",
                location       = "Jacksonville, FL",
                jobDescription = "Base Job Description"
            });

            jobs.Add(new WorkTile
            {
                companyName    = "Chick-Fil-A",
                fromDate       = "Jun 2016",
                toDate         = "Jul 2017",
                iconSrc        = "CFA.png",
                jobTitle       = "Team Member",
                location       = "Jacksonville, FL",
                jobDescription = "Base Job description"
            });

            education.Add(new EducationTile
            {
                University        = "University of Florida",
                fromDate          = "Aug 2017",
                toDate            = "Present",
                iconSrc           = "UF.png",
                Major             = "Bachelor of Science in Computer Engineering",
                location          = "Gainesville, FL",
                degreeDescription = " "
            });

            education.Add(new EducationTile
            {
                University        = "Florida State College at Jacksonville",
                fromDate          = "Aug 2015",
                toDate            = "May 2017",
                iconSrc           = "FSCJ.jfif",
                Major             = "Associate of Arts",
                location          = "Jacksonville, FL",
                degreeDescription = " Degree Focus "
            });
            //TODO: FIX THIS TO MAKE IT PRETTIER *************************************************************
            //List<skill> progLang = new List<skill>();
            //progLang.Add(new skill{ skillName = "C++"});
            //progLang.Add(new skill { skillName = "C#" });
            //progLang.Add(new skill { skillName = "Java" });
            //progLang.Add(new skill { skillName = "C" });
            //progLang.Add(new skill { skillName = "Oracle SQL" });

            SkillSection ProgLanguages = new SkillSection()
            {
                new Skill()
                {
                    skillName = "C++"
                },
                new Skill()
                {
                    skillName = "C#"
                },
                new Skill()
                {
                    skillName = "Java"
                },
                new Skill()
                {
                    skillName = "C#"
                }
            };

            ProgLanguages.sectionTitle = "Programming Languages";

            //List<skill> Lang = new List<skill>();
            //Lang.Add(new skill { skillName = "English" });
            //Lang.Add(new skill { skillName = "Spanish" });

            SkillSection languages = new SkillSection()
            {
                new Skill()
                {
                    skillName = "English"
                },
                new Skill()
                {
                    skillName = "Spanish"
                }
            };

            languages.sectionTitle = "Languages";

            skillSections = new List <SkillSection>()
            {
                ProgLanguages,
                languages
            };
        }