public static void Revoke() { CS505Project1.Services.StandardService dbServices = new StandardService(); //Mom tries to give <dad, purchases, select, without> GrantAction grant = new GrantAction(); grant.grantor_name = "mom"; grant.grantee_name = "PhilCollins"; grant.table_name = "clients"; grant.operation = Operation_Type.SELECT; grant.grant = false; dbServices.Revoke(grant); }
public override void Execute(System.Action action) { var sc = Resources.Load("Prefabs/SlideCharacter") as GameObject; sc = Instantiate(sc); sc.transform.position = Vector3.zero; sc.GetComponent <SlideCharacter>().Setup(characterName, baseHealth, baseArmour, baseActionPoints, guid, team); sc.name = characterName; sc.GetComponent <SlideCharacter>().SetTile(GridController.Singelton.GetTile((int)spawnPosition.x, (int)spawnPosition.y)); ConflictController.Instance.Players[team].AddCrewMember(sc.GetComponent <SlideCharacter>()); ConflictController.Instance.CharactersInGame.Add(guid, sc.GetComponent <SlideCharacter>()); GridController.Singelton.GetTile((int)spawnPosition.x, (int)spawnPosition.y).Occupied = true; GridController.Singelton.GetTile((int)spawnPosition.x, (int)spawnPosition.y).SetObjectOn(sc.GetComponent <SlideCharacter>()); for (int i = 0; i < abilites.Count; i++) { var grantAction = new GrantAction(sc.GetComponent <SlideCharacter>(), abilites[i]); RuneManager.Singelton.ExecuteRune(grantAction); } var rr = new RevealRune(sc.GetComponent <SlideCharacter>(), team); RuneManager.Singelton.ExecuteRune(rr); action(); }