refactor: 移除 game 包中不合理的 Actor、Position2D、Position2DSet、Position3D 接口

This commit is contained in:
kercylan98 2023-12-22 11:00:06 +08:00
parent 0a22f6d503
commit 2b13b19272
4 changed files with 0 additions and 31 deletions

View File

@ -1,13 +0,0 @@
package game
// Actor 表示游戏中的可以放到游戏场景中的游戏对象的基本类型
// - 需要注意 Actor 不等于 Player
// - 在 Minotaur 中,每个网络连接可以表示一个 Player而每个玩家可以拥有多个 Actor
// - Actor 并非 Player 独有,场景中也可包含各类无主的 Actor
type Actor interface {
// SetGuid 设置对象的唯一标识符
// - 需要注意的是该函数不应该主动执行,否则可能产生意想不到的情况
SetGuid(guid int64)
// GetGuid 获取对象的唯一标识符
GetGuid() int64
}

View File

@ -1,7 +0,0 @@
package game
// Position2D 2D位置接口定义
type Position2D interface {
// GetPosition 获取对象位置
GetPosition() (x, y float64)
}

View File

@ -1,6 +0,0 @@
package game
// Position2DSet 2D位置设置接口定义
type Position2DSet interface {
SetPosition(x, y float64)
}

View File

@ -1,5 +0,0 @@
package game
type Position3D interface {
GetPosition() (x, y, z float64)
}