Exemple #1
0
    public DumpWrapper Dump()
    {
        var ret = new DumpWrapper();

        ret.name           = Name;
        ret.minimalPLMDump = minimalPlayablePLM;
        ret.canvasDump     = CanvasConfig.StaticSerialize(canvasConfig);
        ret.matchRuleDumps = matchRules.SchemeStyleMap <RuleMatchBasic, string>((r) => {
            return(RuleMatchBasic.StaticSerialize(r));
        });
        ret.operationRuleDumps = operationRules.SchemeStyleMap <RuleOperation, string>((r) => {
            return(RuleOperation.StaticSerialize(r));
        });
        ret.extensionRuleDumps = extensionRules.SchemeStyleMap <RuleMatchExtension, string>((r) => {
            return(RuleMatchExtension.StaticSerialize(r));
        });
        ret.scoreRuleDumps = scoreRules.SchemeStyleMap <RuleScore, string>((r) => {
            return(RuleScore.StaticSerialize(r));
        });
        ret.refillRuleDump = RuleRefill.StaticSerialize(refillRule);
        ret.traitDumps     = slotConfig.Traits.SchemeStyleMap <SlotTrait, string>((t) => {
            return(SlotTrait.StaticSerialize(t));
        });
        ret.specialDumps = new List <string>();
        foreach (var kvp in slotConfig.Specials)
        {
            ret.specialDumps.Add(SlotSpecialty.StaticSerialize(kvp.Value));
        }
        return(ret);
    }
Exemple #2
0
    public virtual void Init(List <string> traitDumps, List <string> specialDumps)
    {
        traits = traitDumps.SchemeStyleMap <string, SlotTrait>((str) => {
            return(SlotTrait.StaticDeserialize(str));
        });
        var tmp = specialDumps.SchemeStyleMap <string, SlotSpecialty>((str) => {
            return(SlotSpecialty.StaticDeserialize(str));
        });

        specials = new Dictionary <string, SlotSpecialty>();
        foreach (var s in tmp)
        {
            specials.Add(s.Name, s);
        }
    }
Exemple #3
0
	public static string StaticSerialize(SlotSpecialty s)
	{
		throw new NotImplementedException();
	}
Exemple #4
0
 public static string StaticSerialize(SlotSpecialty s)
 {
     throw new NotImplementedException();
 }