-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
95 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
FrEee.Core.Domain/Gameplay/Commands/Projects/IProjectCommandFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace FrEee.Gameplay.Commands.Projects; | ||
|
||
/// <summary> | ||
/// Builds commands for empire wide projects such as research and espionage. | ||
/// </summary> | ||
public interface IProjectCommandFactory | ||
{ | ||
/// <summary> | ||
/// Creates an <see cref="IResearchCommand"/> to assign research spending. | ||
/// </summary> | ||
/// <returns></returns> | ||
IResearchCommand Research(); | ||
} |
28 changes: 28 additions & 0 deletions
28
FrEee.Core.Domain/Gameplay/Commands/Projects/IResearchCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using FrEee.Modding; | ||
using FrEee.Objects.Civilization; | ||
using FrEee.Objects.Technology; | ||
|
||
namespace FrEee.Gameplay.Commands.Projects; | ||
|
||
/// <summary> | ||
/// Command which assigns research spending for an empire. | ||
/// </summary> | ||
public interface IResearchCommand | ||
: ICommand<Empire> | ||
{ | ||
/// <summary> | ||
/// List of technologies to research in order. | ||
/// If percentage spending weights total to less than 100, the queue will get the remaining points. | ||
/// </summary> | ||
ModReferenceList<Technology> Queue { get; } | ||
|
||
/// <summary> | ||
/// Percentage spending weights for technologies. | ||
/// </summary> | ||
ModReferenceKeyedDictionary<Technology, int> Spending { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using FrEee.Gameplay.Commands.Notes; | ||
using FrEee.Objects.Civilization; | ||
using FrEee.Objects.Civilization.Orders; | ||
using FrEee.Objects.GameState; | ||
using FrEee.Objects.Vehicles; | ||
|
||
namespace FrEee.Gameplay.Commands.Projects; | ||
|
||
public class ProjectCommandFactory | ||
: IProjectCommandFactory | ||
{ | ||
public IResearchCommand Research() | ||
{ | ||
return new ResearchCommand(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters