Skip to content

Commit

Permalink
move constants (ResourcesControl related)
Browse files Browse the repository at this point in the history
  • Loading branch information
Happy2018new committed Mar 18, 2024
1 parent b1b0e0c commit 412adf3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 17 additions & 0 deletions game_control/resources_control/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@ package ResourcesControl

import "time"

// 描述命令请求的原始类型
const (
// 标准命令
CommandTypeStandard = "packet.CommandRequest"
// 网易魔法指令
CommandTypeAICommand = "packet.PyRpc/C2SModEvent/Minecraft/aiCommand/ExecuteCommandEvent"
)

// 描述与命令请求相关的信号
const (
// 魔法指令 的命令请求在收到
// 标准响应体后会使用的信号
SignalRespondReceived = uint8(iota)
// 命令响应体可以被加载时会使用的信号
SignalCouldLoadRespond
)

// 描述请求的最长截止时间
const (
// 描述命令请求的最长截止时间。
Expand Down
17 changes: 0 additions & 17 deletions game_control/resources_control/resources_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,6 @@ type Resources struct {

// ------------------------- commandRequestWithResponce -------------------------

// 描述命令请求的原始类型
const (
// 标准命令
CommandTypeStandard = "packet.CommandRequest"
// 网易魔法指令
CommandTypeAICommand = "packet.PyRpc/C2SModEvent/Minecraft/aiCommand/ExecuteCommandEvent"
)

// 描述与命令请求相关的信号
const (
// 魔法指令 的命令请求在收到
// 标准响应体后会使用的信号
SignalRespondReceived = uint8(iota)
// 命令响应体可以被加载时会使用的信号
SignalCouldLoadRespond
)

/*
存放命令请求及结果
Expand Down

0 comments on commit 412adf3

Please sign in to comment.