public Opportunity(Company company, Class _class, List <Skill> skills, string description, EJobType jobType, decimal salaryMin, decimal salaryMax, Job job, List <Like> likes, User user) { LastUpdate = DateTime.Now; LastUpdateBy = user; CreationDate = DateTime.Now; CreatedBy = user; Company = company; CompanyId = company.Id; Class = _class; ClassId = _class.Id; Skills = skills; Description = description; JobType = jobType; SalaryMin = salaryMin; SalaryMax = salaryMax; Active = true; Job = job; Likes = likes; }
public JobClass(EJobType jobType, int jobLevel) { if (jobLevel <= 0) { jobLevel = 1; } this.jobType = jobType; this.jobLevel = jobLevel; this.jobExperience = 0; }
public FileOperChangeUserDefType() { m_pDataChangeUserDefType = new DataChangeUserDefType(); // m_pFileOperCheckFileNameExtension = new FileOperCheckFileNameExtension(); m_pFileOperCheckContainKey = new FileOperCheckContainKey(); m_pFileOperDoJobCopyFile = new FileOperDoJobCopyFile(); m_pFileOperDoJobUserDefType = new FileOperDoJobUserDefType(); m_nDoJobType = EJobType.JobType_DoNothing; }
public NpcStats(string npcName, int npclevel, EJobType npcJob, int npcJobLevel, int npcStrength, int npcDexterity, int npcIntelligence, int npcSight) { this.npcName = npcName; this.level = npclevel; this.jobClass = new JobClass(npcJob, npcJobLevel); this.strength = npcStrength; this.dexterity = npcDexterity; this.intelligence = npcIntelligence; this.sight = npcSight; SetMaxHP(); //this.healthBarSlider.value = CalculateHealthBarValue(); loyalty = UnityEngine.Random.Range(40, 60); }
//Constructor for random enemies public NpcStats(int minLevel, int maxLevel) { if (minLevel <= 0) { minLevel = 1; } level = UnityEngine.Random.Range(minLevel, maxLevel); npcJob = (EJobType)UnityEngine.Random.Range(0, 7); jobClass = new JobClass(npcJob, level); strength = UnityEngine.Random.Range(1, level * 3); dexterity = UnityEngine.Random.Range(1, level * 3); intelligence = UnityEngine.Random.Range(1, level * 3); sight = UnityEngine.Random.Range(1, level * 3); cost = 50 * level; SetMaxHP(); }
/// //////////////////////////////////////////////////////////////////// /// <summary> /// //////////////////////////////////////////////////////////////////// /// </summary> /// <param name="strDataSrcFile"></param> private EJobType _CheckJobType(DataChangeUserDefType pData) { EJobType nEProcessFileType = EJobType.JobType_DoNothing; bool bCheckFileContainKey = false; //check file contain Key bCheckFileContainKey = false; m_pFileOperCheckContainKey.resetValue(pData.m_strCurrentFileFrom, pData.m_strFindWhat); bCheckFileContainKey = m_pFileOperCheckContainKey.checkContainKey(); if (false == bCheckFileContainKey) { nEProcessFileType = EJobType.JobType_CopyFile; return nEProcessFileType; } //need process nEProcessFileType = EJobType.JobType_ChangeUserDefType; return nEProcessFileType; }
public Opportunity(string title, int companyId, int _classId, string description, EJobType jobType, decimal salaryMin, decimal salaryMax, int userId) { LastUpdate = DateTime.Now; LastUpdateById = userId; CreationDate = DateTime.Now; CreatedById = userId; Title = title; CompanyId = companyId; ClassId = _classId; Description = description; JobType = jobType; SalaryMin = salaryMin; SalaryMax = salaryMax; Active = true; }
public void processFile(DataChangeUserDefType pData) { m_pDataChangeUserDefType = pData; //FileExtenion if (m_pDataChangeUserDefType.m_strFileExtenion.Length > 0) { bool isFileExtenion = false; m_pFileOperCheckFileNameExtension.resetFileNameValue(m_pDataChangeUserDefType.m_strCurrentFileFrom, m_pDataChangeUserDefType.m_strFileExtenion); isFileExtenion = m_pFileOperCheckFileNameExtension.checkExtenion(); if (false == isFileExtenion) { //not process this file return; } } m_nDoJobType = _CheckJobType(m_pDataChangeUserDefType);//m_pDataChangeUserDefType.m_strCurrentFileFrom switch (m_nDoJobType) { case EJobType.JobType_ChangeUserDefType: m_pFileOperDoJobUserDefType.changeUserDefType(m_pDataChangeUserDefType); break; case EJobType.JobType_CopyFile: m_pFileOperDoJobCopyFile.processFile( m_pDataChangeUserDefType.m_strCurrentFileFrom, m_pDataChangeUserDefType.m_strCurrentFileTo); break; default: m_pFileOperDoJobCopyFile.processFile( m_pDataChangeUserDefType.m_strCurrentFileFrom, m_pDataChangeUserDefType.m_strCurrentFileTo); break; }//switch }
void RunCmd(EJobType Command, int Port = 0) { string EnginePath = "\\Engine\\Binaries\\Win64\\UE4Editor.exe"; string JobCommand = ""; switch (Command) { case EJobType.BatchServer: JobCommand = $"\"{CurrentSelectedEngine.Path}{EnginePath}\" \"{ProjectFile}\" -server -log -Port=7777 -QueryPort={Port}"; break; case EJobType.CompileBP: JobCommand = $"\"{CurrentSelectedEngine.Path}{EnginePath}\" \"{ProjectFile}\" -run=CompileAllBlueprints"; break; case EJobType.TestClient: JobCommand = $"\"{CurrentSelectedEngine.Path}{EnginePath}\" \"{ProjectFile}\" -game -log -resX=900 -resY=700 -windowed"; break; case EJobType.TestServer: JobCommand = $"\"{CurrentSelectedEngine.Path}{EnginePath}\" \"{ProjectFile}\" -server -log -Port=7777 -QueryPort={Port}"; break; case EJobType.TestServerProfiling: JobCommand = $"\"{CurrentSelectedEngine.Path}{EnginePath}\" \"{ProjectFile}\" -server -log -Port=7777 -QueryPort={Port} -networkprofiler=true"; break; } ProcessStartInfo process = new ProcessStartInfo(); process.WindowStyle = ProcessWindowStyle.Normal; process.FileName = "cmd.exe"; process.Arguments = $"/k \"{JobCommand}\""; Process.Start(process); }
public void SwitchJob(EJobType newJob) { jobClass.SwitchJobClass(newJob); }
public void SwitchJobClass(EJobType newJob) { jobType = newJob; jobLevel = 0; jobExperience = 0; }