Example #1
0
 override public bool Init(string script)
 {
     if (base.Init(script))
     {
         s1 = CardCollectMethodParser.Parse(mapMethod["s1"]);
         s2 = ShuffleMethodParser.Parse(mapMethod["s2"]);
         s3 = DealMethodParser.Parse(mapMethod["s3"]);
         s4 = CalcCardsValueMethodParser.Parse(mapMethod["s4"]);
         if (s1 != null
             && s2 != null
             && s3 != null
             && s4 != null)
         {
             return true;
         }
     }
     return false;
 }
Example #2
0
 override public bool Init(string script)
 {
     if (base.Init(script))
     {
         s1 = CardCollectMethodParser.Parse(mapMethod["s1"]);
         s2 = ShuffleMethodParser.Parse(mapMethod["s2"]);
         s3 = DealMethodParser.Parse(mapMethod["s3"]);
         s4 = CalcCardsValueMethodParser.Parse(mapMethod["s4"]);
         if (s1 != null &&
             s2 != null &&
             s3 != null &&
             s4 != null)
         {
             return(true);
         }
     }
     return(false);
 }