Skip to content

Commit

Permalink
Add version number of BotEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
takahi-i committed Dec 16, 2018
1 parent 0db3872 commit 493937b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Assets/SimpleBot/Library/BotEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,24 @@ namespace SimpleBot
/// file and manage dialogue between a user and bot.
/// </summary>
public class BotEngine
{
{
public float VERSION = 0.7f;
private IntentIdentifier identifier;
private IDictionary<string, List<ReplyResponder>> responders;
private State state;
private State state;

/// <summary>
/// Initializes a new instance of the <see cref="T:SimpleBot.BotEngine"/> class.
/// </summary>
/// <param name="config">Configuration object loaded from the configuration file</param>
public BotEngine(Configuration config)
{
Debug.Log(String.Format("Generating BotEngine version {0:F}", VERSION));
setResources(config);
}

public BotEngine(string configurationString) {
Debug.Log(String.Format("Generating BotEngine version {0:F}", VERSION));
ConfigurationLoader configurationLoader = new ConfigurationLoader();
Configuration config = configurationLoader.loadFromString(configurationString);
setResources(config);
Expand Down

0 comments on commit 493937b

Please sign in to comment.