Skip to content

Commit

Permalink
Merge pull request #52 from wanderer-fly/master
Browse files Browse the repository at this point in the history
Fix some issue
  • Loading branch information
NotArandomGUY authored Dec 8, 2023
2 parents f01b58a + cf4d24e commit 89a846e
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 109 deletions.
2 changes: 1 addition & 1 deletion src/dnsServer/nameserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class NameServer {
private udp: dgram.Socket

private queue: QueryTask[]
private loop: NodeJS.Timer
private loop: NodeJS.Timeout

private ip: string
private port: number
Expand Down
2 changes: 1 addition & 1 deletion src/kcpServer/dummyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Client from './client'
import { PacketHead } from '@/types/kcp'

export default class DummyClient extends Client {
private loop: NodeJS.Timer
private loop: NodeJS.Timeout

constructor(server: KcpServer) {
super(server, 0xFFFFFFFF, null)
Expand Down
2 changes: 1 addition & 1 deletion src/kcpServer/game/manager/staminaManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class StaminaManager extends BaseClass {
private consumeAquaticAmount: number
private curVehicleStamina: number

private timer: NodeJS.Timer
private timer: NodeJS.Timeout

public constructor(entity: Avatar | Vehicle) {
super()
Expand Down
2 changes: 1 addition & 1 deletion src/kcpServer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Socket from './socket'
const logger = new TLogger('KCPSRV', 0xc824ff)

export default class KcpServer extends EventEmitter {
private loop: NodeJS.Timer
private loop: NodeJS.Timeout
private frame: number

server: Server
Expand Down
2 changes: 1 addition & 1 deletion src/kcpServer/socket/worker/kcpWorker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class KcpWorker extends Worker {
conv: number | null

kcp: Kcp | null
timer: NodeJS.Timer | null
timer: NodeJS.Timeout | null
connInfo: ConnectionInfo | null

seqId: number
Expand Down
98 changes: 0 additions & 98 deletions src/types/enum/fightProp.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/types/game/playerInfo.ts

This file was deleted.

0 comments on commit 89a846e

Please sign in to comment.