11 lines
321 B
JavaScript
11 lines
321 B
JavaScript
|
|
|
||
|
|
import { Instance } from "./Instance.js";
|
||
|
|
export class Player extends Instance {
|
||
|
|
constructor( id, name, ws ) {
|
||
|
|
super("Player");
|
||
|
|
this.InstanceId = id; // To fix jank with replication system
|
||
|
|
this.UserId = id; // For compatibility
|
||
|
|
this.Name = name;
|
||
|
|
this.ws = ws; // WebSocket or client reference
|
||
|
|
}
|
||
|
|
}
|