update scene

This commit is contained in:
zhaocy 2022-12-23 10:56:20 +08:00
parent fa07f06abc
commit 3c0c6e69c0
3 changed files with 71 additions and 0 deletions

19
busi/linestory.go Normal file
View File

@ -0,0 +1,19 @@
package busi
import "legu.airobot/lib"
var _ lib.IScene = (*LinestoryScene)(nil)
type LinestoryScene struct {
lib.Action
}
func (ls *LinestoryScene) Info() lib.SceneInfo {
return lib.SceneInfo{
Name: "支线剧情",
}
}
func (ls *LinestoryScene) Run(robot lib.IRobot) error {
return nil
}

35
busi/task.go Normal file
View File

@ -0,0 +1,35 @@
package busi
import (
"legu.airobot/lib"
"legu.airobot/pb"
)
var _ lib.IScene = (*TaskScene)(nil)
type TaskScene struct {
lib.Action
}
func (task *TaskScene) Info() lib.SceneInfo {
return lib.SceneInfo{
Name: "任务",
}
}
func (task *TaskScene) Run(robot lib.IRobot) error {
return nil
}
func (task *TaskScene) TaskList(robot lib.IRobot, tag int32) error{
req := &pb.TaskListReq{
TaskTag: tag,
}
rsp := &pb.TaskListResp{}
if code := robot.SendMsg("task", "list", req, rsp); code != pb.ErrorCode_Success {
return nil
}
return nil
}

17
busi/worldtask.go Normal file
View File

@ -0,0 +1,17 @@
package busi
import "legu.airobot/lib"
type WorldtaskScene struct {
lib.IAction
}
func (w *WorldtaskScene) Info() lib.SceneInfo {
return lib.SceneInfo{
Name: "世界任务",
}
}
func (w *WorldtaskScene) Run(robot lib.IRobot) error {
return nil
}