Exemplo n.º 1
0
    public override void Execute(string text, WorldDriver driver)
    {
        var response = count < responses.Count ? responses[count] : finalText;

        count++;
        driver.DisplayResponse(response);
    }
        public RootDriver()
        {
            CurrentThread = Thread.CurrentThread;

            ContextPtr = CoreInternals.Context_New();

            ActorDriver     = new ActorDriver(this);
            WorldDriver     = new WorldDriver(this);
            CoreDriver      = new CoreDriver(this);
            EngineDriver    = new EngineDriver(this);
            ComponentDriver = new ComponentDriver(this);

            ResourcesCollection = new ResourceCollection(this);
            ComponentCollection = new ComponentCollection();
            // Setup Internal Drivers
            ResourceManagerDriver = new ResourceManagerDriver(this);
            MeshDriver            = new MeshDriver(this);
        }
Exemplo n.º 3
0
 public override void Execute(string text, WorldDriver driver)
 {
     driver.DisplayResponse(string.Empty);
     action();
 }
Exemplo n.º 4
0
 public override void Execute(string text, WorldDriver driver)
 {
     driver.DisplayResponse(RandomString.Get(responses));
 }
Exemplo n.º 5
0
 public abstract void Execute(string text, WorldDriver driver);