Esempio n. 1
0
        public void Test_Value()
        {
            PropString ps = new PropString();

            ps.RawValue = "${ai.Root}";
            Assert.AreEqual(Props.Global.Get("ai.Root"), ps.Get(Props.Global));

            ps.RawValue = "";
            Assert.AreEqual("", ps.Get(Props.Global));

            ps.RawValue = null;
            Assert.AreEqual("", ps.Get(Props.Global));
        }
Esempio n. 2
0
 public GameDefinition()
 {
     Name                  = "";
     BetStructure          = new double[0];
     BlindStructure        = new double[0];
     PrivateCardsCount     = new int[0];
     PublicCardsCount      = new int[0];
     SharedCardsCount      = new int[0];
     BetsCountLimits       = new int[0];
     FirstActor            = new int[0];
     FirstActorHeadsUp     = new int[0];
     DeckDescrFile         = new PropString();
     GameRulesType         = new PropString();
     GameRulesAssemblyFile = new PropString();
 }
Esempio n. 3
0
 public SessionCfg(string name, SessionKind kind, string gameDefinitionFile)
 {
     Name = name;
     Kind = kind;
     GameDefinitionFile = new PropString(gameDefinitionFile);
 }
Esempio n. 4
0
 public SessionCfg()
 {
     ReplayFrom         = new PropString();
     GameDefinitionFile = new PropString();
 }