mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-06-01 05:20:18 +08:00
test hash replicator
This commit is contained in:
@@ -3,6 +3,7 @@ import { TestArrayLinkReplicator, TestArrayReplicator, TestSimpleArrayReplicator
|
||||
import { getReplicateMark, ReplicatedOption } from "../sync/ReplicateMark";
|
||||
import { getReplicator, replicated, replicatedClass } from "../sync/SyncUtil";
|
||||
import { TestSimpleSetReplicator } from "../sync/SetReplicator";
|
||||
import { TestHashReplicator, TestSimpleHashReplicator } from "../sync/HashReplicator";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -50,7 +51,9 @@ export default class SyncExample extends Component {
|
||||
//TestArrayReplicator();
|
||||
console.log("==============");
|
||||
//TestArrayLinkReplicator();
|
||||
TestSimpleSetReplicator();
|
||||
//TestSimpleSetReplicator();
|
||||
//TestSimpleHashReplicator();
|
||||
TestHashReplicator();
|
||||
/*let vec = new Vec3(Vec3.ZERO);
|
||||
makeObjectReplicated(vec);
|
||||
vec.x = 123;
|
||||
|
||||
Reference in New Issue
Block a user