refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -20,10 +20,9 @@ namespace Cryville.Crtr.Ruleset {
|
||||
public PdtVirtualPlayerStrategy Root { get; private set; }
|
||||
|
||||
public void LoadPdt(DirectoryInfo dir) {
|
||||
using (StreamReader pdtreader = new StreamReader(Path.Combine(dir.FullName, data + ".pdt"), Encoding.UTF8)) {
|
||||
var src = pdtreader.ReadToEnd();
|
||||
Root = (PdtVirtualPlayerStrategy)new RulesetInterpreter(src, null).Interpret(typeof(PdtVirtualPlayerStrategy));
|
||||
}
|
||||
using StreamReader pdtreader = new(Path.Combine(dir.FullName, data + ".pdt"), Encoding.UTF8);
|
||||
var src = pdtreader.ReadToEnd();
|
||||
Root = (PdtVirtualPlayerStrategy)new RulesetInterpreter(src, null).Interpret(typeof(PdtVirtualPlayerStrategy));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,8 +38,8 @@ namespace Cryville.Crtr.Ruleset {
|
||||
|
||||
public class StrategyAction {
|
||||
[ElementList]
|
||||
public PairList<RulesetSelectors, StrategyAction> Elements = new PairList<RulesetSelectors, StrategyAction>();
|
||||
public PairList<RulesetSelectors, StrategyAction> Elements = new();
|
||||
[PropertyList]
|
||||
public PairList<ConstraintKey, PdtExpression> Properties = new PairList<ConstraintKey, PdtExpression>();
|
||||
public PairList<ConstraintKey, PdtExpression> Properties = new();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user