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); }
public override void Execute(string text, WorldDriver driver) { driver.DisplayResponse(string.Empty); action(); }
public override void Execute(string text, WorldDriver driver) { driver.DisplayResponse(RandomString.Get(responses)); }
public abstract void Execute(string text, WorldDriver driver);