示例#1
0
        protected override void OnInitializeFromTemplate(ProjectCreateInformation projectCreateInfo, System.Xml.XmlElement template)
        {
            base.OnInitializeFromTemplate(projectCreateInfo, template);

            var engineParameters = new CryEngineParameters(Project);

            engineParameters.LauncherPath = projectCreateInfo.Parameters["BuildLocation"];
            engineParameters.ProjectPath  = projectCreateInfo.Parameters["ProjectLocation"];

            engineParameters.Save(Project);

            ApplyParameters();
        }
        public void Store(CryEngineGameProjectExtension projectExtension)
        {
            if (projectExtension == null)
            {
                return;
            }

            var engineParameters = new CryEngineParameters(projectExtension.Project)
            {
                LauncherPath     = _launcherPath.Path,
                ProjectPath      = _projectPath.Path,
                CommandArguments = _commandArguments.Text
            };

            engineParameters.Save(projectExtension.Project);

            projectExtension.ApplyParameters();
        }