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