mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
The new Constant: integer OBJECT_REZZER_KEY = 32;
Signed-off-by: Mandarinka Tasty <mandarinka.tasty@gmail.com> Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
This commit is contained in:
committed by
UbitUmarov
parent
fcd1e36ed6
commit
7c566dca5a
@@ -167,7 +167,7 @@ namespace OpenSim.Data.MySQL
|
||||
"SitTargetOrientY, SitTargetOrientZ, " +
|
||||
"RegionUUID, CreatorID, " +
|
||||
"OwnerID, GroupID, " +
|
||||
"LastOwnerID, SceneGroupID, " +
|
||||
"LastOwnerID, RezzerID, SceneGroupID, " +
|
||||
"PayPrice, PayButton1, " +
|
||||
"PayButton2, PayButton3, " +
|
||||
"PayButton4, LoopedSound, " +
|
||||
@@ -207,7 +207,7 @@ namespace OpenSim.Data.MySQL
|
||||
"?SitTargetOrientW, ?SitTargetOrientX, " +
|
||||
"?SitTargetOrientY, ?SitTargetOrientZ, " +
|
||||
"?RegionUUID, ?CreatorID, ?OwnerID, " +
|
||||
"?GroupID, ?LastOwnerID, ?SceneGroupID, " +
|
||||
"?GroupID, ?LastOwnerID, ?RezzerID, ?SceneGroupID, " +
|
||||
"?PayPrice, ?PayButton1, ?PayButton2, " +
|
||||
"?PayButton3, ?PayButton4, ?LoopedSound, " +
|
||||
"?LoopedSoundGain, ?TextureAnimation, " +
|
||||
@@ -1279,6 +1279,10 @@ namespace OpenSim.Data.MySQL
|
||||
prim.OwnerID = DBGuid.FromDB(row["OwnerID"]);
|
||||
prim.GroupID = DBGuid.FromDB(row["GroupID"]);
|
||||
prim.LastOwnerID = DBGuid.FromDB(row["LastOwnerID"]);
|
||||
if (row["RezzerID"] != DBNull.Value)
|
||||
prim.RezzerID = DBGuid.FromDB(row["RezzerID"]);
|
||||
else
|
||||
prim.RezzerID = UUID.Zero;
|
||||
|
||||
// explicit conversion of integers is required, which sort
|
||||
// of sucks. No idea if there is a shortcut here or not.
|
||||
@@ -1682,6 +1686,7 @@ namespace OpenSim.Data.MySQL
|
||||
cmd.Parameters.AddWithValue("OwnerID", prim.OwnerID.ToString());
|
||||
cmd.Parameters.AddWithValue("GroupID", prim.GroupID.ToString());
|
||||
cmd.Parameters.AddWithValue("LastOwnerID", prim.LastOwnerID.ToString());
|
||||
cmd.Parameters.AddWithValue("RezzerID", prim.RezzerID.ToString());
|
||||
cmd.Parameters.AddWithValue("OwnerMask", prim.OwnerMask);
|
||||
cmd.Parameters.AddWithValue("NextOwnerMask", prim.NextOwnerMask);
|
||||
cmd.Parameters.AddWithValue("GroupMask", prim.GroupMask);
|
||||
|
||||
@@ -453,3 +453,11 @@ MODIFY `cloud_scroll_x` float(9,7) NOT NULL DEFAULT '0.20',
|
||||
MODIFY `cloud_scroll_y` float(9,7) NOT NULL DEFAULT '0.01';
|
||||
|
||||
COMMIT;
|
||||
|
||||
:VERSION 56 #----- Add RezzerID field in table prims
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE `prims` ADD COLUMN `RezzerID` char(36) DEFAULT NULL;
|
||||
|
||||
COMMIT;
|
||||
|
||||
@@ -363,3 +363,11 @@ CREATE TABLE IF NOT EXISTS bakedterrain(
|
||||
Heightfield blob);
|
||||
|
||||
COMMIT;
|
||||
|
||||
:VERSION 35 #----- Add RezzerID field in table prims
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE `prims` ADD COLUMN `RezzerID` char(36) DEFAULT NULL;
|
||||
|
||||
COMMIT;
|
||||
|
||||
@@ -1216,6 +1216,7 @@ namespace OpenSim.Data.SQLite
|
||||
createCol(prims, "OwnerID", typeof(String));
|
||||
createCol(prims, "GroupID", typeof(String));
|
||||
createCol(prims, "LastOwnerID", typeof(String));
|
||||
createCol(prims, "RezzerID", typeof(String));
|
||||
createCol(prims, "OwnerMask", typeof(Int32));
|
||||
createCol(prims, "NextOwnerMask", typeof(Int32));
|
||||
createCol(prims, "GroupMask", typeof(Int32));
|
||||
@@ -1679,6 +1680,7 @@ namespace OpenSim.Data.SQLite
|
||||
prim.OwnerID = new UUID((String)row["OwnerID"]);
|
||||
prim.GroupID = new UUID((String)row["GroupID"]);
|
||||
prim.LastOwnerID = new UUID((String)row["LastOwnerID"]);
|
||||
prim.RezzerID = row["RezzerID"] == DBNull.Value ? UUID.Zero : new UUID((String)row["RezzerID"]);
|
||||
prim.OwnerMask = Convert.ToUInt32(row["OwnerMask"]);
|
||||
prim.NextOwnerMask = Convert.ToUInt32(row["NextOwnerMask"]);
|
||||
prim.GroupMask = Convert.ToUInt32(row["GroupMask"]);
|
||||
@@ -2125,6 +2127,7 @@ namespace OpenSim.Data.SQLite
|
||||
row["OwnerID"] = prim.OwnerID.ToString();
|
||||
row["GroupID"] = prim.GroupID.ToString();
|
||||
row["LastOwnerID"] = prim.LastOwnerID.ToString();
|
||||
row["RezzerID"] = prim.RezzerID.ToString();
|
||||
row["OwnerMask"] = prim.OwnerMask;
|
||||
row["NextOwnerMask"] = prim.NextOwnerMask;
|
||||
row["GroupMask"] = prim.GroupMask;
|
||||
|
||||
Reference in New Issue
Block a user