xLua icon indicating copy to clipboard operation
xLua copied to clipboard

genertate code报错问题。 try re-genertate code.

Open cuijingzhen opened this issue 4 years ago • 1 comments

Error:can not find delegate for MobaResDBMeta.ResSkillEffectExport.GetEffectType! try re-genertate code.

我看了有这方面的问题,说是更新xlua版本可以解决,我更新到xlua_v2.1.15 还是有这问题

代码是这样的 不存在 delegate public class ResSkillEffectExport : ResExport { private ResSkillEffect m_ResSkillEffect = null; public void OnInit(object ResSkillEffect_res) { m_ResSkillEffect = (ResSkillEffect)ResSkillEffect_res; }

	public void OnUnInit()
	{
		m_ResSkillEffect = null;
	}

	//效果类型
	public sbyte GetEffectType()
	{
		return m_ResSkillEffect.chEffectType;
	}

}

cuijingzhen avatar May 25 '21 09:05 cuijingzhen

你可以参考一下这个issues, https://github.com/Tencent/xLua/issues/933

rhy2020 avatar Nov 11 '21 13:11 rhy2020