Exemplo n.º 1
0
    public void Insert()
    {
        AgentInfo newInfo = new AgentInfo();

        for (int i = 0; i < agentName.Count; i++)
        {
            name     = agentName[i];
            delta    = deltaTime[i];
            path     = pathValue[i];
            resource = resourceValue[i];
            priority = resourcePriority[i];
            Movement = continuousMovement[i];
            HitValue = hits[i];
            States   = currentState[i];

            newInfo.AgentName          = name;
            newInfo.DeltaTime          = delta;
            newInfo.PathValues         = path;
            newInfo.ResourceValue      = resource;
            newInfo.ResourcePriority   = priority;
            newInfo.ContinuousMovement = Movement;
            newInfo.EnemyHits          = HitValue;
            newInfo.CurrentState       = States;

            StartCoroutine(_table.Insert <AgentInfo>(newInfo, OnInsertCompleted));
        }
    }
Exemplo n.º 2
0
    public void InsertScore()
    {
        HighScoreData score = new HighScoreData {
            score = FindObjectOfType <ScoreCounter>().score, player = "test player"
        };

        StartCoroutine(_table.Insert <HighScoreData>(score, OnInsertCompleted));
    }
    public void Insert()
    {
        Highscore score = GetScore();

        if (Validate(score))
        {
            StartCoroutine(_table.Insert <Highscore> (score, OnInsertCompleted));
        }
    }
Exemplo n.º 4
0
    public void createPlayer(String name, String pass, String email)
    {
        UserProfile testBoi = new UserProfile(name, pass, email);

        StartCoroutine(_table.Insert <UserProfile>(testBoi, OnInsertCompleted));
        ProfileController.instance.name   = savedName;
        ProfileController.instance.role   = "test";
        ProfileController.instance.level  = 1;
        ProfileController.instance.avatar = null;

        SceneManager.LoadScene("MainScene");
    }
Exemplo n.º 5
0
    public void Insert()
    {
        Coordinate coordinate = GetCoordinates();

        StartCoroutine(table.Insert <Coordinate>(coordinate, null));
    }
Exemplo n.º 6
0
    public void Insert()
    {
        Name name = GetName();

        StartCoroutine(table.Insert <Name>(name, null));
    }
Exemplo n.º 7
0
 private void InsertInventory()
 {
     RecalculateInventoryItems();
     Debug.Log("Insert:" + _inventory.ToString());
     StartCoroutine(_table.Insert <Inventory> (_inventory, OnInsertCompleted));
 }