예제 #1
0
 public void ConstructFromXml(ConstructFromXmlParams parameters)
 {
     XmlParams = parameters;
     if (Sessions != null)
     {
         foreach (SessionCfg sc in Sessions)
         {
             sc.ConstructFromXml(parameters);
         }
     }
 }
예제 #2
0
 public void ConstructFromXml(ConstructFromXmlParams parameters)
 {
     if (GameDefinitionFile != null)
     {
         string gdFile = GameDefinitionFile.Get(parameters.Local);
         if (gdFile != "")
         {
             GameDefinition = XmlSerializerExt.Deserialize <GameDefinition>(gdFile);
         }
     }
 }
예제 #3
0
 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);
         }
     }
 }
예제 #4
0
 public void ConstructFromXml(ConstructFromXmlParams parameters)
 {
     Initialize();
 }