public override bool compare(CVar var, Posision pos, EnegyData data, VariabelDatabase db) { if (Types.instanceof((ClassVariabel)db.get("string", data), this)) { return toString(pos, data, db) == var.toString(pos, data, db); }else if (Types.instanceof((ClassVariabel)db.get("int", data), this)) { return toInt(pos, data, db) == var.toInt(pos, data, db); } return this == var; }
private void controlID(CVar key, Posision pos, EnegyData data, VariabelDatabase db) { double k; if(Types.instanceof((ClassVariabel)db.get("int", data), (ObjectVariabel)key)) { k = key.toInt(pos, data, db); }else if(key is NullVariabel) { k = 0; }else if(Types.instanceof((ClassVariabel)db.get("string", data), (ObjectVariabel)key) && System.Text.RegularExpressions.Regex.IsMatch(key.toString(pos, data, db), "^[0-9]*?$")) { k = Convert.ToDouble(key.toString(pos, data, db)); } else { return; } while (k >= nextID) getNextID(data, db, pos); }