Ejemplo n.º 1
0
 protected virtual void InitializeProcessors()
 {
     if (SubProcessors != null)
     {
         m_processors = SubProcessors.ToDictionary(x => x.NodeName);
     }
 }
Ejemplo n.º 2
0
    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));
    }
Ejemplo n.º 3
0
    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;
    }
Ejemplo n.º 4
0
        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));
        }
Ejemplo n.º 5
0
 public AudioProcessor(AudioSystem system, GameObject instance) : base(system, instance)
 {
     this.profile = new AudioProfile(GameObject);
     SubProcessors.Add(new ShootingProcessor(system, this.profile));
 }
Ejemplo n.º 6
0
    public WorldProcessor(WorldSystem system, GameObject instance) : base(system, instance)
    {
        this.profile = new WorldProfile(GameObject);

        SubProcessors.Add(new SpawnerProcessor(system, this.profile));
    }