|
发表于 2023-2-19 19:10:19
|
查看: 5605 |
回复: 1
--local View = require( framework.PACKAGE_NAME .. '/core/View')
-- framework.PACKAGE_NAME .. '/core/View'
myprint("myprint="..tostring(myprint))
local View = require( framework.PACKAGE_NAME .. '/core/View')
myprint('type(View)'..type(View))
myprint('View.notifyObservers'..tostring(View.notifyObservers))
myprint("+*******+"..framework.PACKAGE_NAME .. '/core/View') -- frameword/core/View
myprint("global.Facade.view.notifyObservers="..tostring(global.Facade.view.notifyObservers))
myprint("okglobal.Facade:notifyObservers="..tostring(global.Facade.notifyObservers))
function mygotoPos(posx,posy)
-- auto move 自动移动
myprint("mygotoPos End+++++++++++++++++++++")
local PlayerProperty = global.Facade:retrieveProxy( global.ProxyTable.PlayerProperty )
local job = PlayerProperty:GetRoleJob()
local mapProxy = global.Facade:retrieveProxy(global.ProxyTable.Map)
local mapID = mapProxy:GetMapID()
local movePos =
{
mapID = mapID,
x = posx,
y = posy,
type = global.MMO.INPUT_MOVE_TYPE_OTHER,
range = 1 or 2,
robot = true,
}
--[[
local movePos =
{
mapID = mapID,
x = x+2,
y = y+10,
type = global.MMO.INPUT_MOVE_TYPE_OTHER,
range = self.autoFightDis[job] or 2,
robot = true,
}
global.Facade:sendNotification(global.NoticeTable.InputMove, movePos)
]]
global.Facade:sendNotification(global.NoticeTable.InputMove, movePos)
myprint("mygotoPos End+++++++++++++++++++++2")
end
myprint(" global.monsterManager.mMonstersInCurrViewField"..tostring( global.monsterManager.mMonstersInCurrViewField))
mygotoPos(300,202)
myprint("ok++++++++++++++++++++2")
|
游戏安全课程 学员办理咨询联系QQ150330575 手机 139 9636 2600 免费课程 在 www.bilibili.com 搜 郁金香灬老师
|
|