Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            EmotionalSuecaPlayer sp = null;
            string client           = "";
            string character        = "";
            string path             = "";
            string type             = "";

            if (args.Length == 4)
            {
                client    = args[0];
                path      = args[1];
                type      = args[2];
                character = args[3];
                sp        = new EmotionalSuecaPlayer(client, path, type, character);
            }
            else
            {
                Console.WriteLine("Unspecified number of arguments: [thisClientName], [scenarioPath], [agentType:\"Group\"|\"Individual\"], [ThalamusCharacter(s)]");
            }

            Console.ReadLine();

            if (sp != null)
            {
                sp.Dispose();
            }
        }
Ejemplo n.º 2
0
 public SuecaRolePlayCharacter(int nameId, string agentType, string scenarioPath, EmotionalSuecaPlayer esp)
 {
     _esp                         = esp;
     _agentName                   = "EMYS-" + nameId + "(" + agentType + ")";
     _randomNumberGenerator       = new Random(System.Guid.NewGuid().GetHashCode());
     _events                      = new List <SuecaEvent>();
     AssetManager.Instance.Bridge = new AssetManagerBridge();
     _iat                         = IntegratedAuthoringToolAsset.LoadFromFile(scenarioPath);
     eventsLock                   = new Object();
     loadScenario(agentType);
     usedUtterances = new List <Utterance>();
     Task.Run(() => { UpdateCoroutine(); });
 }