Beispiel #1
0
        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));
        }
Beispiel #2
0
 public void setOption(String name, String subname, uint uid, String value)
 {
     eng.db().setOption(name, subname, uid, value);
 }
Beispiel #3
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);
 }
Beispiel #4
0
 public void commit()
 {
     _eng.db().updateBuilding(b);
 }
Beispiel #5
0
 public RabNetEngBuilding(int tierId, RabNetEngine eng)
 {
     this.id   = tierId;
     this._eng = eng;
     b         = eng.db().getBuilding(id);
 }
Beispiel #6
0
        private void loadData()
        {
            _origin = _eng.db().GetRabbit(_id);
            if (_origin == null)
            {
                throw new ExNoRabbit();
            }

            cloneOnThis(_origin);
        }