protected virtual void load(TaggableQueue <object, IkadnBaseObject> data) { IkonComposite baseData = data.Dequeue(BaseSettingsTag).To <IkonComposite>(); this.LanguageId = baseData[LanguageKey].To <string>(); this.LastGame = new LastGameInfo(baseData[LastGameKey].To <IkonComposite>()); }
protected virtual void load(LabeledQueue <object, IkadnBaseObject> data) { if (data == null) { throw new ArgumentNullException(nameof(data)); } var baseData = data.Dequeue(BaseSettingsTag).To <IkonComposite>(); this.LanguageId = baseData[LanguageKey].To <string>(); this.LastGame = LastGameInfo.Load(baseData[LastGameKey].To <IkonComposite>()); }
internal static LastGameInfo Load(IkonComposite ikstonData) { var conditions = ikstonData.ToOrDefault(StartingConditionsKey, x => StartingConditions.Load(x.To <IkonComposite>()), null); if (conditions == null) { return(new LastGameInfo()); } var info = new LastGameInfo { StartConditions = conditions, StarPositionerConfig = ikstonData.ToOrDefault(StarPositionerKey, x => x.To <IkonArray>(), null), StarConnectorConfig = ikstonData.ToOrDefault(StarConnectorKey, x => x.To <IkonArray>(), null), StarPopulatorConfig = ikstonData.ToOrDefault(StarPopulatorKey, x => x.To <IkonArray>(), null) }; return(info); }
protected virtual void initDefault() { this.LanguageId = null; this.LastGame = new LastGameInfo(); }