mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-06-01 05:20:18 +08:00
fix init error
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import ReplicateMark from "./ReplicateMark";
|
||||
import { createReplicator } from "./ReplicatorFactory";
|
||||
import { Consturctor, getConsturctor, IReplicator } from "./SyncUtil";
|
||||
import { Consturctor, getConsturctor, IReplicator, replicated } from "./SyncUtil";
|
||||
|
||||
export type SimpleType = number | string | boolean | bigint;
|
||||
|
||||
@@ -355,7 +355,9 @@ export class ArrayReplicator<T> implements IReplicator {
|
||||
|
||||
export function TestArrayReplicator() {
|
||||
class Point {
|
||||
@replicated()
|
||||
x: number;
|
||||
@replicated()
|
||||
y: number;
|
||||
constructor(x: any = 0, y: any = 0) {
|
||||
this.x = x;
|
||||
|
||||
Reference in New Issue
Block a user