mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 22:51:16 +00:00
25 lines
785 B
Objective-C
25 lines
785 B
Objective-C
#import "Wesnoth_Scenario_Editor_Prefix.h"
|
|
#import "WNVictoryList.h"
|
|
|
|
@implementation WNVictoryList
|
|
|
|
- (int)numberOfRowsInTableView:(NSTableView *)tableView
|
|
{
|
|
return [[[WNCampaign getActiveScenario] getVictoryConditionsFor: [WNCampaign getDifficulty]] count];
|
|
}
|
|
|
|
- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
|
|
{
|
|
return [[[WNCampaign getActiveScenario] getVictoryConditionsFor: [WNCampaign getDifficulty]] objectAtIndex: row];
|
|
}
|
|
|
|
- (void)tableView:(NSTableView *)aTableView
|
|
setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)tableColumn row:(int)rowIndex
|
|
{
|
|
[[[[WNCampaign getActiveScenario] getVictoryConditionsFor: [WNCampaign getDifficulty]] objectAtIndex: rowIndex] setString: anObject];
|
|
}
|
|
|
|
|
|
|
|
@end
|