Ejemplo n.º 1
0
 public Grading(MatchSystem3 system, int from, int to, long expireTime, int maxExtends)
 {
     this.system     = system;
     this.from       = from;
     this.to         = to;
     this.expireTime = expireTime;
     this.maxExtends = maxExtends;
     this._matcher   = new Matcher(this);
 }
Ejemplo n.º 2
0
 internal void InitFromDefs(Hashtable json)
 {
     Hashtable[] defs = json.GetMapArray("instances");
     this._maxElapsePerUpdate = json.GetInt("max_elapse_per_update");
     foreach (Hashtable def in defs)
     {
         MatchSystem3 matchSystem = new MatchSystem3();
         matchSystem.InitFromDefs(def);
         matchSystem.eventHandler += this.OnEvent;
         this._matchingSystems[matchSystem.mode] = matchSystem;
     }
 }