public void AddEntry(string name, string description, IEnumerable <GhostRoleInfo> roles) { NoRolesMessage.Visible = false; var entry = new GhostRolesEntry(name, description, roles); entry.OnRoleSelected += OnRoleRequested; entry.OnRoleFollow += OnRoleFollow; EntryContainer.AddChild(entry); }
public void AddEntry(GhostRoleInfo info) { NoRolesMessage.Visible = false; EntryContainer.AddChild(new GhostRolesEntry(info, _ => RoleRequested?.Invoke(info))); }