public void ConstructFromXml(ConstructFromXmlParams parameters) { XmlParams = parameters; if (Sessions != null) { foreach (SessionCfg sc in Sessions) { sc.ConstructFromXml(parameters); } } }
public void ConstructFromXml(ConstructFromXmlParams parameters) { if (GameDefinitionFile != null) { string gdFile = GameDefinitionFile.Get(parameters.Local); if (gdFile != "") { GameDefinition = XmlSerializerExt.Deserialize <GameDefinition>(gdFile); } } }
public void ConstructFromXml(ConstructFromXmlParams parameters) { if (GameRulesType != null) { string typeName = GameRulesType.Get(parameters.Local); string assemblyFileName = GameRulesAssemblyFile.Get(parameters.Local); if (typeName != "") { IGameRules gameRules = ClassFactory.CreateInstance <IGameRules>(typeName, assemblyFileName); gameRules.OnCreate(GameRulesCreationParams); GameRules = gameRules; } } if (DeckDescrFile != null) { string deckFile = DeckDescrFile.Get(parameters.Local); if (deckFile != "") { DeckDescr = XmlSerializerExt.Deserialize <DeckDescriptor>(deckFile); } } }
public void ConstructFromXml(ConstructFromXmlParams parameters) { Initialize(); }