Esempio n. 1
0
        public override IPoolable Copy()
        {
            BoolPara para = pool.Spawn(true) as BoolPara;

            para.SetName(this.name);
            para.SetValue((bool)this.value);
            para.SetTemp(true);
            return /*new com.wd.free.para.BoolPara(this.name, (bool)this.value)*/ (para);
        }
Esempio n. 2
0
 static ParaUtil()
 {
     map           = new MyDictionary <string, IPara>();
     map["string"] = new StringPara();
     map["int"]    = new IntPara();
     map["long"]   = new LongPara();
     map["bool"]   = new BoolPara();
     map["float"]  = new FloatPara();
     map["double"] = new DoublePara();
 }