Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some issue #52

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.