public IAutoValue Parse(string config) { var ss = config.Split('|'); if (ss[0] == "bagauto" && ss.Length >= 2) { AutoSimpleBag auto = new AutoSimpleBag(); auto.radius = int.Parse(ss[1].Trim()); return(auto); } return(null); }
public override int Compare(SimpleItemInfo x, SimpleItemInfo y) { return(AutoSimpleBag.CompareItem(x.cat, x.id, y.cat, y.id)); }
public override int Compare(BagItem x, BagItem y) { return(AutoSimpleBag.CompareItem(x.cat, x.id, y.cat, y.id)); }
public override int Compare(SceneObjectEntity x, SceneObjectEntity y) { return(AutoSimpleBag.CompareItem(x.simpleEquipment.Category, x.simpleEquipment.Id, y.simpleEquipment.Category, y.simpleEquipment.Id)); }