Revert location overhaul (unfinished)
This commit is contained in:
@@ -512,27 +512,16 @@ function initClassTable() {
|
||||
businessLocationData: class {
|
||||
constructor(dbAssoc) {
|
||||
this.databaseId = 0;
|
||||
this.name = "Unnamed";
|
||||
this.name = "";
|
||||
this.type = 0;
|
||||
this.business = 0;
|
||||
this.enabled = false;
|
||||
this.index = -1;
|
||||
this.needsSaved = false;
|
||||
|
||||
this.entrancePosition = false;
|
||||
this.entranceRotation = 0.0;
|
||||
this.entranceInterior = 0;
|
||||
this.entranceDimension = 0;
|
||||
this.entrancePickupModel = -1;
|
||||
this.entranceBlipModel = -1;
|
||||
this.entrancePickup = null;
|
||||
this.entranceBlip = null;
|
||||
|
||||
this.exitPosition = false;
|
||||
this.exitRotation = 0.0;
|
||||
this.exitInterior = 0;
|
||||
this.exitDimension = -1;
|
||||
this.exitPickupModel = -1;
|
||||
this.exitBlipModel = -1;
|
||||
this.exitPickup = null;
|
||||
this.exitBlip = null;
|
||||
this.position = toVector3(0.0, 0.0, 0.0);
|
||||
this.interior = 0;
|
||||
this.dimension = 0;
|
||||
|
||||
if(dbAssoc) {
|
||||
this.databaseId = toInteger(dbAssoc("biz_loc_id"));
|
||||
@@ -540,68 +529,11 @@ function initClassTable() {
|
||||
this.type = toInteger(dbAssoc("biz_loc_type"));
|
||||
this.business = toInteger(dbAssoc("biz_loc_biz"));
|
||||
this.enabled = intToBool(toInteger(dbAssoc("biz_loc_enabled")));
|
||||
this.index = -1;
|
||||
|
||||
this.entrancePosition = toVector3(toFloat(dbAssoc["biz_loc_entrance_pos_x"]), toFloat(dbAssoc["biz_loc_entrance_pos_y"]), toFloat(dbAssoc["biz_loc_entrance_pos_z"]));
|
||||
this.entranceRotation = toFloat(dbAssoc["biz_loc_entrance_rot_z"]);
|
||||
this.entranceInterior = toInteger(dbAssoc["biz_loc_entrance_int"]);
|
||||
this.entranceDimension = toInteger(dbAssoc["biz_loc_entrance_vw"]);
|
||||
this.entrancePickupModel = toInteger(dbAssoc["biz_loc_entrance_pickup"]);
|
||||
this.entranceBlipModel = toInteger(dbAssoc["biz_loc_entrance_blip"]);
|
||||
|
||||
this.exitPosition = toVector3(toFloat(dbAssoc["biz_loc_exit_pos_x"]), toFloat(dbAssoc["biz_loc_exit_pos_y"]), toFloat(dbAssoc["biz_loc_exit_pos_z"]));
|
||||
this.exitRotation = toFloat(dbAssoc["biz_loc_exit_rot_z"]);
|
||||
this.exitInterior = toInteger(dbAssoc["biz_loc_exit_int"]);
|
||||
this.exitDimension = toInteger(dbAssoc["biz_loc_exit_vw"]);
|
||||
this.exitPickupModel = toInteger(dbAssoc["biz_loc_exit_pickup"]);
|
||||
this.exitBlipModel = toInteger(dbAssoc["biz_loc_exit_blip"]);
|
||||
}
|
||||
}
|
||||
},
|
||||
houseLocationData: class {
|
||||
constructor(dbAssoc) {
|
||||
this.databaseId = 0;
|
||||
this.name = "Unnamed";
|
||||
this.house = 0;
|
||||
this.enabled = false;
|
||||
|
||||
this.entrancePosition = false;
|
||||
this.entranceRotation = 0.0;
|
||||
this.entranceInterior = 0;
|
||||
this.entranceDimension = 0;
|
||||
this.entrancePickupModel = -1;
|
||||
this.entranceBlipModel = -1;
|
||||
this.entrancePickup = null;
|
||||
this.entranceBlip = null;
|
||||
|
||||
this.exitPosition = false;
|
||||
this.exitRotation = 0.0;
|
||||
this.exitInterior = 0;
|
||||
this.exitDimension = -1;
|
||||
this.exitPickupModel = -1;
|
||||
this.exitBlipModel = -1;
|
||||
this.exitPickup = null;
|
||||
this.exitBlip = null;
|
||||
|
||||
if(dbAssoc) {
|
||||
this.databaseId = toInteger(dbAssoc("house_loc_id"));
|
||||
this.name = toString(dbAssoc("house_loc_name"));
|
||||
this.type = toInteger(dbAssoc("house_loc_type"));
|
||||
this.business = toInteger(dbAssoc("house_loc_biz"));
|
||||
this.enabled = intToBool(toInteger(dbAssoc("house_loc_enabled")));
|
||||
|
||||
this.entrancePosition = toVector3(toFloat(dbAssoc["house_loc_entrance_pos_x"]), toFloat(dbAssoc["house_loc_entrance_pos_y"]), toFloat(dbAssoc["house_loc_entrance_pos_z"]));
|
||||
this.entranceRotation = toFloat(dbAssoc["house_loc_entrance_rot_z"]);
|
||||
this.entranceInterior = toInteger(dbAssoc["house_loc_entrance_int"]);
|
||||
this.entranceDimension = toInteger(dbAssoc["house_loc_entrance_vw"]);
|
||||
this.entrancePickupModel = toInteger(dbAssoc["house_loc_entrance_pickup"]);
|
||||
this.entranceBlipModel = toInteger(dbAssoc["house_loc_entrance_blip"]);
|
||||
|
||||
this.exitPosition = toVector3(toFloat(dbAssoc["house_loc_exit_pos_x"]), toFloat(dbAssoc["house_loc_exit_pos_y"]), toFloat(dbAssoc["house_loc_exit_pos_z"]));
|
||||
this.exitRotation = toFloat(dbAssoc["house_loc_exit_rot_z"]);
|
||||
this.exitInterior = toInteger(dbAssoc["house_loc_exit_int"]);
|
||||
this.exitDimension = toInteger(dbAssoc["house_loc_exit_vw"]);
|
||||
this.exitPickupModel = toInteger(dbAssoc["house_loc_exit_pickup"]);
|
||||
this.exitBlipModel = toInteger(dbAssoc["house_loc_exit_blip"]);
|
||||
this.position = toVector3(toFloat(dbAssoc["biz_loc_pos_x"]), toFloat(dbAssoc["biz_loc_pos_y"]), toFloat(dbAssoc["biz_loc_pos_z"]));
|
||||
this.interior = toInteger(dbAssoc["biz_loc_int"]);
|
||||
this.dimension = toInteger(dbAssoc["biz_loc_vw"]);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -645,6 +577,8 @@ function initClassTable() {
|
||||
this.ownerType = toInteger(dbAssoc["house_owner_type"]);
|
||||
this.ownerId = toInteger(dbAssoc["house_owner_id"]);
|
||||
this.buyPrice = toInteger(dbAssoc["house_buy_price"]);
|
||||
this.rentPrice = toInteger(dbAssoc["house_rent_price"]);
|
||||
this.renter = toInteger(dbAssoc["house_renter"]);
|
||||
this.locked = intToBool(toInteger(dbAssoc["house_locked"]));
|
||||
this.hasInterior = intToBool(toInteger(dbAssoc["house_has_interior"]));
|
||||
|
||||
@@ -977,6 +911,7 @@ function initClassTable() {
|
||||
this.whiteListEnabled = dbAssoc["job_wl"];
|
||||
this.blackListEnabled = dbAssoc["job_bl"];
|
||||
this.walkieTalkieFrequency = dbAssoc["job_walkietalkiefreq"];
|
||||
|
||||
this.equipment = [];
|
||||
this.uniforms = [];
|
||||
this.locations = [];
|
||||
|
||||
Reference in New Issue
Block a user