That's a spicy meatball
* APIUtils additions * Socket and web server listen on dedicated ports (see denoland/deno socket issue created by ZombieB1309 on GitHub) * Coach and Server created automatically (untested) * Profile content functions split into 'managers' * Progression temporary implementation * Settings placed into profile content manager * Relationships and messages return temporary empty array * Socket targets defined, message delivery to target, exec returned (goes unused for now)
This commit is contained in:
20
src/socket/targets/targetbase.ts
Normal file
20
src/socket/targets/targetbase.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export class SocketTarget {
|
||||
|
||||
profileNotSetError = new Error("The profile on this target is not set.");
|
||||
|
||||
profileId: number | null = null;
|
||||
|
||||
setProfile(id: number) {
|
||||
this.profileId = id;
|
||||
}
|
||||
|
||||
profileIsSet() {
|
||||
return this.profileId !== null;
|
||||
}
|
||||
|
||||
// deno-lint-ignore require-await
|
||||
async exec(_args: (object | string | number | boolean)[]) {
|
||||
throw new Error("Execution for this target is not set.");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user