public static RabNetEngBuilding FromPlace(string place, RabNetEngine eng)
        {
            RabPlace rp = RabPlace.Parse(place);

            int[] tiers = eng.db().getTiers(rp.Farm);
            return(new RabNetEngBuilding(tiers[rp.Floor == 2 ? 1 : 0], eng));
        }
Exemple #2
0
 public RabNetEngRabbit(RabNetEngine dl, Rabbit.SexType sx)
 {
     _id       = 0;
     _eng      = dl;
     _sex      = sx;
     _youngers = new YoungRabbitList();
 }
Exemple #3
0
 public static RabNetEngine get()
 {
     if (eng == null)
     {
         eng = new RabNetEngine();
     }
     return(eng);
 }
Exemple #4
0
 public Options(RabNetEngine eng)
 {
     this.eng = eng;
 }
Exemple #5
0
 public static void log(RabNetEngine eng, LogType type)
 {
     log(eng, type, 0, 0, "", "", "");
 }
Exemple #6
0
 public static void log(RabNetEngine eng, LogType type, int r1, int r2, string a1, string a2, String text)
 {
     eng.db().RabNetLog((int)type, eng.UserID, r1, r2, a1.Trim(), a2.Trim(), text);
 }
Exemple #7
0
 public RabNetLogs(RabNetEngine eng)
 {
     this.eng = eng;
 }
Exemple #8
0
 public static void set(RabNetEngine e)
 {
     eng = e;
 }
Exemple #9
0
 public RabEngZooTeh(RabNetEngine eng)
 {
     this.eng = eng;
 }
 public RabNetEngBuilding(int tierId, RabNetEngine eng)
 {
     this.id   = tierId;
     this._eng = eng;
     b         = eng.db().getBuilding(id);
 }
Exemple #11
0
        /// <summary>
        /// Нужно для логирования при Клонировании
        /// </summary>
        //internal string CloneAddress="";

        public RabNetEngRabbit(int rid, RabNetEngine dl)
        {
            _id  = rid;
            _eng = dl;
            loadData();
        }