public void load(RiceObjectManagerData riceObjectManagerData)
 {
     for (int i = 0; i < riceObjectManagerData.Objects.Count; ++i)
     {
         RiceObjectData obj = riceObjectManagerData.Objects [i];
         _object[obj.ID].quantity     = obj.Quantity;
         _object[obj.ID].quantityUsed = obj.QuantityUsed;
     }
 }
 public void save(RiceObjectManagerData riceObjectManagerData)
 {
     foreach (RiceObject ro in _object.Values)
     {
         RiceObjectData rod = new RiceObjectData();
         rod.ID           = ro.id;
         rod.Quantity     = ro.quantity;
         rod.QuantityUsed = ro.quantityUsed;
         riceObjectManagerData.Objects.Add(rod);
     }
 }