From 7d89e122930be39e84a6d174548fa2d12ac0484a Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 6 Sep 2008 07:52:41 +0000 Subject: * This is the fabled LibOMV update with all of the libOMV types from JHurliman * This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke. --- OpenSim/Data/Base/AppearanceTableMapper.cs | 116 ++++++++++++++--------------- 1 file changed, 58 insertions(+), 58 deletions(-) (limited to 'OpenSim/Data/Base/AppearanceTableMapper.cs') diff --git a/OpenSim/Data/Base/AppearanceTableMapper.cs b/OpenSim/Data/Base/AppearanceTableMapper.cs index 7964880..c1bb739 100644 --- a/OpenSim/Data/Base/AppearanceTableMapper.cs +++ b/OpenSim/Data/Base/AppearanceTableMapper.cs @@ -26,7 +26,7 @@ */ using System; -using libsecondlife; +using OpenMetaverse; using OpenSim.Data.Base; using OpenSim.Framework; @@ -55,15 +55,15 @@ namespace OpenSim.Data.Base m_schema = rowMapperSchema; m_keyFieldMapper = rowMapperSchema.AddMapping("UUID", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Owner.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Owner = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Owner.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Owner = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("Serial", delegate(AppearanceRowMapper mapper) { return (uint)mapper.Object.Serial; }, delegate(AppearanceRowMapper mapper, uint value) { mapper.Object.Serial = (int)value; }); rowMapperSchema.AddMapping("WearableItem0", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[0].ItemID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[0].ItemID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) { if (mapper.Object.Wearables == null) @@ -74,121 +74,121 @@ namespace OpenSim.Data.Base mapper.Object.Wearables[i] = new AvatarWearable(); } } - mapper.Object.Wearables[0].ItemID = new LLUUID(value.ToString()); + mapper.Object.Wearables[0].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset0", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[0].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[0].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[0].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[0].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem1", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[1].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[1].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[1].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[1].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset1", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[1].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[1].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[1].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[1].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem2", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[2].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[2].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[2].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[2].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset2", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[2].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[2].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[2].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[2].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem3", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[3].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[3].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[3].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[3].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset3", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[3].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[3].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[3].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[3].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem4", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[4].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[4].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[4].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[4].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset4", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[4].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[4].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[4].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[4].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem5", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[5].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[5].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[5].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[5].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset5", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[5].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[5].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[5].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[5].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem6", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[6].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[6].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[6].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[6].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset6", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[6].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[6].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[6].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[6].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem7", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[7].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[7].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[7].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[7].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset7", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[7].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[7].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[7].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[7].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem8", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[8].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[8].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[8].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[8].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset8", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[8].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[8].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[8].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[8].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem9", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[9].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[9].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[9].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[9].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset9", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[9].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[9].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[9].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[9].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem10", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[10].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[10].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[10].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[10].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset10", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[10].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[10].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[10].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[10].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem11", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[11].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[11].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[11].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[11].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset11", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[11].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[11].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[11].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[11].AssetID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableItem12", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[12].ItemID.UUID; }, - delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[12].ItemID = new LLUUID(value.ToString()); }); + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[12].ItemID.Guid; }, + delegate(AppearanceRowMapper mapper, Guid value) { mapper.Object.Wearables[12].ItemID = new UUID(value.ToString()); }); rowMapperSchema.AddMapping("WearableAsset12", - delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[12].AssetID.UUID; }, + delegate(AppearanceRowMapper mapper) { return mapper.Object.Wearables[12].AssetID.Guid; }, delegate(AppearanceRowMapper mapper, Guid value) - { mapper.Object.Wearables[12].AssetID = new LLUUID(value.ToString()); }); + { mapper.Object.Wearables[12].AssetID = new UUID(value.ToString()); }); } @@ -213,7 +213,7 @@ namespace OpenSim.Data.Base public bool Update(Guid userID, AvatarAppearance appearance) { AppearanceRowMapper mapper = CreateRowMapper(appearance); - return Update(appearance.Owner.UUID, mapper); + return Update(appearance.Owner.Guid, mapper); } /// @@ -244,7 +244,7 @@ namespace OpenSim.Data.Base protected AppearanceRowMapper FromReader(BaseDataReader reader, AvatarAppearance appearance) { AppearanceRowMapper mapper = CreateRowMapper(appearance); - mapper.FillObject(reader); + mapper.FiPrimitive(reader); return mapper; } @@ -256,7 +256,7 @@ namespace OpenSim.Data.Base public override AppearanceRowMapper FromReader(BaseDataReader reader) { AppearanceRowMapper mapper = CreateRowMapper(); - mapper.FillObject(reader); + mapper.FiPrimitive(reader); return mapper; } -- cgit v1.1