我有代码
public sealed class GameBoardComponent : IComponent {
}
// next code auto generated
public partial class Entity {
public GameBoardComponent gameBoard { get { return (GameBoardComponent)GetComponent(GameComponentIds.GameBoard); } }
public bool hasGameBoard { get { return HasComponent(GameComponentIds.GameBoard); } }
public Entity AddGameBoard(int newColumns, int newRows) {
var component = CreateComponent<GameBoardComponent>(GameComponentIds.GameBoard);
component.columns = newColumns;
component.rows = newRows;
return AddComponent(GameComponentIds.GameBoard, component);
}
public Entity ReplaceGameBoard(int newColumns, int newRows) {
var component = CreateComponent<GameBoardComponent>(GameComponentIds.GameBoard);
component.columns = newColumns;
component.rows = newRows;
ReplaceComponent(GameComponentIds.GameBoard, component);
return this;
}
public Entity RemoveGameBoard() {
return RemoveComponent(GameComponentIds.GameBoard);
}
}
我想突出显示或点击GameBoardComponent。
并查找对gameBoard,hasGameBoard,AddGameBoard,ReplaceGameBoard,RemoveGameBoard的所有引用。
对于AnotherComponent:
public sealed class AnotherComponent : IComponent { }
我必须找到另一个,hasAnother,AddAnother,ReplaceAnother,RemoveAnother
是否可以进行宏\ regexp \ resharper模式搜索或类似的搜索?
P.S。我尝试使用resharper模式搜索。但我不明白如何使用搜索,选择字符串(或字符串的一部分)。