-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
36 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace InfrastSim.TimeDriven { | ||
internal record struct CompositionSkillInfo(int UnlockUpgraded, SkillInfo Skill) { | ||
public static implicit operator CompositionSkillInfo(SkillInfo skill) => new(0, skill); | ||
public static implicit operator CompositionSkillInfo((int UnlockUpgraded, SkillInfo Skill) tuple) => new(tuple.UnlockUpgraded, tuple.Skill); | ||
} | ||
} |
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,8 @@ | ||
namespace InfrastSim.TimeDriven; | ||
|
||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] | ||
internal class OperatorAttribute : Attribute { | ||
public string Name { get; } | ||
public OperatorGroup[] Groups { get; } | ||
public CompositionSkillInfo[] Skills { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace InfrastSim.TimeDriven; | ||
internal record struct OperatorGroup(string GroupName, int GroupUpgraded = 0) { | ||
public static implicit operator OperatorGroup(string group) => new(group); | ||
public static implicit operator OperatorGroup((string name, int upgraded) tuple) => new(tuple.name, tuple.upgraded); | ||
} |
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,11 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace InfrastSim.TimeDriven { | ||
internal class SkillInfo { | ||
string Name { get; } | ||
Check warning on line 9 in InfrastSim/TimeDriven/SkillInfo.cs GitHub Actions / build-linux
|
||
} | ||
} |