| 42 | * @category Multiplayer |
| 43 | */ |
| 44 | export class MessageData implements IMessageData { |
| 45 | public readonly data: any; |
| 46 | public readonly sender: string; |
| 47 | constructor(data: object, sender: string) { |
| 48 | this.data = data; |
| 49 | this.sender = sender; |
| 50 | } |
| 51 | public getData(): any { |
| 52 | return this.data; |
| 53 | } |
| 54 | public getSender(): string { |
| 55 | return this.sender; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | export interface IMessagesList { |
| 60 | getName(): string; |
nothing calls this directly
no outgoing calls
no test coverage detected