@dcl/asset-packs 2.6.1 → 2.6.2-20251023210549.commit-e8fcfcd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog.json +9 -2
- package/dclcontext/sdk7-complete-reference.md +14 -16
- package/package.json +2 -2
package/catalog.json
CHANGED
|
@@ -96184,12 +96184,19 @@
|
|
|
96184
96184
|
"data": {
|
|
96185
96185
|
"0": {
|
|
96186
96186
|
"json": {
|
|
96187
|
+
"active": true,
|
|
96187
96188
|
"color": {
|
|
96188
96189
|
"r": 1,
|
|
96189
96190
|
"g": 1,
|
|
96190
96191
|
"b": 1
|
|
96191
96192
|
},
|
|
96192
|
-
"intensity": 16000
|
|
96193
|
+
"intensity": 16000,
|
|
96194
|
+
"range": -1,
|
|
96195
|
+
"shadow": true,
|
|
96196
|
+
"type": {
|
|
96197
|
+
"$case": "point",
|
|
96198
|
+
"point": {}
|
|
96199
|
+
}
|
|
96193
96200
|
}
|
|
96194
96201
|
}
|
|
96195
96202
|
}
|
|
@@ -96274,7 +96281,7 @@
|
|
|
96274
96281
|
]
|
|
96275
96282
|
},
|
|
96276
96283
|
"contents": {
|
|
96277
|
-
"composite.json": "
|
|
96284
|
+
"composite.json": "bafkreian6wibsfs6aq2tu6uqwz4usb2lryvxc4omwdck4idluvzms3v2tu",
|
|
96278
96285
|
"pointlight.glb": "bafkreigsq6siqx3yxwpjoxkzjoqeqgwbhphgktfi6dovtp3pjhxud4jxhm",
|
|
96279
96286
|
"thumbnail.png": "bafkreiegk7iakk67hipuuam6odsrftdygfitot67atbimxoig2wfiiyeyy"
|
|
96280
96287
|
}
|
|
@@ -1926,7 +1926,7 @@ executeTask(async () => {
|
|
|
1926
1926
|
const result = await response.json()
|
|
1927
1927
|
console.log('Transaction result:', result)
|
|
1928
1928
|
} catch (error) {
|
|
1929
|
-
console.
|
|
1929
|
+
console.log('Transaction failed:', error)
|
|
1930
1930
|
}
|
|
1931
1931
|
})
|
|
1932
1932
|
```
|
|
@@ -1945,7 +1945,7 @@ executeTask(async () => {
|
|
|
1945
1945
|
const result = await manaUser.send('0x123...abc', 100) // 100 MANA
|
|
1946
1946
|
console.log('MANA sent:', result)
|
|
1947
1947
|
} catch (error) {
|
|
1948
|
-
console.
|
|
1948
|
+
console.log('MANA transaction failed:', error)
|
|
1949
1949
|
}
|
|
1950
1950
|
})
|
|
1951
1951
|
```
|
|
@@ -2005,7 +2005,7 @@ executeTask(async () => {
|
|
|
2005
2005
|
console.log('Balance:', result)
|
|
2006
2006
|
|
|
2007
2007
|
} catch (error) {
|
|
2008
|
-
console.
|
|
2008
|
+
console.log('Contract interaction failed:', error)
|
|
2009
2009
|
}
|
|
2010
2010
|
})
|
|
2011
2011
|
```
|
|
@@ -2053,7 +2053,7 @@ executeTask(async () => {
|
|
|
2053
2053
|
console.log('Current balance:', balance)
|
|
2054
2054
|
|
|
2055
2055
|
} catch (error) {
|
|
2056
|
-
console.
|
|
2056
|
+
console.log('Transaction failed:', error)
|
|
2057
2057
|
}
|
|
2058
2058
|
})
|
|
2059
2059
|
```
|
|
@@ -2303,7 +2303,7 @@ executeTask(async () => {
|
|
|
2303
2303
|
const data = await response.json()
|
|
2304
2304
|
console.log('API response:', data)
|
|
2305
2305
|
} catch (error) {
|
|
2306
|
-
console.
|
|
2306
|
+
console.log('API call failed:', error)
|
|
2307
2307
|
}
|
|
2308
2308
|
})
|
|
2309
2309
|
```
|
|
@@ -2326,7 +2326,7 @@ executeTask(async () => {
|
|
|
2326
2326
|
const result = await response.json()
|
|
2327
2327
|
console.log('Submission result:', result)
|
|
2328
2328
|
} catch (error) {
|
|
2329
|
-
console.
|
|
2329
|
+
console.log('Submission failed:', error)
|
|
2330
2330
|
}
|
|
2331
2331
|
})
|
|
2332
2332
|
```
|
|
@@ -2563,8 +2563,6 @@ npm install some-library
|
|
|
2563
2563
|
```typescript
|
|
2564
2564
|
// Basic logging
|
|
2565
2565
|
console.log('Debug message:', data)
|
|
2566
|
-
console.warn('Warning message')
|
|
2567
|
-
console.error('Error message')
|
|
2568
2566
|
|
|
2569
2567
|
// Structured logging
|
|
2570
2568
|
console.log('Entity transform:', {
|
|
@@ -2619,7 +2617,7 @@ export const DebugUI = () => {
|
|
|
2619
2617
|
```typescript
|
|
2620
2618
|
function performanceSystem(dt: number) {
|
|
2621
2619
|
if (dt > 0.033) { // More than 30ms per frame
|
|
2622
|
-
console.
|
|
2620
|
+
console.log('Performance warning: Frame time:', dt * 1000, 'ms')
|
|
2623
2621
|
}
|
|
2624
2622
|
}
|
|
2625
2623
|
|
|
@@ -2658,7 +2656,7 @@ function checkBounds(entity: Entity) {
|
|
|
2658
2656
|
const pos = transform.position
|
|
2659
2657
|
|
|
2660
2658
|
if (pos.x < 0 || pos.x > 16 || pos.z < 0 || pos.z > 16) {
|
|
2661
|
-
console.
|
|
2659
|
+
console.log('Entity outside scene bounds:', pos)
|
|
2662
2660
|
}
|
|
2663
2661
|
}
|
|
2664
2662
|
```
|
|
@@ -2680,7 +2678,7 @@ executeTask(async () => {
|
|
|
2680
2678
|
// Use the result in your scene
|
|
2681
2679
|
updateSceneWithData(result)
|
|
2682
2680
|
} catch (error) {
|
|
2683
|
-
console.
|
|
2681
|
+
console.log('Async operation failed:', error)
|
|
2684
2682
|
}
|
|
2685
2683
|
})
|
|
2686
2684
|
```
|
|
@@ -3556,7 +3554,7 @@ function trackInteraction(action: string, object: string) {
|
|
|
3556
3554
|
})
|
|
3557
3555
|
})
|
|
3558
3556
|
} catch (error) {
|
|
3559
|
-
console.
|
|
3557
|
+
console.log('Analytics tracking failed:', error)
|
|
3560
3558
|
}
|
|
3561
3559
|
})
|
|
3562
3560
|
}
|
|
@@ -3580,7 +3578,7 @@ function boundaryCheckSystem() {
|
|
|
3580
3578
|
|
|
3581
3579
|
// Check if entity is outside scene bounds
|
|
3582
3580
|
if (pos.x < 0 || pos.x > 16 || pos.z < 0 || pos.z > 16 || pos.y > 20) {
|
|
3583
|
-
console.
|
|
3581
|
+
console.log('Entity outside bounds:', entity, pos)
|
|
3584
3582
|
|
|
3585
3583
|
// Optionally move back to bounds
|
|
3586
3584
|
const mutableTransform = Transform.getMutable(entity)
|
|
@@ -3666,7 +3664,7 @@ function safeGetTransform(entity: Entity): Vector3 | null {
|
|
|
3666
3664
|
}
|
|
3667
3665
|
return null
|
|
3668
3666
|
} catch (error) {
|
|
3669
|
-
console.
|
|
3667
|
+
console.log('Error getting transform:', error)
|
|
3670
3668
|
return null
|
|
3671
3669
|
}
|
|
3672
3670
|
}
|
|
@@ -3676,11 +3674,11 @@ function attemptAction(entity: Entity, action: () => void) {
|
|
|
3676
3674
|
try {
|
|
3677
3675
|
action()
|
|
3678
3676
|
} catch (error) {
|
|
3679
|
-
console.
|
|
3677
|
+
console.log('Action failed:', error)
|
|
3680
3678
|
// Provide fallback behavior
|
|
3681
3679
|
ui.displayAnnouncement('Action temporarily unavailable')
|
|
3682
3680
|
}
|
|
3683
3681
|
}
|
|
3684
3682
|
```
|
|
3685
3683
|
|
|
3686
|
-
This comprehensive reference covers all major aspects of Decentraland SDK7 development, from basic setup to advanced patterns and optimization techniques. Use this as a complete reference for building scenes, implementing interactivity, managing assets, and creating engaging experiences in Decentraland.
|
|
3684
|
+
This comprehensive reference covers all major aspects of Decentraland SDK7 development, from basic setup to advanced patterns and optimization techniques. Use this as a complete reference for building scenes, implementing interactivity, managing assets, and creating engaging experiences in Decentraland.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/asset-packs",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2-20251023210549.commit-e8fcfcd",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/definitions.js",
|
|
6
6
|
"typings": "dist/definitions.d.ts",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"semi": false,
|
|
66
66
|
"printWidth": 80
|
|
67
67
|
},
|
|
68
|
-
"commit": "
|
|
68
|
+
"commit": "e8fcfcd84d10f3eedbbc2b0c353fde666a94cb26"
|
|
69
69
|
}
|