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); }
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; } }