This commit is contained in:
Etrent 2022-09-26 21:42:10 +08:00
parent dac09979dc
commit a1651484df
73 changed files with 23886 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,2 @@
[InternetShortcut]
URL=https://docs.cocos.com/creator/manual/en/scripting/setup.html#custom-script-template

24
.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
#///////////////////////////
# Cocos Creator 3D Project
#///////////////////////////
library/
temp/
local/
build/
profiles/
native
#//////////////////////////
# NPM
#//////////////////////////
node_modules/
#//////////////////////////
# VSCode
#//////////////////////////
.vscode/
#//////////////////////////
# WebStorm
#//////////////////////////
.idea/

79
assets/WalletSdkUtils.ts Normal file
View File

@ -0,0 +1,79 @@
import Web3 from 'web3/dist/web3.min.js';
import {ContractABI} from "db://assets/scripts/WalletSDK/ABI";
/**
* Predefined variables
* Name = WalletUtils
* DateTime = Fri Aug 26 2022 18:07:14 GMT+0800 ()
* Author =
* FileBasename = WalletUtils.ts
* FileBasenameNoExtension = WalletUtils
* URL = db://assets/scripts/WalletSdk/WalletUtils.ts
* ManualUrl = https://docs.cocos.com/creator/3.4/manual/zh/
*
*/
// 钱包sdk类型
export enum WalletSdkType {
Web, // 网页端 mobile pc
Native, // 原生端 android ios
}
// 钱包连接类型
export enum WalletConnectType {
Api, // api连接
QRCode, // 二维码连接
}
// 钱包类型
export enum WalletType {
MetaMask,
TronLink,
IMToken,
TokenPocket,
}
export interface IWalletSdk {
init(): Promise<void>;
connect(): any;
customSignRequest(): any;
customRequest(from: string, contractAddress: string, fnName: string, ...args: any[]): any;
}
const web3 = new Web3();
// 补齐64位不够前面用0补齐
function addPreZero(num: string) {
return num.toString().padStart(64, '0');
}
/**
*
* @param from
* @param contractAddress
* @param fnName ABI内type为function的可调用函数名
* @param args
*/
export function createRequestData(from: string, contractAddress: string, fnName: string, ...args: any[]) {
// 查找对应方法并获取对应的函数签名
const functionInfo = ContractABI.find((item) => item.type === 'function' && item.name === fnName);
// @ts-ignore
const functionSignature = web3.eth.abi.encodeFunctionSignature(functionInfo);
// 发起请求
return {
// 注意这里是代币合约地址
from,
to: contractAddress,
// 调用合约转账value这里留空
value: "",
// data的组成0x + 要调用的合约方法的function signature + 要传递的方法参数每个参数都为64位(去掉前面0x然后补齐为64位)
data: functionSignature + args.map((v) => addPreZero(web3.utils.toHex(v).substring(2))).join(''),
};
}

View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "fe89195e-d43e-4da5-ac01-b32a5a7615b1",
"files": [],
"subMetas": {},
"userData": {}
}

82
assets/btn_click.ts Normal file
View File

@ -0,0 +1,82 @@
import { _decorator, Component, Node, native } from "cc";
const { ccclass, property } = _decorator;
import { createRequestData } from "./WalletSdkUtils";
@ccclass("btn_click")
export class btn_click extends Component {
start() { }
update(deltaTime: number) { }
/**
* btn_onclick
*/
public btn_onclick() {
console.info("点击了按钮");
// @ts-ignore
var ret = native.reflection.callStaticMethod("JSHandleClass", "init");
}
/**
*
*/
public btn_onclick1() {
console.info("点击了按钮");
var ret = native.reflection.callStaticMethod(
"JSHandleClass",
"walleConnectFun:",
"imtokenv2"
);
}
//发送交易
public async btn_onclick2() {
console.info("点击了按钮");
var temp = createRequestData(
"0x4eDE150f62dc21aDC0F39a2A02c95A5Cc1FD7B2C",
"0x62cC9fd83d48eFCe313695bA6a3245bCCC7f196e",
"Mint",
"0x4eDE150f62dc21aDC0F39a2A02c95A5Cc1FD7B2C",
);
var jsonObj = {
"method": "eth_sendTransaction",
"params": JSON.stringify(temp)
};
var jsonStr = JSON.stringify(jsonObj);
///0x2eB535d54382eA5CED9183899916A9d39e093877
var ret = native.reflection.callStaticMethod(
"JSHandleClass",
"sendContractFun:",
jsonStr
);
}
public async btn_onclick3() {
// console.info("点击了按钮");
// var temp = createRequestData(
// "0x4eDE150f62dc21aDC0F39a2A02c95A5Cc1FD7B2C",
// "0x62cC9fd83d48eFCe313695bA6a3245bCCC7f196e",
// "",
// "Mint",
// "0x4eDE150f62dc21aDC0F39a2A02c95A5Cc1FD7B2C",
// );
// var jsonObj = {
// "method": "eth_sendTransaction",
// "params": JSON.stringify(temp)
// };
var jsonObj = {
"method": "personal_sign",
"params": [
"0x49206861766520313030e282ac",
"0x2eB535d54382eA5CED9183899916A9d39e093877"
]
};
var jsonStr = JSON.stringify(jsonObj);
///0x2eB535d54382eA5CED9183899916A9d39e093877
var ret = native.reflection.callStaticMethod(
"JSHandleClass",
"sendMessageFun:",
jsonStr
);
}
}

9
assets/btn_click.ts.meta Normal file
View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "2175cba0-5ca2-4514-82cc-cbe780889b7f",
"files": [],
"subMetas": {},
"userData": {}
}

12
assets/material.meta Normal file
View File

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "bcb14f34-8131-435f-a8f5-29612c45af59",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@ -0,0 +1,34 @@
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "a3cd009f-0ab0-420d-9278-b9fdab939bbc"
},
"_techIdx": 0,
"_defines": [
{
"USE_TEXTURE": true
}
],
"_states": [
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
],
"_props": [
{
"mainTexture": {
"__uuid__": "dc4a96c7-321a-48af-81e5-1127ad3ae432@6c48a"
},
"alphaThreshold": 0
}
]
}

View File

@ -0,0 +1,11 @@
{
"ver": "1.0.13",
"importer": "material",
"imported": true,
"uuid": "482a5162-dad9-446c-b548-8486c7598ee1",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

34
assets/material/plane.mtl Normal file
View File

@ -0,0 +1,34 @@
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "a3cd009f-0ab0-420d-9278-b9fdab939bbc"
},
"_techIdx": 0,
"_defines": [
{
"USE_TEXTURE": true
}
],
"_states": [
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
],
"_props": [
{
"mainTexture": {
"__uuid__": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee@6c48a"
},
"alphaThreshold": 0
}
]
}

View File

@ -0,0 +1,11 @@
{
"ver": "1.0.13",
"importer": "material",
"imported": true,
"uuid": "23e988d0-7168-4fe2-9d46-f29c114e9e33",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

View File

@ -0,0 +1,42 @@
{
"__type__": "cc.Material",
"_name": "seafloor",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "1baf0fc9-befa-459c-8bdd-af1a450a0319"
},
"_techIdx": 0,
"_defines": [
{
"USE_ALBEDO_MAP": true
}
],
"_states": [
{
"rasterizerState": {},
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {}
}
],
"_props": [
{
"mainTexture": {
"__uuid__": "0ab3142a-6968-4073-95af-026bc3b23623@2df3a"
},
"albedoScale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"metallic": 0.400000005960464,
"roughness": 0.70710676908493,
"alphaThreshold": 0
}
]
}

View File

@ -0,0 +1,11 @@
{
"ver": "1.0.13",
"importer": "material",
"imported": true,
"uuid": "70d33758-1c1e-424d-b0ab-eac7410559bf",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

View File

@ -0,0 +1,62 @@
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "1baf0fc9-befa-459c-8bdd-af1a450a0319"
},
"_techIdx": 0,
"_defines": [
{
"USE_ALBEDO_MAP": true
},
{
"USE_ALBEDO_MAP": true
},
{
"USE_ALBEDO_MAP": true
}
],
"_states": [
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
],
"_props": [
{
"alphaThreshold": 0,
"roughness": 0.70710676908493,
"metallic": 0.400000005960464,
"mainTexture": {
"__uuid__": "95e5b02a-e338-423c-bdbb-17486db1d9eb@6c48a"
}
},
{},
{}
]
}

View File

@ -0,0 +1,11 @@
{
"ver": "1.0.13",
"importer": "material",
"imported": true,
"uuid": "8e047178-f61c-4322-a2f6-d1adb28b6ae2",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

View File

@ -0,0 +1,83 @@
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "a7612b54-35e3-4238-a1a9-4a7b54635839"
},
"_techIdx": 0,
"_defines": [
{
"USE_OUTLINE_PASS": true
},
{
"USE_BASE_COLOR_MAP": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
},
{
"USE_BASE_COLOR_MAP": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
},
{
"USE_BASE_COLOR_MAP": true
}
],
"_states": [
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
],
"_props": [
{},
{
"specular": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 0
},
"mainTexture": {
"__uuid__": "6f891a7b-5a08-48e6-9841-ddb364ac86b1@6c48a"
}
},
{},
{}
]
}

View File

@ -0,0 +1,11 @@
{
"ver": "1.0.13",
"importer": "material",
"imported": true,
"uuid": "8a58ddec-f437-40b9-8ec0-1fc87de97fb5",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

83
assets/material/stone.mtl Normal file
View File

@ -0,0 +1,83 @@
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "a7612b54-35e3-4238-a1a9-4a7b54635839"
},
"_techIdx": 0,
"_defines": [
{
"USE_OUTLINE_PASS": true
},
{
"USE_BASE_COLOR_MAP": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
},
{
"USE_BASE_COLOR_MAP": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
},
{
"USE_BASE_COLOR_MAP": true
}
],
"_states": [
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
],
"_props": [
{},
{
"specular": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 0
},
"mainTexture": {
"__uuid__": "0718d996-39bf-4ab4-bb63-496666fef467@6c48a"
}
},
{},
{}
]
}

View File

@ -0,0 +1,11 @@
{
"ver": "1.0.13",
"importer": "material",
"imported": true,
"uuid": "a155f93b-7769-4ca4-b75f-b13e52193859",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

83
assets/material/tree.mtl Normal file
View File

@ -0,0 +1,83 @@
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "a7612b54-35e3-4238-a1a9-4a7b54635839"
},
"_techIdx": 0,
"_defines": [
{
"USE_OUTLINE_PASS": true
},
{
"USE_BASE_COLOR_MAP": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
},
{
"USE_BASE_COLOR_MAP": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_1": true,
"BASE_COLOR_MAP_AS_SHADE_MAP_2": true
},
{
"USE_BASE_COLOR_MAP": true
}
],
"_states": [
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
},
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
],
"_props": [
{},
{
"specular": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 0
},
"mainTexture": {
"__uuid__": "c5083e75-ad2e-4ea9-8b33-dee748995b00@6c48a"
}
},
{},
{}
]
}

View File

@ -0,0 +1,11 @@
{
"ver": "1.0.13",
"importer": "material",
"imported": true,
"uuid": "7bf9df40-4bc9-4e25-8cb0-9a500f949102",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

12
assets/model.meta Normal file
View File

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "1ddc11ba-ecbd-4472-841c-f3777cb248da",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "11a1d348-a622-41b2-89f3-ed24657e5f84",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "e00862a8-c500-427c-b76f-bbe5203f19cc",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

Binary file not shown.

View File

@ -0,0 +1,157 @@
{
"ver": "2.3.0",
"importer": "fbx",
"imported": true,
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160",
"files": [
"__original-animation-0.cconb"
],
"subMetas": {
"ef5e1": {
"importer": "gltf-mesh",
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@ef5e1",
"displayName": "",
"id": "ef5e1",
"name": "grass.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
},
"73b7f": {
"importer": "gltf-animation",
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@73b7f",
"displayName": "",
"id": "73b7f",
"name": "Take 001.animation",
"ver": "1.0.16",
"imported": true,
"files": [
".cconb"
],
"subMetas": {},
"userData": {
"events": [],
"gltfIndex": 0,
"sample": 30,
"span": {
"from": 0,
"to": 3.3333332538604736
},
"wrapMode": 2,
"speed": 1
}
},
"438fe": {
"importer": "gltf-skeleton",
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@438fe",
"displayName": "",
"id": "438fe",
"name": "UnnamedSkeleton.skeleton",
"ver": "1.0.1",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0,
"jointsLength": 6
}
},
"9787f": {
"importer": "texture",
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@9787f",
"displayName": "",
"id": "9787f",
"name": "grass.texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": false,
"imageUuidOrDatabaseUri": "db://assets/model/helloWorld/grass/grass.png"
}
},
"3022b": {
"importer": "gltf-scene",
"uuid": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@3022b",
"displayName": "",
"id": "3022b",
"name": "grass.prefab",
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
}
},
"userData": {
"imageMetas": [
{
"name": "grass",
"uri": "db://assets/model/helloWorld/grass/grass.png"
}
],
"animationImportSettings": [
{
"name": "Take 001",
"duration": 3.3333332538604736,
"fps": 30,
"splits": [
{
"name": "Take 001",
"from": 0,
"to": 3.3333332538604736,
"wrapMode": 2
}
]
}
],
"redirect": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@3022b",
"assetFinder": {
"meshes": [
"aade09ee-8f9d-413c-a9e8-8c686ea5e160@ef5e1"
],
"skeletons": [
"aade09ee-8f9d-413c-a9e8-8c686ea5e160@438fe"
],
"textures": [
"aade09ee-8f9d-413c-a9e8-8c686ea5e160@9787f"
],
"materials": [
"b698e55a-b00b-4987-a8b4-af83cddc59f7"
],
"scenes": [
"aade09ee-8f9d-413c-a9e8-8c686ea5e160@3022b"
]
},
"useVertexColors": true,
"dumpMaterials": true,
"materialDumpDir": "db://assets/model/helloWorld/grass",
"legacyFbxImporter": true,
"fbx": {
"smartMaterialEnabled": false
}
}
}

View File

@ -0,0 +1,34 @@
{
"__type__": "cc.Material",
"_name": "",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "a3cd009f-0ab0-420d-9278-b9fdab939bbc"
},
"_techIdx": 0,
"_defines": [
{
"USE_TEXTURE": true
}
],
"_states": [
{
"blendState": {
"targets": [
{}
]
},
"depthStencilState": {},
"rasterizerState": {}
}
],
"_props": [
{
"mainTexture": {
"__uuid__": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87@6c48a"
},
"alphaThreshold": 0
}
]
}

View File

@ -0,0 +1,11 @@
{
"ver": "1.0.13",
"importer": "material",
"imported": true,
"uuid": "b698e55a-b00b-4987-a8b4-af83cddc59f7",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -0,0 +1,43 @@
{
"ver": "1.0.24",
"importer": "image",
"imported": true,
"uuid": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87@6c48a",
"displayName": "grass",
"id": "6c48a",
"name": "texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "linear",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87",
"visible": true
}
}
},
"userData": {
"type": "texture",
"redirect": "ae18deea-c6e0-4a3d-bf70-ee5533f9ba87@6c48a",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false
}
}

View File

@ -0,0 +1,590 @@
[
{
"__type__": "cc.Prefab",
"_name": "grass",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "grass",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 21
}
],
"_prefab": {
"__id__": 23
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "RootNode",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 8
},
{
"__id__": 14
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 20
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "grass",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": {
"__id__": 7
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0.37992816729770207,
"y": 0.5963678291908521,
"z": 0.5963678291908521,
"w": -0.37992816729770207
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.614784121513367,
"y": 0.614784121513367,
"z": 0.614784121513367
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": -90,
"y": -115.0000056286655,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.SkinnedMeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "b698e55a-b00b-4987-a8b4-af83cddc59f7"
}
],
"_visFlags": 0,
"lightmapSettings": {
"__id__": 5
},
"_mesh": {
"__uuid__": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@ef5e1"
},
"_shadowCastingMode": 0,
"_enableMorph": true,
"_skeleton": {
"__uuid__": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@438fe"
},
"_skinningRoot": {
"__id__": 1
},
"_id": "",
"__prefab": {
"__id__": 6
}
},
{
"__type__": "cc.ModelLightmapSettings",
"texture": null,
"uvParam": {
"__type__": "cc.Vec4",
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"_bakeable": false,
"_castShadow": false,
"_receiveShadow": false,
"_recieveShadow": false,
"_lightmapSize": 64
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cdq4wvfd1AkYLKBGkpcnul"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "3aIX8gjK5JFK8ATDBKdax8"
},
{
"__type__": "cc.Node",
"_name": "Bone001",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 9
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 13
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -0.0461842827498913,
"y": 0.0000118009265861474,
"z": -0.0284814611077309
},
"_lrot": {
"__type__": "cc.Quat",
"x": -0.0000017283479103639154,
"y": -0.000001696768662714476,
"z": 0.7049074170330618,
"w": 0.7092993256770451
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 2.53999996185303,
"y": 2.53999996185303,
"z": 2.53999996185303
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": -0.0005507418826256091,
"y": 0.00027320859410338513,
"z": 89.64412979694991
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Bone002",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [
{
"__id__": 10
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 12
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0.0404664427042007,
"y": -3.57627860658738e-9,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0.000002421418716486127,
"y": 1.5182564735607207e-8,
"z": 0.006269989150778519,
"w": 0.9999803434219023
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0.000277479600078167,
"y": -3.18993241527229e-13,
"z": 0.7184925395739944
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Bone003",
"_objFlags": 0,
"_parent": {
"__id__": 9
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 11
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0.0397140197455883,
"y": -1.19209286886246e-9,
"z": 7.15255721317476e-9
},
"_lrot": {
"__type__": "cc.Quat",
"x": 1.4018830392883508e-10,
"y": -1.4662893682703937e-13,
"z": -0.0010459420626472054,
"w": 0.9999994530024512
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 1.606440509162768e-8,
"y": -1.4726229276075984e-18,
"z": -0.11985615346346049
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "1628kgL41EG4kfuuNtniX1"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "d1mgL13wtIwojR/2FqCufO"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "f5o8/2y99IcawmyX5Tnjyv"
},
{
"__type__": "cc.Node",
"_name": "Bone004",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 15
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 19
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0.0710692703723907,
"y": 0.0000118009265861474,
"z": 0.0136896027252078
},
"_lrot": {
"__type__": "cc.Quat",
"x": -0.0000017283479103639154,
"y": -0.000001696768662714476,
"z": 0.7049074170330618,
"w": 0.7092993256770451
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 2.53999996185303,
"y": 2.53999996185303,
"z": 2.53999996185303
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": -0.0005507418826256091,
"y": 0.00027320859410338513,
"z": 89.64412979694991
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Bone005",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
{
"__id__": 16
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 18
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0.0404664427042007,
"y": -4.76837147544984e-9,
"z": 5.9604643443123e-10
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0.000002421418716486127,
"y": 1.5182564735607207e-8,
"z": 0.006269989150778519,
"w": 0.9999803434219023
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0.000277479600078167,
"y": -3.18993241527229e-13,
"z": 0.7184925395739944
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Bone006",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 17
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0.039714016020298,
"y": 0,
"z": 7.74860353658369e-9
},
"_lrot": {
"__type__": "cc.Quat",
"x": 1.4018830392883508e-10,
"y": -1.4662893682703937e-13,
"z": -0.0010459420626472054,
"w": 0.9999994530024512
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 1.606440509162768e-8,
"y": -1.4726229276075984e-18,
"z": -0.11985615346346049
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a2tndvTm9M84i3qPpLv8DA"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c5xVHa1qBClrp5YbutRSaI"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "3fxCLd4O9NUqkwJjBsDQgb"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b7w6U8zppFX54UJURtAWiT"
},
{
"__type__": "cc.SkeletalAnimation",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"playOnLoad": false,
"_clips": [
{
"__uuid__": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@73b7f"
}
],
"_defaultClip": {
"__uuid__": "aade09ee-8f9d-413c-a9e8-8c686ea5e160@73b7f"
},
"_useBakedAnimation": true,
"_sockets": [],
"_id": "",
"__prefab": {
"__id__": 22
}
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "deki0q/OJHD4jsTyP928BZ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "fdSk3ayLBOH7saksB95r+y"
}
]

View File

@ -0,0 +1,13 @@
{
"ver": "1.1.39",
"importer": "prefab",
"imported": true,
"uuid": "ebe68402-4803-40d3-b0a2-ca696e3f7c60",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "grass"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
{
"ver": "1.1.39",
"importer": "prefab",
"imported": true,
"uuid": "5e4d48c4-0e34-45af-a268-89485197e8bc",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "grassGoup"
}
}

Binary file not shown.

View File

@ -0,0 +1,113 @@
{
"ver": "2.3.0",
"importer": "fbx",
"imported": true,
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220",
"files": [],
"subMetas": {
"f6832": {
"importer": "gltf-mesh",
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220@f6832",
"displayName": "",
"id": "f6832",
"name": "hdcSky.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
},
"7f40d": {
"importer": "gltf-embeded-image",
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220@7f40d",
"displayName": "",
"id": "7f40d",
"name": "hdcSky.image",
"ver": "1.0.3",
"imported": true,
"files": [
".json",
".png"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
},
"d6067": {
"importer": "texture",
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220@d6067",
"displayName": "",
"id": "d6067",
"name": "hdcSky.texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "929e58ce-66a4-4e04-9036-4244456a1220@7f40d"
}
},
"bfc57": {
"importer": "gltf-scene",
"uuid": "929e58ce-66a4-4e04-9036-4244456a1220@bfc57",
"displayName": "",
"id": "bfc57",
"name": "hdcSky.prefab",
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
}
},
"userData": {
"imageMetas": [
{
"name": "hdcSky",
"uri": "929e58ce-66a4-4e04-9036-4244456a1220@7f40d"
}
],
"redirect": "929e58ce-66a4-4e04-9036-4244456a1220@bfc57",
"assetFinder": {
"meshes": [
"929e58ce-66a4-4e04-9036-4244456a1220@f6832"
],
"skeletons": [],
"textures": [
"929e58ce-66a4-4e04-9036-4244456a1220@d6067"
],
"materials": [
"482a5162-dad9-446c-b548-8486c7598ee1"
],
"scenes": [
"929e58ce-66a4-4e04-9036-4244456a1220@bfc57"
]
},
"dumpMaterials": true,
"materialDumpDir": "db://assets/material",
"legacyFbxImporter": true,
"fbx": {
"smartMaterialEnabled": false
}
}
}

View File

@ -0,0 +1,224 @@
[
{
"__type__": "cc.Prefab",
"_name": "hdcSky",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "hdcSky",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "RootNode",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 8
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "hdcSky",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": {
"__id__": 7
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0.00000556361783310422
},
"_lrot": {
"__type__": "cc.Quat",
"x": -0.7071067811865476,
"y": 0,
"z": 0,
"w": 0.7071067811865476
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 2.57702493667603,
"y": 2.57702493667603,
"z": 2.57702493667603
},
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": -90.00000000000003,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "482a5162-dad9-446c-b548-8486c7598ee1"
}
],
"_visFlags": 0,
"lightmapSettings": {
"__id__": 5
},
"_mesh": {
"__uuid__": "929e58ce-66a4-4e04-9036-4244456a1220@f6832"
},
"_shadowCastingMode": 0,
"_enableMorph": true,
"_id": "",
"__prefab": {
"__id__": 6
}
},
{
"__type__": "cc.ModelLightmapSettings",
"texture": null,
"uvParam": {
"__type__": "cc.Vec4",
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"_bakeable": false,
"_castShadow": false,
"_receiveShadow": false,
"_recieveShadow": false,
"_lightmapSize": 64
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "faUTUMvuxGGLzyygmsEygr"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "537wfATPdERIxNoHyImaal"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "68pBvn4L5LzqzYlxlqIh1Z"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a0C8RfybZDJbzD2rhAA/j8"
}
]

View File

@ -0,0 +1,13 @@
{
"ver": "1.1.39",
"importer": "prefab",
"imported": true,
"uuid": "f0512d7a-e4f6-4209-8dc0-ed1de7149c85",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "hdcSky"
}
}

Binary file not shown.

View File

@ -0,0 +1,352 @@
{
"ver": "2.3.0",
"importer": "fbx",
"imported": true,
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623",
"files": [],
"subMetas": {
"71919": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@71919",
"displayName": "",
"id": "71919",
"name": "tree1-6.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 6
}
},
"2b0a8": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@2b0a8",
"displayName": "",
"id": "2b0a8",
"name": "plane01-0.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
},
"4a7d8": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@4a7d8",
"displayName": "",
"id": "4a7d8",
"name": "stone1-1.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 1
}
},
"0e750": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@0e750",
"displayName": "",
"id": "0e750",
"name": "tree1-2.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 2
}
},
"ef86b": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@ef86b",
"displayName": "",
"id": "ef86b",
"name": "tree1-3.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 3
}
},
"426f2": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@426f2",
"displayName": "",
"id": "426f2",
"name": "tree1-4.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 4
}
},
"754a2": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@754a2",
"displayName": "",
"id": "754a2",
"name": "tree1-5.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 5
}
},
"1332c": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@1332c",
"displayName": "",
"id": "1332c",
"name": "tree1-7.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 7
}
},
"4d16f": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@4d16f",
"displayName": "",
"id": "4d16f",
"name": "tree1-8.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 8
}
},
"efe84": {
"importer": "gltf-mesh",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@efe84",
"displayName": "",
"id": "efe84",
"name": "tree1-9.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 9
}
},
"eeccb": {
"importer": "gltf-embeded-image",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@eeccb",
"displayName": "",
"id": "eeccb",
"name": "stone.jpg.image",
"userData": {
"gltfIndex": 1
},
"ver": "1.0.3",
"imported": true,
"files": [
".jpg",
".json"
],
"subMetas": {}
},
"3b6f8": {
"importer": "gltf-embeded-image",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@3b6f8",
"displayName": "",
"id": "3b6f8",
"name": "tree.png.image",
"userData": {
"gltfIndex": 2
},
"ver": "1.0.3",
"imported": true,
"files": [
".json",
".png"
],
"subMetas": {}
},
"2df3a": {
"importer": "texture",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@2df3a",
"displayName": "",
"id": "2df3a",
"name": "seafloor.texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": false,
"imageUuidOrDatabaseUri": "db://assets/model/helloWorld/seafloor.jpg"
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"91a84": {
"importer": "texture",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@91a84",
"displayName": "",
"id": "91a84",
"name": "stone.texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "0ab3142a-6968-4073-95af-026bc3b23623@eeccb"
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"0595c": {
"importer": "texture",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@0595c",
"displayName": "",
"id": "0595c",
"name": "tree.texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "0ab3142a-6968-4073-95af-026bc3b23623@3b6f8"
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"cc8e5": {
"importer": "gltf-scene",
"uuid": "0ab3142a-6968-4073-95af-026bc3b23623@cc8e5",
"displayName": "",
"id": "cc8e5",
"name": "islands.prefab",
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
}
},
"userData": {
"imageMetas": [
{
"name": "seafloor",
"uri": "db://assets/model/helloWorld/seafloor.jpg"
},
{
"name": "stone.jpg",
"uri": "0ab3142a-6968-4073-95af-026bc3b23623@eeccb"
},
{
"name": "tree.png",
"uri": "0ab3142a-6968-4073-95af-026bc3b23623@3b6f8"
}
],
"redirect": "0ab3142a-6968-4073-95af-026bc3b23623@cc8e5",
"assetFinder": {
"meshes": [
"0ab3142a-6968-4073-95af-026bc3b23623@2b0a8",
"0ab3142a-6968-4073-95af-026bc3b23623@4a7d8",
"0ab3142a-6968-4073-95af-026bc3b23623@0e750",
"0ab3142a-6968-4073-95af-026bc3b23623@ef86b",
"0ab3142a-6968-4073-95af-026bc3b23623@426f2",
"0ab3142a-6968-4073-95af-026bc3b23623@754a2",
"0ab3142a-6968-4073-95af-026bc3b23623@71919",
"0ab3142a-6968-4073-95af-026bc3b23623@1332c",
"0ab3142a-6968-4073-95af-026bc3b23623@4d16f",
"0ab3142a-6968-4073-95af-026bc3b23623@efe84"
],
"skeletons": [],
"textures": [
"0ab3142a-6968-4073-95af-026bc3b23623@2df3a",
"0ab3142a-6968-4073-95af-026bc3b23623@91a84",
"0ab3142a-6968-4073-95af-026bc3b23623@0595c"
],
"materials": [
"70d33758-1c1e-424d-b0ab-eac7410559bf",
"a155f93b-7769-4ca4-b75f-b13e52193859",
"7bf9df40-4bc9-4e25-8cb0-9a500f949102"
],
"scenes": [
"0ab3142a-6968-4073-95af-026bc3b23623@cc8e5"
]
},
"dumpMaterials": true,
"materialDumpDir": "db://assets/material",
"legacyFbxImporter": true,
"fbx": {
"smartMaterialEnabled": false
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
{
"ver": "1.1.39",
"importer": "prefab",
"imported": true,
"uuid": "ccc3a755-7d3d-4304-aa3b-ca4792d79d9f",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "islands"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 KiB

View File

@ -0,0 +1,43 @@
{
"ver": "1.0.24",
"importer": "image",
"imported": true,
"uuid": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee@6c48a",
"displayName": "seafloor",
"id": "6c48a",
"name": "texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee",
"visible": true
}
}
},
"userData": {
"type": "texture",
"redirect": "4f4c4a34-2d08-4a4d-9169-834d7ce82cee@6c48a",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -0,0 +1,43 @@
{
"ver": "1.0.24",
"importer": "image",
"imported": true,
"uuid": "95e5b02a-e338-423c-bdbb-17486db1d9eb",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "95e5b02a-e338-423c-bdbb-17486db1d9eb@6c48a",
"displayName": "shield",
"id": "6c48a",
"name": "texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "95e5b02a-e338-423c-bdbb-17486db1d9eb",
"visible": true
}
}
},
"userData": {
"type": "texture",
"redirect": "95e5b02a-e338-423c-bdbb-17486db1d9eb@6c48a",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 KiB

View File

@ -0,0 +1,43 @@
{
"ver": "1.0.24",
"importer": "image",
"imported": true,
"uuid": "dc4a96c7-321a-48af-81e5-1127ad3ae432",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "dc4a96c7-321a-48af-81e5-1127ad3ae432@6c48a",
"displayName": "sky",
"id": "6c48a",
"name": "texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "dc4a96c7-321a-48af-81e5-1127ad3ae432",
"visible": true
}
}
},
"userData": {
"type": "texture",
"redirect": "dc4a96c7-321a-48af-81e5-1127ad3ae432@6c48a",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false
}
}

Binary file not shown.

View File

@ -0,0 +1,311 @@
{
"ver": "2.3.0",
"importer": "fbx",
"imported": true,
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289",
"files": [
"__original-animation-0.cconb"
],
"subMetas": {
"18751": {
"importer": "gltf-mesh",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@18751",
"displayName": "",
"id": "18751",
"name": "soldier.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
},
"30732": {
"importer": "gltf-skeleton",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@30732",
"displayName": "",
"id": "30732",
"name": "UnnamedSkeleton-0.skeleton",
"ver": "1.0.1",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0,
"jointsLength": 22
}
},
"da6f3": {
"importer": "gltf-mesh",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@da6f3",
"displayName": "",
"id": "da6f3",
"name": "shield.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 1
}
},
"4b929": {
"importer": "gltf-mesh",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@4b929",
"displayName": "",
"id": "4b929",
"name": "sword.mesh",
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 2
}
},
"39f7b": {
"importer": "gltf-mesh",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@39f7b",
"displayName": "",
"id": "39f7b",
"name": "shield01.mesh",
"userData": {
"gltfIndex": 3
},
"ver": "1.1.0",
"imported": true,
"files": [
".bin",
".json"
],
"subMetas": {}
},
"73b7f": {
"importer": "gltf-animation",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@73b7f",
"displayName": "",
"id": "73b7f",
"name": "Take 001.animation",
"ver": "1.0.16",
"imported": true,
"files": [
".cconb"
],
"subMetas": {},
"userData": {
"events": [],
"gltfIndex": 0,
"sample": 30,
"span": {
"from": 0.03333333333333333,
"to": 1.3333333730697632
},
"wrapMode": 2,
"speed": 1
}
},
"f1394": {
"importer": "gltf-skeleton",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@f1394",
"displayName": "",
"id": "f1394",
"name": "UnnamedSkeleton-1.skeleton",
"ver": "1.0.1",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 1,
"jointsLength": 1
}
},
"75ee4": {
"importer": "gltf-skeleton",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@75ee4",
"displayName": "",
"id": "75ee4",
"name": "UnnamedSkeleton-2.skeleton",
"ver": "1.0.1",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 2,
"jointsLength": 1
}
},
"a72ab": {
"importer": "gltf-skeleton",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@a72ab",
"displayName": "",
"id": "a72ab",
"name": "UnnamedSkeleton-3.skeleton",
"ver": "1.0.1",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 3,
"jointsLength": 1
}
},
"e94f1": {
"importer": "gltf-embeded-image",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@e94f1",
"displayName": "",
"id": "e94f1",
"name": "shield.jpg.image",
"userData": {
"gltfIndex": 1
},
"ver": "1.0.3",
"imported": true,
"files": [
".jpg",
".json"
],
"subMetas": {}
},
"f3caa": {
"importer": "texture",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@f3caa",
"displayName": "",
"id": "f3caa",
"name": "soldier.texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": false,
"imageUuidOrDatabaseUri": "db://assets/model/helloWorld/soldier.png"
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"a2be1": {
"importer": "texture",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@a2be1",
"displayName": "",
"id": "a2be1",
"name": "shield.texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "e3553cad-2f15-4293-859a-8f43c780f289@e94f1"
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"d252c": {
"importer": "gltf-scene",
"uuid": "e3553cad-2f15-4293-859a-8f43c780f289@d252c",
"displayName": "",
"id": "d252c",
"name": "soldier.prefab",
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"gltfIndex": 0
}
}
},
"userData": {
"imageMetas": [
{
"name": "soldier",
"uri": "db://assets/model/helloWorld/soldier.png"
},
{
"name": "shield.jpg",
"uri": "e3553cad-2f15-4293-859a-8f43c780f289@e94f1"
}
],
"redirect": "e3553cad-2f15-4293-859a-8f43c780f289@d252c",
"assetFinder": {
"meshes": [
"e3553cad-2f15-4293-859a-8f43c780f289@18751",
"e3553cad-2f15-4293-859a-8f43c780f289@da6f3",
"e3553cad-2f15-4293-859a-8f43c780f289@4b929",
"e3553cad-2f15-4293-859a-8f43c780f289@39f7b"
],
"skeletons": [
"e3553cad-2f15-4293-859a-8f43c780f289@30732",
"e3553cad-2f15-4293-859a-8f43c780f289@f1394",
"e3553cad-2f15-4293-859a-8f43c780f289@75ee4",
"e3553cad-2f15-4293-859a-8f43c780f289@a72ab"
],
"textures": [
"e3553cad-2f15-4293-859a-8f43c780f289@f3caa",
"e3553cad-2f15-4293-859a-8f43c780f289@a2be1"
],
"materials": [
"8a58ddec-f437-40b9-8ec0-1fc87de97fb5",
"8e047178-f61c-4322-a2f6-d1adb28b6ae2"
],
"scenes": [
"e3553cad-2f15-4293-859a-8f43c780f289@d252c"
]
},
"dumpMaterials": true,
"materialDumpDir": "db://assets/material",
"animationImportSettings": [
{
"name": "Take 001",
"duration": 1.3333333730697632,
"fps": 30,
"splits": [
{
"name": "Take 001",
"from": 0.03333333333333333,
"to": 1.3333333730697632,
"wrapMode": 2
}
]
}
],
"legacyFbxImporter": true,
"fbx": {
"smartMaterialEnabled": false
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 KiB

View File

@ -0,0 +1,43 @@
{
"ver": "1.0.24",
"importer": "image",
"imported": true,
"uuid": "6f891a7b-5a08-48e6-9841-ddb364ac86b1",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "6f891a7b-5a08-48e6-9841-ddb364ac86b1@6c48a",
"displayName": "soldier",
"id": "6c48a",
"name": "texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "6f891a7b-5a08-48e6-9841-ddb364ac86b1",
"visible": true
}
}
},
"userData": {
"type": "texture",
"redirect": "6f891a7b-5a08-48e6-9841-ddb364ac86b1@6c48a",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
{
"ver": "1.1.39",
"importer": "prefab",
"imported": true,
"uuid": "cfc53c4e-7956-482b-aebc-3fb1dcd36eef",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "soldier"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -0,0 +1,43 @@
{
"ver": "1.0.24",
"importer": "image",
"imported": true,
"uuid": "0718d996-39bf-4ab4-bb63-496666fef467",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "0718d996-39bf-4ab4-bb63-496666fef467@6c48a",
"displayName": "stone",
"id": "6c48a",
"name": "texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "0718d996-39bf-4ab4-bb63-496666fef467",
"visible": true
}
}
},
"userData": {
"type": "texture",
"redirect": "0718d996-39bf-4ab4-bb63-496666fef467@6c48a",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

View File

@ -0,0 +1,43 @@
{
"ver": "1.0.24",
"importer": "image",
"imported": true,
"uuid": "c5083e75-ad2e-4ea9-8b33-dee748995b00",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c5083e75-ad2e-4ea9-8b33-dee748995b00@6c48a",
"displayName": "tree",
"id": "6c48a",
"name": "texture",
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {},
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"premultiplyAlpha": false,
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "c5083e75-ad2e-4ea9-8b33-dee748995b00",
"visible": true
}
}
},
"userData": {
"type": "texture",
"redirect": "c5083e75-ad2e-4ea9-8b33-dee748995b00@6c48a",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false
}
}

12
assets/scene.meta Normal file
View File

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "b0a4abb1-db32-49c3-9e09-a45b922a2094",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

2848
assets/scene/main.scene Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
{
"ver": "1.1.39",
"importer": "scene",
"imported": true,
"uuid": "7c3e7fab-7b1e-4865-ba84-3cf81b48b9fb",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

12
assets/scripts.meta Normal file
View File

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "0ffa4df5-6d43-4a4e-8f06-bad2c2f4ccd4",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "db51e406-b014-4fc7-b313-bd0cea79833b",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@ -0,0 +1,444 @@
export const ContractABI = [
{
"inputs": [
{
"internalType": "string",
"name": "tokenName",
"type": "string"
},
{
"internalType": "string",
"name": "tokenSymbol",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "GTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "Mint",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
}
];

View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "36b55b48-8f97-4910-86aa-99aad4476dcc",
"files": [],
"subMetas": {},
"userData": {}
}

12
assets/skybox.meta Normal file
View File

@ -0,0 +1,12 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "9e344b1f-8681-4ddf-bcc6-bb014c332bb8",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 KiB

View File

@ -0,0 +1,132 @@
{
"ver": "1.0.24",
"importer": "image",
"imported": true,
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb",
"files": [
".jpg",
".json"
],
"subMetas": {
"b47c0": {
"importer": "erp-texture-cube",
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0",
"displayName": "sunnySkyBox",
"id": "b47c0",
"name": "textureCube",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "linear",
"anisotropy": 1,
"isRGBE": false,
"imageDatabaseUri": "db://assets/skybox/sunnySkyBox.jpg"
},
"ver": "1.0.10",
"imported": true,
"files": [
".json"
],
"subMetas": {
"e9a6d": {
"importer": "texture-cube-face",
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@e9a6d",
"displayName": "",
"id": "e9a6d",
"name": "front",
"userData": {},
"ver": "1.0.0",
"imported": true,
"files": [
".json",
".png"
],
"subMetas": {}
},
"40c10": {
"importer": "texture-cube-face",
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@40c10",
"displayName": "",
"id": "40c10",
"name": "back",
"userData": {},
"ver": "1.0.0",
"imported": true,
"files": [
".json",
".png"
],
"subMetas": {}
},
"bb97f": {
"importer": "texture-cube-face",
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@bb97f",
"displayName": "",
"id": "bb97f",
"name": "top",
"userData": {},
"ver": "1.0.0",
"imported": true,
"files": [
".json",
".png"
],
"subMetas": {}
},
"7d38f": {
"importer": "texture-cube-face",
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@7d38f",
"displayName": "",
"id": "7d38f",
"name": "bottom",
"userData": {},
"ver": "1.0.0",
"imported": true,
"files": [
".json",
".png"
],
"subMetas": {}
},
"74afd": {
"importer": "texture-cube-face",
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@74afd",
"displayName": "",
"id": "74afd",
"name": "right",
"userData": {},
"ver": "1.0.0",
"imported": true,
"files": [
".json",
".png"
],
"subMetas": {}
},
"8fd34": {
"importer": "texture-cube-face",
"uuid": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0@8fd34",
"displayName": "",
"id": "8fd34",
"name": "left",
"userData": {},
"ver": "1.0.0",
"imported": true,
"files": [
".json",
".png"
],
"subMetas": {}
}
}
}
},
"userData": {
"hasAlpha": false,
"type": "texture cube",
"redirect": "5af201b5-5951-4e2c-a81f-ac4aad9132cb@b47c0",
"fixAlphaTransparencyArtifacts": false
}
}

7090
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

12
package.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "cocos_demo_3",
"uuid": "45ac0f2a-f9de-41e7-90ba-2d964fa91fb4",
"version": "3.6.0",
"_sourceId": "c30b28da-749e-479b-bcb6-cecd8d7be9e3",
"creator": {
"version": "3.6.0"
},
"dependencies": {
"web3": "^1.8.0"
}
}

View File

@ -0,0 +1,22 @@
{
"game": {
"name": "未知游戏",
"app_id": "UNKNOW",
"c_id": "0"
},
"appConfigMaps": [
{
"app_id": "UNKNOW",
"config_id": "cb3060"
}
],
"configs": [
{
"app_id": "UNKNOW",
"config_id": "cb3060",
"config_name": "Default",
"config_remarks": "",
"services": []
}
]
}

13
tsconfig.json Normal file
View File

@ -0,0 +1,13 @@
{
/* Base configuration. Do not edit this field. */
"extends": "./temp/tsconfig.cocos.json",
/* Add your custom configuration here. */
"compilerOptions": {
"strict": false,
"lib": [
"ES2017",
"DOM"
]
}
}