Skip to content

Instantly share code, notes, and snippets.

@JAChapmanII
Created October 5, 2017 12:46
Show Gist options
  • Save JAChapmanII/21ac3e9775fa06bc4062ea463bcbf548 to your computer and use it in GitHub Desktop.
Save JAChapmanII/21ac3e9775fa06bc4062ea463bcbf548 to your computer and use it in GitHub Desktop.
snipped generated ts
module comet_proto {
export interface Client {
connect(nick:string);
disconnect(nick:string);
message(channel:string, nick:string, message:string);
move(nick:string, nx:number, ny:number, ox:number, oy:number);
nicklist(nicks:string[]);
tile(world:string, wx:number, wy:number, tx:number, ty:number);
warp(nick:string, nx:number, ny:number);
}
export interface Server {
message(where:string, message:string);
move(nx:number, ny:number, ox:number, oy:number);
nick(nick:string);
pass(pass:string);
tile(world:string, wx:number, wy:number, tx:number, ty:number);
version(version:string);
warp(nx:number, ny:number);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment