Exemple #1
0
 public SceneBuilder(GraphicsDevice device,
                     EntityController entityController,
                     SkyboxBuilder skyboxBuilder,
                     LightsFactory lightsFactory,
                     OpaqueModelFactory opaqueModelFactory,
                     TransparentModelFactory transparentModelFactory,
                     ProjectorFactory projectorFactory,
                     AdditiveEmitterFactory additiveEmitterFactory,
                     AveragedEmitterFactory averagedEmitterFactory,
                     DynamicTextureFactory dynamicTextureFactory,
                     DebugInfoFactory debugInfoFactory,
                     WaypointFactory waypointFactory,
                     PipelineBuilder pipelineBuilder)
 {
     this.EntityController        = entityController;
     this.SkyboxBuilder           = skyboxBuilder;
     this.LightsFactory           = lightsFactory;
     this.OpaqueModelFactory      = opaqueModelFactory;
     this.TransparentModelFactory = transparentModelFactory;
     this.ProjectorFactory        = projectorFactory;
     this.AdditiveEmitterFactory  = additiveEmitterFactory;
     this.AveragedEmitterFactory  = averagedEmitterFactory;
     this.DynamicTextureFactory   = dynamicTextureFactory;
     this.DebugInfoFactory        = debugInfoFactory;
     this.WaypointFactory         = waypointFactory;
     this.PipelineBuilder         = pipelineBuilder;
 }
Exemple #2
0
 public CreateMenu(DebugInfoFactory outLineFactory, WaypointFactory waypointFactory,
                   ProjectorFactory projectorFactory, ContentManager content, LightsController lightsController)
 {
     this.OutlineFactory   = outLineFactory;
     this.WaypointFactory  = waypointFactory;
     this.ProjectorFactory = projectorFactory;
     this.Texture          = content.Load <Texture2D>("Debug");
     this.LightsController = lightsController;
     this.State            = new UIState();
 }
Exemple #3
0
        public static QuestData GetQuestData(int questId)
        {
            var bountyInfo = GetBountyInfo(questId);
            var questData  = new QuestData();

            questData.QuestId = questId; //(int)bountyInfo.Quest;

            questData.Steps = new List <QuestStepData>();

            if (bountyInfo == null)
            {
                return(questData);
            }

            questData.Name         = bountyInfo.Info.DisplayName.Replace("Bounty: ", string.Empty);
            questData.InternalName = bountyInfo.Quest.ToString();
            questData.Act          = bountyInfo.Act;
            questData.ActName      = bountyInfo.Act.ToString();

            questData.LevelAreaIds = new HashSet <int>(bountyInfo.LevelAreas.Select(la => (int)la));

            questData.Waypoint = WaypointFactory.GetWaypointByLevelAreaId((int)bountyInfo.StartingLevelArea);


            foreach (var step in bountyInfo.Info.QuestRecord.Steps)
            {
                var questStep = new QuestStepData(questData, step);
                questData.Steps.Add(questStep);
            }

            //if (questData.QuestType == BountyQuestType.Unknown)
            //{
            //    questData.QuestType = BountyQuestTypeFactory.GetQuestType(bountyInfo);
            //}

            //var bountyScripts = new BountyScripts();
            //if (bountyScripts.ContainsKey(questId))
            //{
            //    questData.BountyScript = bountyScripts[questId];
            //    questData.BountyScript.Reset();
            //}

            //Logger.Debug("[QuestData] Saving Quest {0} ({1})", questData.Name, questData.QuestId);
            //questData.Save();
            return(questData);
        }