You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
838 B
838 B
-
事件系统设计
现任事件系统实际思路为在项目中添加一部分基于C#
的DSL脚本,在脚本中使用封装过的人性化的API对游戏接口调用
类架构
- Core
- EventSystemBehavior
- 事件系统的行为类,将触发器等功能添加到这里,并通过反射获取所有的脚本类的实例
- EventSystemScript
- 所有脚本的父类,在其中添加大部分可用的接口,方便子类直接使用
- EventSystemBehavior
- Scripts
- 策划自行编写脚本实现自己需要的功能
模板
参考EventSystem.Scripts.贵族社交.闲暇小聚
这个类
参考
游戏内所有事件位于TaleWorlds.CampaignSystem.CampaignEvents
类中