public override bool IsTypeMatch(GoalModule other) { if (other is GatherResourceGoalModule g) { return(g.resourceType == resourceType); } return(false); }
public abstract bool IsTypeMatch(GoalModule other);
public override bool IsTypeMatch(GoalModule other) { return(other is MaintainFuelGoalModule); }
public void AddGoal(GoalModule goal) => goalSlots.AddItem(goal);