示例#1
0
        public int SCalcGive(PZStorage s, int myamount)
        {
            int max = SCalcMaxGive(s);

            if (myamount > max)
            {
                return(max);
            }
            else
            {
                return(myamount);
            }
        }
示例#2
0
 public SnapshotStorage(PZStorage s)
 {
     try
     {
         inputitem = s.inputitem;
     }
     catch { }
     try
     {
         client = new SnapshotClient(s.client);
     }
     catch { }
 }
示例#3
0
        public int SCalcMaxGive(PZStorage s)
        {
            int no = s.client.CountItem(-1); //free spaces

            if (no < 1)
            {
                return(1);
            }
            else
            {
                return(no); //do not have enough space so just fill up their inv
            }
        }
示例#4
0
 public static void HandleStorage(PZStorage c)
 {
 }