static int BaseSelectionPriority(SelectableInfo info, Modifiers modifiers) { var priority = info.Priority; if (modifiers.HasModifier(Modifiers.Ctrl) && !modifiers.HasModifier(Modifiers.Alt) && info.PriorityModifiers.HasFlag(SelectionPriorityModifiers.Ctrl)) { priority = int.MaxValue; } if (modifiers.HasModifier(Modifiers.Alt) && !modifiers.HasModifier(Modifiers.Ctrl) && info.PriorityModifiers.HasFlag(SelectionPriorityModifiers.Alt)) { priority = int.MaxValue; } return(priority); }
public Selectable(Actor self, SelectableInfo info) : base(info) { Class = string.IsNullOrEmpty(info.Class) ? self.Info.Name : info.Class; Info = info; }
public Selectable(Actor self, SelectableInfo info) { this.self = self; Info = info; }