protected virtual void InitializeProcessors() { if (SubProcessors != null) { m_processors = SubProcessors.ToDictionary(x => x.NodeName); } }
public UIProcessor(UISystem system, GameObject instance) : base(system, instance) { this.profile = new UIProfile(GameObject); SubProcessors.Add(new ScoreProcessor(system, this.profile)); SubProcessors.Add(new HealthProcessor(system, this.profile)); }
public LocalProcessor(LocalSystem system, GameObject instance) : base(system, instance) { this.profile = new LocalProfile(GameObject); this.parentSystem = (WorldSystem)System.Parent; this.shooter = this.parentSystem.ShooterSystem.DeployInstance(); this.shooter.Profile.IsAI = false; this.shooter.Profile.Rigidbody.position = new Vector3(50f, 0.5f, 50f); SubProcessors.Add(new LocalCameraProcessor(this.profile.CameraProfile, this.shooter)); this.shooter.Dead += OnShooterDead; }
public IEnumerable <TextFile> Process(TemplateFileInfo templateInfo) { FileType fileType; Func <TemplateFileInfo, IEnumerable <TextFile> > subProcessor; Boolean valid = Enum.TryParse(templateInfo.TemplateBaseName, true, out fileType); if (valid) { SubProcessors.TryGetValue(fileType, out subProcessor); } else { SubProcessors.TryGetValue(FileType.Other, out subProcessor); } return(subProcessor(templateInfo)); }
public AudioProcessor(AudioSystem system, GameObject instance) : base(system, instance) { this.profile = new AudioProfile(GameObject); SubProcessors.Add(new ShootingProcessor(system, this.profile)); }
public WorldProcessor(WorldSystem system, GameObject instance) : base(system, instance) { this.profile = new WorldProfile(GameObject); SubProcessors.Add(new SpawnerProcessor(system, this.profile)); }