Commit b8a5577d authored by shujianhe's avatar shujianhe

1

parent ac0584ef
ExportedObj/
*.svd
*.userprefs
*.csproj
*.pidb
*.suo
*.sln
*.user
*.unityproj
*.booproj
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
Library
Library/
srcImgs
srcImgs/
Logs/
Logs
*.log
obj
obj/
\ No newline at end of file
...@@ -21,7 +21,7 @@ TextureImporter: ...@@ -21,7 +21,7 @@ TextureImporter:
heightScale: 0.25 heightScale: 0.25
normalMapFilter: 0 normalMapFilter: 0
flipGreenChannel: 0 flipGreenChannel: 0
isReadable: 0 isReadable: 1
streamingMipmaps: 0 streamingMipmaps: 0
streamingMipmapsPriority: 0 streamingMipmapsPriority: 0
vTOnly: 0 vTOnly: 0
...@@ -51,7 +51,7 @@ TextureImporter: ...@@ -51,7 +51,7 @@ TextureImporter:
spritePixelsToUnits: 1 spritePixelsToUnits: 1
spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1 spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1 alphaUsage: 0
alphaIsTransparency: 1 alphaIsTransparency: 1
spriteTessellationDetail: -1 spriteTessellationDetail: -1
textureType: 8 textureType: 8
......
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2431009658991780423
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7163907760306130737}
- component: {fileID: 810986338845534415}
- component: {fileID: 7814886791916200456}
m_Layer: 5
m_Name: areaGroupId
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7163907760306130737
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2431009658991780423}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -81, y: 878}
m_SizeDelta: {x: 36, y: 36}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &810986338845534415
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2431009658991780423}
m_CullTransparentMesh: 1
--- !u!114 &7814886791916200456
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2431009658991780423}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 0
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190335
m_fontColor: {r: 1, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 32.2
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 1
m_fontSizeMin: 10
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 0
m_parseCtrlCharacters: 0
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 0
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
fileFormatVersion: 2 fileFormatVersion: 2
guid: 619b9c406ccfcb843a12d6bac4e023ee guid: c7c4ebafa2900fa4aa979c568fffca42
TextScriptImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:
assetBundleName: assetBundleName:
......
This diff is collapsed.
fileFormatVersion: 2
guid: fb458bc35fef89049bfa1357545b5dd3
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 152931fba3eae0b419ad8ebbc6614e98
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 1
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 1
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 4
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
This image diff could not be displayed because it is too large. You can view the blob instead.
fileFormatVersion: 2
guid: 2d8ecbd97edfcd7429faac86431cc438
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 1
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 1
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 4
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: af4cf47eef484094e9fd511e865dbb92
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 1
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 4
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:
...@@ -8,5 +8,6 @@ public class gameAreaItem ...@@ -8,5 +8,6 @@ public class gameAreaItem
public short x; public short x;
public short y; public short y;
public ushort id; public ushort id;
public double gid; public short gid;
public string tempExKey = "";
} }
...@@ -5,8 +5,8 @@ using UnityEngine; ...@@ -5,8 +5,8 @@ using UnityEngine;
public class gameIdJsonData public class gameIdJsonData
{ {
public string nowId = ""; public string nowId = "";
public double width = 0; public short width = 0;
public double height = 0; public short height = 0;
public List<gameAreaItem> centers = new List<gameAreaItem>(); public List<gameAreaItem> centers = new List<gameAreaItem>();
public List<gameAreaGroupItem> groups = new List<gameAreaGroupItem>(); public List<gameAreaGroupItem> groups = new List<gameAreaGroupItem>();
} }
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class AreaInfoUseData
{
public short id;
public short clickX;
public short clickY;
}
public class GameScenUserData
{
public string img = "";//线图
public string json = "";//数据
public string finishImg = "";//完成图
public string id = "";//int 的id.toString()
//以上是url
public int status = 0;//0 未开始 1 这个id进过游戏 2 至少有一个区域点亮 3完成
public double progress = 0;//0 -- 1 具体自己算百分比
public string localprogress = "";//缩略图路径 status < 2 文件是未创建
public List<AreaInfoUseData> areaInfoUseData = new List<AreaInfoUseData>();
}
fileFormatVersion: 2 fileFormatVersion: 2
guid: 6e748224ff2fbf54896efbd1119ac2d2 guid: fddae76f1d1ac594fb9b548ac3d0878e
folderAsset: yes MonoImporter:
DefaultImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:
...@@ -8,8 +8,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -8,8 +8,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
{ {
// Start is called before the first frame update // Start is called before the first frame update
public GameObject gameShowView = null; public GameObject gameShowView = null;
public GameObject areaGroupList = null; public GameObject areaGroupList = null;
public string perfab = "perfabs/gameAreaGroupItem";
public static int maxIdValue = 100; public static int maxIdValue = 100;
private int nowSelectGroupId = 4; private int nowSelectGroupId = 4;
public float progress = 0; public float progress = 0;
...@@ -33,30 +32,30 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -33,30 +32,30 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
} }
var gridViewList = areaGroupList.GetComponent<gameSceneAreaGroupHandler>(); var gridViewList = areaGroupList.GetComponent<gameSceneAreaGroupHandler>();
gridViewList.gameObject.SetActive(true); gridViewList.gameObject.SetActive(true);
//gameShowView.GetComponent<mainGameView>().loadTest(); gameShowView.GetComponent<mainGameView>().loadTest();
gridViewList.setDataNoGrid(20, 150, 150, 15, (GameObject gobject, int idx, ListViewBackTypeEnum lvbType) => //gridViewList.setDataNoGrid(20, 150, 150, 15, (GameObject gobject, int idx, ListViewBackTypeEnum lvbType) =>
{ //{
if (lvbType == ListViewBackTypeEnum.create || ListViewBackTypeEnum.update == lvbType) // if (lvbType == ListViewBackTypeEnum.create || ListViewBackTypeEnum.update == lvbType)
{ // {
var item = gobject.GetComponent<colorItem>(); // var item = gobject.GetComponent<colorItem>();
bool isSelect = idx == nowSelectGroupId; // bool isSelect = idx == nowSelectGroupId;
item.IsSelect = isSelect; // item.IsSelect = isSelect;
Vector3 vector3; // Vector3 vector3;
Quaternion quaternion; // Quaternion quaternion;
gobject.transform.GetLocalPositionAndRotation(out vector3, out quaternion); // gobject.transform.GetLocalPositionAndRotation(out vector3, out quaternion);
vector3.y = -95f; // vector3.y = -95f;
if (isSelect) // if (isSelect)
{ // {
vector3.y = vector3.y + 14; // vector3.y = vector3.y + 14;
} // }
gobject.transform.SetLocalPositionAndRotation(vector3, quaternion); // gobject.transform.SetLocalPositionAndRotation(vector3, quaternion);
item.IdName = idx.ToString(); // item.IdName = idx.ToString();
float idxf = idx; // float idxf = idx;
item.UseColor = new Color(idxf * 10 / 255f, 0.5f, (22 - idxf) * 10 / 255f, 1.0f); // item.UseColor = new Color(idxf * 10 / 255f, 0.5f, (22 - idxf) * 10 / 255f, 1.0f);
item.NowProgress = idx < 4 ? 0.0f : (idx < 15 ? idx / 13f : 1.0f); // item.NowProgress = idx < 4 ? 0.0f : (idx < 15 ? idx / 13f : 1.0f);
} // }
}, false); //}, false);
} }
// Update is called once per frame // Update is called once per frame
void Update() void Update()
...@@ -117,7 +116,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -117,7 +116,7 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
item.index = idx; item.index = idx;
float idxf = idx; float idxf = idx;
item.UseColor = new Color(idxf * 10 / 255f, 0.5f, (22 - idxf) * 10 / 255f, 1.0f); item.UseColor = new Color(idxf * 10 / 255f, 0.5f, (22 - idxf) * 10 / 255f, 1.0f);
item.NowProgress = idx < 4 ? 0.0f : (idx < 15 ? idx / 13f : 1.0f); item.NowProgress = 0;
} }
}, false); }, false);
if(nowSelectGroupId > 0) if(nowSelectGroupId > 0)
...@@ -145,14 +144,15 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler ...@@ -145,14 +144,15 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
} }
} }
if (s.Length == 0) return; if (s.Length == 0) return;
if (utilsTools.IsPhone == false || debugViewObj == null) print(s);
{ //if (utilsTools.IsPhone == false || debugViewObj == null)
print(s); //{
} // print(s);
else //}
{ //else
debugViewObj.text = s; //{
} // debugViewObj.text = s;
//}
} }
} }
public void onTestTemp1() public void onTestTemp1()
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class gameUserInfos : MonoBehaviour, IEventHandler
{
private string gameSaveKey = "";
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void startId(string id)
{
gameSaveKey = "gameUserData_" + id.ToString();
string defvalue = "";
string oldGameInfo = utilsDB.getDBJsonDataByKey(gameSaveKey, defvalue);
if (oldGameInfo.Equals(defvalue))
{
}
}
void IEventHandler.onEventHandler(string eventName, List<UnityEngine.Object> uobjects, List<System.Object> objects)
{
}
}
fileFormatVersion: 2 fileFormatVersion: 2
guid: 7cf7c244e9b3cec45aa5d3263d3e7602 guid: 7d1f5d2c8f31b4b408c2617ac6ccbcde
folderAsset: yes MonoImporter:
DefaultImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:
...@@ -17,6 +17,7 @@ public class mainGameScaleMove : MonoBehaviour ...@@ -17,6 +17,7 @@ public class mainGameScaleMove : MonoBehaviour
public float maxScale = 8f; public float maxScale = 8f;
public List<GameObject> ignoreList = new List<GameObject>(); public List<GameObject> ignoreList = new List<GameObject>();
private List<System.Object> logTempList = null; private List<System.Object> logTempList = null;
private Vector2 winPrvePos = new Vector2(-90000, -90000);
public Vector2 NowPos public Vector2 NowPos
{ {
get { return nowPos; } get { return nowPos; }
...@@ -88,15 +89,18 @@ public class mainGameScaleMove : MonoBehaviour ...@@ -88,15 +89,18 @@ public class mainGameScaleMove : MonoBehaviour
TouchPhase touchPhase = oneTouch.phase; TouchPhase touchPhase = oneTouch.phase;
if(touchPhase == TouchPhase.Began) if(touchPhase == TouchPhase.Began)
{ {
onOneTouchBegin(oneTouch.position); MyPrint("one Click begin");
onOneTouchBegin(oneTouch.position);
} }
else if(touchPhase == TouchPhase.Moved) else if(touchPhase == TouchPhase.Moved)
{ {
if (utilsTools.ContainsKey(gameObject, "oneTouchBegin") == false) return; if (utilsTools.ContainsKey(gameObject, "oneTouchBegin") == false) return;
MyPrint("one Click move");
onOneTouchMove(oneTouch.position, oneTouch.deltaPosition); onOneTouchMove(oneTouch.position, oneTouch.deltaPosition);
}else if(touchPhase == TouchPhase.Ended) }else if(touchPhase == TouchPhase.Ended)
{ {
if (utilsTools.ContainsKey(gameObject, "oneTouchBegin") == false) return; if (utilsTools.ContainsKey(gameObject, "oneTouchBegin") == false) return;
MyPrint("one Click end");
onOneTouchEnd(oneTouch.position, oneTouch.deltaPosition); onOneTouchEnd(oneTouch.position, oneTouch.deltaPosition);
}else if(touchPhase == TouchPhase.Canceled) }else if(touchPhase == TouchPhase.Canceled)
{ {
...@@ -134,32 +138,52 @@ public class mainGameScaleMove : MonoBehaviour ...@@ -134,32 +138,52 @@ public class mainGameScaleMove : MonoBehaviour
var itemChild = transform.GetChild(i); var itemChild = transform.GetChild(i);
itemChild.localScale = nowScale; itemChild.localScale = nowScale;
} }
logTempList[0] = "scale"; MyPrint("scale", "", nowScale, nowSize);
logTempList[1] = "";
logTempList[2] = nowScale;
logTempList[3] = nowSize;
utilsTools.sendEventObjects("debugViewLogHandler", logTempList);
} }
void clearOneTouchBegin() void clearOneTouchBegin()
{ {
MyPrint("one Click clear");
utilsTools.delUserDataByKey(gameObject, "oneTouchBegin"); utilsTools.delUserDataByKey(gameObject, "oneTouchBegin");
} }
bool checkMouseInIgnoreList(Vector2 vector)
{
for (int i = 0; i < ignoreList.Count; i++)
{
RectTransform checkRectTransform = ignoreList[i].transform.GetComponent<RectTransform>();
var newLocalPos = utilsTools.ScreenToUILocalPos(checkRectTransform, vector);
if (checkRectTransform.rect.Contains(newLocalPos)) return true;
}
return false;
}
//左键点击 右键缩放 //左键点击 右键缩放
void checkInputByComputer() void checkInputByComputer()
{ {
//float value = 0; if (Input.GetMouseButtonDown(0))
//var mouseScrollDelta = Input.mouseScrollDelta; {
//if (mouseScrollDelta.y == 0) return; if(utilsTools.ContainsKey(gameObject, "oneTouchBegin") == false)
//print(mouseScrollDelta.y); {
//if (OldTouchCurrDis < -999) if (checkMouseInIgnoreList(Input.mousePosition))
//{ {
// OldTouchCurrDis = 0; winPrvePos.x = -9000000;
//} return;
//onDoubleTouchHandler(mouseScrollDelta.y * 200f); }
winPrvePos = Input.mousePosition;
onOneTouchBegin(Input.mousePosition);
return;
}
Vector2 diff = new Vector2(Input.mousePosition.x + winPrvePos.x,Input.mousePosition.y + winPrvePos.y);
onOneTouchMove(Input.mousePosition, diff);
}else if(utilsTools.ContainsKey(gameObject, "oneTouchBegin"))
{
Vector2 diff = new Vector2(Input.mousePosition.x + winPrvePos.x, Input.mousePosition.y + winPrvePos.y);
onOneTouchEnd(Input.mousePosition, diff);
}
} }
private void onOneTouchBegin(Vector2 vector2) private void onOneTouchBegin(Vector2 vector2)
{ {
utilsTools.setUserData(gameObject, "oneTouchBegin", vector2); if(checkMouseInIgnoreList(vector2) == false)
utilsTools.setUserData(gameObject, "oneTouchBegin", vector2);
} }
private void onOneTouchMove(Vector2 nowPos,Vector2 delatPos) private void onOneTouchMove(Vector2 nowPos,Vector2 delatPos)
{ {
...@@ -191,40 +215,82 @@ public class mainGameScaleMove : MonoBehaviour ...@@ -191,40 +215,82 @@ public class mainGameScaleMove : MonoBehaviour
if (delatPos.x == delatPos.y && delatPos.x == 0) return;//都不用移动就不更新坐标 if (delatPos.x == delatPos.y && delatPos.x == 0) return;//都不用移动就不更新坐标
tempVector3.x += delatPos.x; tempVector3.x += delatPos.x;
tempVector3.y += delatPos.y; tempVector3.y += delatPos.y;
logTempList[0] = "move"; MyPrint("move", tempVector3, nowScale, nowSize);
logTempList[1] = tempVector3;
logTempList[2] = nowScale;
logTempList[3] = nowSize;
utilsTools.sendEventObjects("debugViewLogHandler", logTempList);
} }
itemChild.SetLocalPositionAndRotation(tempVector3, quaternion); itemChild.SetLocalPositionAndRotation(tempVector3, quaternion);
} }
//更新坐标 应该记录当前显示的位置 //更新坐标 应该记录当前显示的位置
} }
private void MyPrint(System.Object param1,System.Object param2 = null,System.Object param3 = null,System.Object param4 = null)
{
logTempList[0] = param1;
if (param2 == null) logTempList[1] = "";
else logTempList[1] = param2;
if (param3 == null) logTempList[2] = "";
else logTempList[1] = param3;
if (param4 == null) logTempList[3] = "";
else logTempList[1] = param4;
utilsTools.sendEventObjects("debugViewLogHandler", logTempList);
}
private void onOneTouchEnd(Vector2 nowPos, Vector2 delatPos) private void onOneTouchEnd(Vector2 nowPos, Vector2 delatPos)
{ {
utilsTools.getUserData<Vector2>(gameObject, "oneTouchBegin", out tempVector, defvalueVector); utilsTools.getUserData<Vector2>(gameObject, "oneTouchBegin", out tempVector, defvalueVector);
if (tempVector.Equals(defvalueVector))//说明之前已经移除了 if (tempVector.Equals(defvalueVector))//说明之前已经移除了
{ {
return; return;
} }
float sqrMagnitude = (nowPos - defvalueVector).SqrMagnitude(); float sqrMagnitude = (nowPos - tempVector).SqrMagnitude();
clearOneTouchBegin(); clearOneTouchBegin();
if (sqrMagnitude > 20f) {//按下和抬起距离太远就不算点击 if (sqrMagnitude > 20f) {//按下和抬起距离太远就不算点击
MyPrint("begin end diff big ", sqrMagnitude);
return; return;
} }
onOneClick(nowPos); onOneClick(nowPos);
} }
private void onOneClick(Vector2 nowPos) //获取图片和屏幕交集的区域 //屏幕坐标系
Rect ImageToSceneJiao()
{ {
var localPos = utilsTools.ScreenToUILocalPos(transform as RectTransform, nowPos); //将四个点转成屏幕坐标系
logTempList[0] = "click"; RectTransform firstRectTransform = transform.GetChild(0).GetComponent<RectTransform>();
logTempList[1] = nowPos; Rect rect = firstRectTransform.rect;
logTempList[2] = localPos; //Vector2 localtemp;
utilsTools.sendEventObjects("debugViewLogHandler", logTempList); //Vector2 worldtemp;
//print("点击>>>>" + nowPos.ToString()); //Vector2 pingtemp;
//Vector2 pingtemp2;
//localtemp = new Vector2(rect.xMin, rect.yMin);
//worldtemp = firstRectTransform.TransformPoint(localtemp);
//pingtemp = Camera.main.WorldToScreenPoint(worldtemp);
//MyPrint(localtemp, worldtemp, pingtemp);
//localtemp = new Vector2(rect.xMax, rect.yMax);
//worldtemp = firstRectTransform.TransformPoint(localtemp);
//pingtemp2 = Camera.main.WorldToScreenPoint(worldtemp);
//Rect wuti = new Rect(pingtemp.x, pingtemp.y, pingtemp2.x, pingtemp2.y);
//Rect pingRect = new Rect(0, 0, utilsTools.DisplaySize.x, utilsTools.DisplaySize.y);
//Rect ret = new Rect(0, 0, 0, 0);
//if (wuti.x < pingRect.x)
// ret.x = pingRect.x;
//else
// ret.x = wuti.x;
//if (wuti.y < pingRect.y)
// ret.y = pingRect.y;
//MyPrint(localtemp, worldtemp, pingtemp);
return rect;
}
private void onOneClick(Vector2 nowPos)
{
RectTransform firstRectTransform = transform.GetChild(0).GetComponent<RectTransform>();
var localPos = utilsTools.ScreenToUILocalPos(firstRectTransform, nowPos);
if (firstRectTransform.rect.Contains(localPos))//首先要区域内
{
Vector2 localPos1 = (localPos - (nowPos * nowScale * 3f));
MyPrint("click", nowPos, localPos, localPos1);
}
else
{
MyPrint("click", nowPos, localPos, "noRect");
}
} }
// Update is called once per frame // Update is called once per frame
void Update() void Update()
......
This diff is collapsed.
...@@ -2,10 +2,10 @@ using System; ...@@ -2,10 +2,10 @@ using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq;
using System.Net; using System.Net;
using System.Text; using System.Text;
using Unity.VisualScripting; using Unity.VisualScripting;
using UnityEditor;
using UnityEngine; using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
...@@ -85,7 +85,7 @@ public class nodeNetProxy : MonoBehaviour ...@@ -85,7 +85,7 @@ public class nodeNetProxy : MonoBehaviour
} }
return ret; return ret;
} }
//请求的url 请求的参数 返回值类型 返回请求是否是文本类型 //�����url ����IJ��� ����ֵ���� ���������Ƿ����ı�����
public void GET(string url, Dictionary<String, object> param,bool isText, onUrlBackHandler back) public void GET(string url, Dictionary<String, object> param,bool isText, onUrlBackHandler back)
{ {
string urlNew = url; string urlNew = url;
...@@ -111,35 +111,63 @@ public class nodeNetProxy : MonoBehaviour ...@@ -111,35 +111,63 @@ public class nodeNetProxy : MonoBehaviour
{ {
UnityWebRequest request = UnityWebRequestTexture.GetTexture(url); UnityWebRequest request = UnityWebRequestTexture.GetTexture(url);
yield return request.SendWebRequest(); //把上面这个要求发出去,并等待结果 yield return request.SendWebRequest(); //���������Ҫ�󷢳�ȥ�����ȴ����
//如果下载已经完成 //��������Ѿ����
if (request.isDone) if (request.isDone)
{ {
if (request.isNetworkError || request.isHttpError) //如果网络错误,或者地址错误 if (request.isNetworkError || request.isHttpError) //���������󣬻��ߵ�ַ����
{ {
Debug.Log(request.error); //输出这个错误 print("error" + request.error + url); //����������
back("", wurl, false, null); back("", wurl, false, null);
} }
else //如果没错 else //���û��
{ {
Texture2D texture2d = DownloadHandlerTexture.GetContent(request); Texture2D texture2d = DownloadHandlerTexture.GetContent(request);
back("", wurl, true, texture2d); back("", wurl, true, texture2d);
} }
} }
} }
public void DOWNTEXT(string url, string localpath, onUrlBackHandler back) IEnumerator loadLocalTextFileData(string url, string wurl, onUrlBackHandler back)
{ {
string abspath = localpath;
if (abspath.StartsWith(Application.dataPath + "/") == false) UnityWebRequest request = UnityWebRequest.Get(url);
yield return request.SendWebRequest(); //���������Ҫ�󷢳�ȥ�����ȴ����
//��������Ѿ����
if (request.isDone)
{ {
abspath = Application.dataPath + "/" + localpath; print("load end " + url);
if (request.isNetworkError || request.isHttpError) //���������󣬻��ߵ�ַ����
{
print(request.error); //����������
back("", wurl, false, null);
}
else //���û��
{
print("load end ok " + url);
String data1 = DownloadHandlerBuffer.GetContent(request);
back("", wurl, true, data1);
}
} }
}
public void DOWNTEXT(string url, string localpath, onUrlBackHandler back)
{
string abspath = utilsTools.getWritableByPath(localpath);
if (File.Exists(abspath)) if (File.Exists(abspath))
{ {
StreamReader streamReader = File.OpenText(abspath); if (utilsTools.IsPhone == false)
string data = streamReader.ReadToEnd(); {
back("", url, true, data); StartCoroutine(loadLocalTextFileData("file://" + abspath, url, back));
}
else
{
print("jar:file://" + abspath);
StartCoroutine(loadLocalTextFileData("jar:file://" + abspath, url, back));
}
return; return;
}else if (url.Equals("")) }else if (url.Equals(""))
{ {
...@@ -160,23 +188,25 @@ public class nodeNetProxy : MonoBehaviour ...@@ -160,23 +188,25 @@ public class nodeNetProxy : MonoBehaviour
StartCoroutine(DonLoadText(newItem)); StartCoroutine(DonLoadText(newItem));
} }
} }
////建一个2D图片,把request里的图片下载下来放进去 ////��һ��2DͼƬ����request���ͼƬ���������Ž�ȥ
// //
////建一个sprite格式的图片,把下载下来的图片转换格式,放进去; ////��һ��sprite��ʽ��ͼƬ��������������ͼƬת����ʽ���Ž�ȥ��
////括号里分别是(转换的对象,转换出来的图片的坐标,和宽高, ////������ֱ��ǣ�ת���Ķ���ת��������ͼƬ�����꣬�Ϳ��ߣ�
//// 设置物体自身的坐标原点位置,00就是左下角,0.5,0.5就是中间,1,1就是右上角) //// ������������������ԭ��λ�ã�00�������½ǣ�0.5,0.5�����м䣬1,1�������Ͻǣ�
//Sprite sprite = Sprite.Create(texture2d, new Rect(0, 0, texture2d.width, texture2d.height), new Vector2(0.5f, 0.5f)); //Sprite sprite = Sprite.Create(texture2d, new Rect(0, 0, texture2d.width, texture2d.height), new Vector2(0.5f, 0.5f));
public void DOWNIMG(string url,string localpath, onUrlBackHandler back) public void DOWNIMG(string url,string localpath, onUrlBackHandler back)
{ {
string abspath = localpath; string abspath = utilsTools.getWritableByPath(localpath);
if(abspath.StartsWith(Application.dataPath+"/") == false)
{
abspath = Application.dataPath + "/" + localpath;
}
if (File.Exists(abspath)) if (File.Exists(abspath))
{ {
StartCoroutine(loadLocalFileData("file://"+abspath,url,back)); if (utilsTools.IsPhone == false)
StartCoroutine(loadLocalFileData("file://" + abspath, url, back));
else
{
print("jar:file://" + abspath);
StartCoroutine(loadLocalFileData("jar:file://" + abspath, url, back));
}
return; return;
}else if (url.Equals("")) }else if (url.Equals(""))
{ {
...@@ -184,6 +214,8 @@ public class nodeNetProxy : MonoBehaviour ...@@ -184,6 +214,8 @@ public class nodeNetProxy : MonoBehaviour
back("", url, false, null); back("", url, false, null);
return; return;
} }
print("no find path " + localpath + " >> " + abspath);
print(url);
nodeNetProxyItem newItem = new nodeNetProxyItem(); nodeNetProxyItem newItem = new nodeNetProxyItem();
newItem.url = url; newItem.url = url;
newItem.back = back; newItem.back = back;
...@@ -199,28 +231,29 @@ public class nodeNetProxy : MonoBehaviour ...@@ -199,28 +231,29 @@ public class nodeNetProxy : MonoBehaviour
{ {
string url = item.url; string url = item.url;
var unityWebRequest = UnityWebRequestTexture.GetTexture(url); var unityWebRequest = UnityWebRequest.Get(url);
yield return unityWebRequest.SendWebRequest(); yield return unityWebRequest.SendWebRequest();
if (unityWebRequest.error != null) if (unityWebRequest.error != null)
{ {
Debug.Log("请求中"); print("DonLoadText error");
print(unityWebRequest.error);
print(unityWebRequest.ToString());
item.back("", url, false, null); item.back("", url, false, null);
yield return unityWebRequest; yield return unityWebRequest;
} }
var downloadHandler = unityWebRequest.downloadHandler; var downloadHandler = unityWebRequest.downloadHandler;
if (!downloadHandler.isDone) if (!downloadHandler.isDone)
{ {
Debug.Log("下载中"); Debug.Log("DonLoadText wait");
yield return downloadHandler; yield return downloadHandler;
} }
else else
{ {
Debug.Log("下载完成"); Debug.Log("DonLoadText ok");
var handlerData = downloadHandler; var handlerData = downloadHandler;
string path = item.data["path"] as string; string path = item.data["path"] as string;
yield return File.WriteAllBytesAsync(Application.dataPath + "/" + path, handlerData.data); yield return File.WriteAllBytesAsync(utilsTools.getWritableByPath(path), handlerData.data);
//AssetDatabase.Refresh(); StreamReader streamReader = File.OpenText(utilsTools.getWritableByPath(path));
StreamReader streamReader = File.OpenText(Application.dataPath + "/" + path);
string data = streamReader.ReadToEnd(); string data = streamReader.ReadToEnd();
item.back("", url, true, data); item.back("", url, true, data);
} }
...@@ -234,27 +267,28 @@ public class nodeNetProxy : MonoBehaviour ...@@ -234,27 +267,28 @@ public class nodeNetProxy : MonoBehaviour
yield return unityWebRequest.SendWebRequest(); yield return unityWebRequest.SendWebRequest();
if (unityWebRequest.error != null) if (unityWebRequest.error != null)
{ {
Debug.Log("请求中"); Debug.Log("DonLoadImage error");
item.back("", url, false, null); item.back("", url, false, null);
yield return unityWebRequest; yield return unityWebRequest;
} }
var downloadHandler = unityWebRequest.downloadHandler; var downloadHandler = unityWebRequest.downloadHandler;
if (!downloadHandler.isDone) if (!downloadHandler.isDone)
{ {
Debug.Log("下载中"); Debug.Log("DonLoadImage wait");
yield return downloadHandler; yield return downloadHandler;
} }
else else
{ {
Debug.Log("下载完成"); Debug.Log("DonLoadImage ok");
var handlerData = downloadHandler; var handlerData = downloadHandler;
string path = item.data["path"] as string; string path = item.data["path"] as string;
yield return File.WriteAllBytesAsync(Application.dataPath +"/" +path, handlerData.data); path = utilsTools.getWritableByPath(path);
yield return File.WriteAllBytesAsync(path, handlerData.data);
//AssetDatabase.Refresh(); //AssetDatabase.Refresh();
string path1 = path; string path1 = path;
string expath = Path.GetExtension(path1); string expath = Path.GetExtension(path1);
path1 = path1.Substring(0, path1.Length - expath.Length); path1 = path1.Substring(0, path1.Length - expath.Length);
path1 = path1.Substring("Resources/".Length); print(path1);
item.back("", url, true, Resources.Load<Texture>(path1)); item.back("", url, true, Resources.Load<Texture>(path1));
} }
......
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class areaGroupIdItem : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void setInfo(short width, short height,gameAreaItem areaItem)
{
GetComponent<TextMeshProUGUI>().text = areaItem.gid.ToString();
}
}
fileFormatVersion: 2
guid: 30279803ab742bb429589fb5f4c6ce04
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
...@@ -161,8 +161,8 @@ public class tempzhangs : MonoBehaviour ...@@ -161,8 +161,8 @@ public class tempzhangs : MonoBehaviour
//// var bytes = clickTexture2D.EncodeToPNG(); //// var bytes = clickTexture2D.EncodeToPNG();
//// utilsTools.saveByteToPath(bytes, "Resources/rand__temp__text_localFile.png"); //// utilsTools.saveByteToPath(bytes, "Resources/rand__temp__text_localFile.png");
//// Byte[] bytes1 = Encoding.UTF8.GetBytes("fileFormatVersion: 2\r\nguid: 54ac8b67ea1f6f14892bd14ea1caab62\r\nTextureImporter:\r\n internalIDToNameTable: []\r\n externalObjects: {}\r\n serializedVersion: 12\r\n mipmaps:\r\n mipMapMode: 0\r\n enableMipMap: 0\r\n sRGBTexture: 1\r\n linearTexture: 0\r\n fadeOut: 0\r\n borderMipMap: 0\r\n mipMapsPreserveCoverage: 0\r\n alphaTestReferenceValue: 0.5\r\n mipMapFadeDistanceStart: 1\r\n mipMapFadeDistanceEnd: 3\r\n bumpmap:\r\n convertToNormalMap: 0\r\n externalNormalMap: 0\r\n heightScale: 0.25\r\n normalMapFilter: 0\r\n flipGreenChannel: 0\r\n isReadable: 0\r\n streamingMipmaps: 0\r\n streamingMipmapsPriority: 0\r\n vTOnly: 0\r\n ignoreMipmapLimit: 0\r\n grayScaleToAlpha: 0\r\n generateCubemap: 6\r\n cubemapConvolution: 0\r\n seamlessCubemap: 0\r\n textureFormat: 1\r\n maxTextureSize: 2048\r\n textureSettings:\r\n serializedVersion: 2\r\n filterMode: 1\r\n aniso: 1\r\n mipBias: 0\r\n wrapU: 1\r\n wrapV: 1\r\n wrapW: 1\r\n nPOTScale: 0\r\n lightmap: 0\r\n compressionQuality: 50\r\n spriteMode: 1\r\n spriteExtrude: 1\r\n spriteMeshType: 1\r\n alignment: 0\r\n spritePivot: {x: 0.5, y: 0.5}\r\n spritePixelsToUnits: 1\r\n spriteBorder: {x: 0, y: 0, z: 0, w: 0}\r\n spriteGenerateFallbackPhysicsShape: 1\r\n alphaUsage: 1\r\n alphaIsTransparency: 1\r\n spriteTessellationDetail: -1\r\n textureType: 8\r\n textureShape: 1\r\n singleChannelComponent: 0\r\n flipbookRows: 1\r\n flipbookColumns: 1\r\n maxTextureSizeSet: 0\r\n compressionQualitySet: 0\r\n textureFormatSet: 0\r\n ignorePngGamma: 0\r\n applyGammaDecoding: 0\r\n swizzle: 50462976\r\n cookieLightType: 0\r\n platformSettings:\r\n - serializedVersion: 3\r\n buildTarget: DefaultTexturePlatform\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Standalone\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Server\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Android\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n spriteSheet:\r\n serializedVersion: 2\r\n sprites: []\r\n outline: []\r\n physicsShape: []\r\n bones: []\r\n spriteID: 5e97eb03825dee720800000000000000\r\n internalID: 0\r\n vertices: []\r\n indices: \r\n edges: []\r\n weights: []\r\n secondaryTextures: []\r\n nameFileIdTable: {}\r\n mipmapLimitGroupName: \r\n pSDRemoveMatte: 0\r\n userData: \r\n assetBundleName: \r\n assetBundleVariant: \r\n"); // Byte[] bytes1 = Encoding.UTF8.GetBytes("fileFormatVersion: 2\r\nguid: 54ac8b67ea1f6f14892bd14ea1caab62\r\nTextureImporter:\r\n internalIDToNameTable: []\r\n externalObjects: {}\r\n serializedVersion: 12\r\n mipmaps:\r\n mipMapMode: 0\r\n enableMipMap: 0\r\n sRGBTexture: 1\r\n linearTexture: 0\r\n fadeOut: 0\r\n borderMipMap: 0\r\n mipMapsPreserveCoverage: 0\r\n alphaTestReferenceValue: 0.5\r\n mipMapFadeDistanceStart: 1\r\n mipMapFadeDistanceEnd: 3\r\n bumpmap:\r\n convertToNormalMap: 0\r\n externalNormalMap: 0\r\n heightScale: 0.25\r\n normalMapFilter: 0\r\n flipGreenChannel: 0\r\n isReadable: 0\r\n streamingMipmaps: 0\r\n streamingMipmapsPriority: 0\r\n vTOnly: 0\r\n ignoreMipmapLimit: 0\r\n grayScaleToAlpha: 0\r\n generateCubemap: 6\r\n cubemapConvolution: 0\r\n seamlessCubemap: 0\r\n textureFormat: 1\r\n maxTextureSize: 2048\r\n textureSettings:\r\n serializedVersion: 2\r\n filterMode: 1\r\n aniso: 1\r\n mipBias: 0\r\n wrapU: 1\r\n wrapV: 1\r\n wrapW: 1\r\n nPOTScale: 0\r\n lightmap: 0\r\n compressionQuality: 50\r\n spriteMode: 1\r\n spriteExtrude: 1\r\n spriteMeshType: 1\r\n alignment: 0\r\n spritePivot: {x: 0.5, y: 0.5}\r\n spritePixelsToUnits: 1\r\n spriteBorder: {x: 0, y: 0, z: 0, w: 0}\r\n spriteGenerateFallbackPhysicsShape: 1\r\n alphaUsage: 1\r\n alphaIsTransparency: 1\r\n spriteTessellationDetail: -1\r\n textureType: 8\r\n textureShape: 1\r\n singleChannelComponent: 0\r\n flipbookRows: 1\r\n flipbookColumns: 1\r\n maxTextureSizeSet: 0\r\n compressionQualitySet: 0\r\n textureFormatSet: 0\r\n ignorePngGamma: 0\r\n applyGammaDecoding: 0\r\n swizzle: 50462976\r\n cookieLightType: 0\r\n platformSettings:\r\n - serializedVersion: 3\r\n buildTarget: DefaultTexturePlatform\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Standalone\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Server\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Android\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n spriteSheet:\r\n serializedVersion: 2\r\n sprites: []\r\n outline: []\r\n physicsShape: []\r\n bones: []\r\n spriteID: 5e97eb03825dee720800000000000000\r\n internalID: 0\r\n vertices: []\r\n indices: \r\n edges: []\r\n weights: []\r\n secondaryTextures: []\r\n nameFileIdTable: {}\r\n mipmapLimitGroupName: \r\n pSDRemoveMatte: 0\r\n userData: \r\n assetBundleName: \r\n assetBundleVariant: \r\n");
//// utilsTools.saveByteToPath(bytes1, "Resources/rand__temp__text_localFile.png.meta"); // utilsTools.saveByteToPath(bytes1, "Resources/rand__temp__text_localFile.png.meta");
//// utilsTools.loadLocalImage(this, image0, "Resources/rand__temp__text_localFile.png"); //// utilsTools.loadLocalImage(this, image0, "Resources/rand__temp__text_localFile.png");
//// print("替换纹理End"); //// print("替换纹理End");
////} ////}
......
...@@ -98,9 +98,9 @@ public class utilsDB ...@@ -98,9 +98,9 @@ public class utilsDB
{ {
return setDBValueDataByKey<string>(key, "string", value); return setDBValueDataByKey<string>(key, "string", value);
} }
public static int getDBJsonDataByKey(string key, string defvalue) public static string getDBJsonDataByKey(string key, string defvalue)
{ {
return Int32.Parse(getDBValueDataByKey<string>(key, "json", defvalue)); return getDBValueDataByKey<string>(key, "json", defvalue);
} }
public static bool setDBJsonDataByKey(string key, string value) public static bool setDBJsonDataByKey(string key, string value)
{ {
......
...@@ -6,6 +6,7 @@ using System.Security.Cryptography; ...@@ -6,6 +6,7 @@ using System.Security.Cryptography;
using System.Text; using System.Text;
using Unity.Collections.LowLevel.Unsafe; using Unity.Collections.LowLevel.Unsafe;
using Unity.VisualScripting; using Unity.VisualScripting;
using Unity.VisualScripting.FullSerializer;
using UnityEngine; using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
using UnityEngine.UI; using UnityEngine.UI;
...@@ -315,7 +316,7 @@ public class utilsTools ...@@ -315,7 +316,7 @@ public class utilsTools
} }
public static bool saveByteToPath(byte[] bytes,string path) public static bool saveByteToPath(byte[] bytes,string path)
{ {
string firstpath = Application.dataPath + "/"; string firstpath = Application.persistentDataPath + "/";
if(path.StartsWith(firstpath) == false) if(path.StartsWith(firstpath) == false)
{ {
if(path.StartsWith("/") == true) if(path.StartsWith("/") == true)
...@@ -327,6 +328,22 @@ public class utilsTools ...@@ -327,6 +328,22 @@ public class utilsTools
File.WriteAllBytes(path, bytes); File.WriteAllBytes(path, bytes);
return true; return true;
} }
public static bool saveImageMetaInfoToPath(byte[] bytes,string imgpath)
{
var path = utilsTools.getWritableByPath(imgpath);
if(path.EndsWith(".meta") == false)
{
path = path + ".meta";
}
if(File.Exists(path) == false)
File.WriteAllBytes(path, bytes);
return true;
}
public static bool saveImageDefaultMetaInfoToPath(string imgpath)
{
Byte[] bytes1 = Encoding.UTF8.GetBytes("fileFormatVersion: 2\r\nguid: 54ac8b67ea1f6f14892bd14ea1caab62\r\nTextureImporter:\r\n internalIDToNameTable: []\r\n externalObjects: {}\r\n serializedVersion: 12\r\n mipmaps:\r\n mipMapMode: 0\r\n enableMipMap: 0\r\n sRGBTexture: 1\r\n linearTexture: 0\r\n fadeOut: 0\r\n borderMipMap: 0\r\n mipMapsPreserveCoverage: 0\r\n alphaTestReferenceValue: 0.5\r\n mipMapFadeDistanceStart: 1\r\n mipMapFadeDistanceEnd: 3\r\n bumpmap:\r\n convertToNormalMap: 0\r\n externalNormalMap: 0\r\n heightScale: 0.25\r\n normalMapFilter: 0\r\n flipGreenChannel: 0\r\n isReadable: 0\r\n streamingMipmaps: 0\r\n streamingMipmapsPriority: 0\r\n vTOnly: 0\r\n ignoreMipmapLimit: 0\r\n grayScaleToAlpha: 0\r\n generateCubemap: 6\r\n cubemapConvolution: 0\r\n seamlessCubemap: 0\r\n textureFormat: 1\r\n maxTextureSize: 2048\r\n textureSettings:\r\n serializedVersion: 2\r\n filterMode: 1\r\n aniso: 1\r\n mipBias: 0\r\n wrapU: 1\r\n wrapV: 1\r\n wrapW: 1\r\n nPOTScale: 0\r\n lightmap: 0\r\n compressionQuality: 50\r\n spriteMode: 1\r\n spriteExtrude: 1\r\n spriteMeshType: 1\r\n alignment: 0\r\n spritePivot: {x: 0.5, y: 0.5}\r\n spritePixelsToUnits: 1\r\n spriteBorder: {x: 0, y: 0, z: 0, w: 0}\r\n spriteGenerateFallbackPhysicsShape: 1\r\n alphaUsage: 1\r\n alphaIsTransparency: 1\r\n spriteTessellationDetail: -1\r\n textureType: 8\r\n textureShape: 1\r\n singleChannelComponent: 0\r\n flipbookRows: 1\r\n flipbookColumns: 1\r\n maxTextureSizeSet: 0\r\n compressionQualitySet: 0\r\n textureFormatSet: 0\r\n ignorePngGamma: 0\r\n applyGammaDecoding: 0\r\n swizzle: 50462976\r\n cookieLightType: 0\r\n platformSettings:\r\n - serializedVersion: 3\r\n buildTarget: DefaultTexturePlatform\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Standalone\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Server\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n - serializedVersion: 3\r\n buildTarget: Android\r\n maxTextureSize: 2048\r\n resizeAlgorithm: 0\r\n textureFormat: -1\r\n textureCompression: 1\r\n compressionQuality: 50\r\n crunchedCompression: 0\r\n allowsAlphaSplitting: 0\r\n overridden: 0\r\n ignorePlatformSupport: 0\r\n androidETC2FallbackOverride: 0\r\n forceMaximumCompressionQuality_BC6H_BC7: 0\r\n spriteSheet:\r\n serializedVersion: 2\r\n sprites: []\r\n outline: []\r\n physicsShape: []\r\n bones: []\r\n spriteID: 5e97eb03825dee720800000000000000\r\n internalID: 0\r\n vertices: []\r\n indices: \r\n edges: []\r\n weights: []\r\n secondaryTextures: []\r\n nameFileIdTable: {}\r\n mipmapLimitGroupName: \r\n pSDRemoveMatte: 0\r\n userData: \r\n assetBundleName: \r\n assetBundleVariant: \r\n");
return saveImageMetaInfoToPath(bytes1, imgpath);
}
public static Texture2D ScaleTexture(Texture2D source, int targetWidth, int targetHeight) public static Texture2D ScaleTexture(Texture2D source, int targetWidth, int targetHeight)
{ {
Texture2D result = new Texture2D(targetWidth, targetHeight, source.format, false); Texture2D result = new Texture2D(targetWidth, targetHeight, source.format, false);
...@@ -382,5 +399,44 @@ public class utilsTools ...@@ -382,5 +399,44 @@ public class utilsTools
RectTransformUtility.ScreenPointToLocalPointInRectangle(transform, mousePos, canvasCam, out uiLocalPos); RectTransformUtility.ScreenPointToLocalPointInRectangle(transform, mousePos, canvasCam, out uiLocalPos);
return uiLocalPos; return uiLocalPos;
} }
public static string getWritableByPath(string path)
{
var persistentDataPath = Application.persistentDataPath;
if (path.StartsWith(persistentDataPath))
{
return path;
}
if (IsPhone)
{
if (path.StartsWith("jar:file://"+ persistentDataPath))
{
return path;
}
}
else
{
if (path.StartsWith("file://" + persistentDataPath))
{
return path;
}
}
return persistentDataPath + "/" + path;
}
public static bool IsExistIO(string path,bool isFile = true)
{
string path1 = getWritableByPath(path);
if (isFile) return File.Exists(path1);
return Directory.Exists(path1);
}
public static void CreateDirectory(string path)
{
string path1 = getWritableByPath(path);
if(Directory.Exists(path1) == false)
{
Directory.CreateDirectory(path1);
}
}
} }
Base path: 'C:/Program Files/Unity/Hub/Editor/2022.3.0f1c1/Editor/Data', plugins path 'C:/Program Files/Unity/Hub/Editor/2022.3.0f1c1/Editor/Data/PlaybackEngines' Base path: 'C:/Program Files/Unity/Hub/Editor/2022.3.1f1c1/Editor/Data', plugins path 'C:/Program Files/Unity/Hub/Editor/2022.3.1f1c1/Editor/Data/PlaybackEngines'
Cmd: initializeCompiler Cmd: initializeCompiler
m_EditorVersion: 2022.3.0f1c1 m_EditorVersion: 2022.3.1f1c1
m_EditorVersionWithRevision: 2022.3.0f1c1 (aad67108fc1f) m_EditorVersionWithRevision: 2022.3.1f1c1 (fbebbae0ca0a)
This diff is collapsed.
<!--
This file defines some of the browsers that Microsoft's implementation provides in
<windir>\Microsoft.NET\Framework\<ver>\CONFIG\Browsers\*.browser
It is not derived from any file distributed with Microsoft's implementation. Since
we can't distribute MS's browser files, we use browscap.ini to determine
browser capabilities. Then, if and only if the application contains App_Browser/*.browser
files and we are using .NET 2.0 or higher, we supplement the capabilities with the
information in those files and the files in this directory. The primary goal of this file
is provide browser definitions that might be referenced in App_Browser/*.browser files.
-->
<browsers>
<defaultBrowser id="Default">
</defaultBrowser>
<browser id="Default">
<identification>
<userAgent match="." />
</identification>
</browser>
<browser id="IE6to9" parentID="Default">
<identification>
<capability name="majorver" match="^[6-9]" />
<capability name="browser" match="^(IE|AOL)$" />
</identification>
</browser>
<browser id="Opera8to9" parentID="Default">
<identification>
<capability name="majorver" match="^[8-9]" />
<capability name="browser" match="^Opera$" />
</identification>
</browser>
<browser id="Safari" parentID="Default">
<identification>
<capability name="browser" match="^Safari$" />
</identification>
</browser>
<browser id="Mozilla" parentID="Default">
<identification>
<capability name="browser" match="^Mozilla" />
</identification>
</browser>
</browsers>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqliteMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlRoleProvider"
type="System.Web.Security.SqliteRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
</settingsMap>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment