Example #1
0
 public DoorInfo(DataRow db)
 {
     DoorLocation     = new Vector3(Convert.ToSingle(db["X"]), Convert.ToSingle(db["Y"]), Convert.ToSingle(db["Z"]));
     IPL              = Convert.ToString(db["IPL"]);
     CoreId           = Convert.ToInt32(db["Id"]);
     Id               = $"Door-{db["Id"].ToString()}";
     OwnerId          = Convert.ToInt32(db["Owner"]);
     Owner            = Utility.getOwnerNameById(OwnerId);
     InteriorLocation = Interiors.getInteriorByType(IPL);
     Price            = Convert.ToInt32(db["Price"]);
     Locked           = Convert.ToBoolean(db["Locked"]);
     isForSale        = Convert.ToBoolean(db["ForSale"]);
     // Default to unlocked if for sale.
     if (isForSale)
     {
         Locked = false;
     }
     setupPointInfo();
 }
Example #2
0
 private void LoadDoors()
 {
     Interiors.loadAllInteriors();
     DoorManager.LoadAllDoors();
 }