Add launchable
This commit is contained in:
11
js/instances/Player.js
Normal file
11
js/instances/Player.js
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user