This page has been translated automatically.
编程
Fundamentals
Setting Up Development Environment
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

GameEvent类

警告
Game Framework is deprecated and no longer supported. We can't guarantee the stable work of the framework.

指事件的调用类。

GameEvent类的实现存放在路径下文件data/framework/game/event_system.h中。

GameEvent Class

成员


GameEvent()

构造函数。 用来创建带有指定名称的新GameEvent类的实例。

参数

    getName()

    其作用是返回事件名称。

    isEnabled()

    其作用是返回一个可用来指明事件是否被启用或禁用的值。

    setEnabled()

    其作用是开关事件的启用或禁用。

    参数

      subscribe()

      其作用是将回调订阅给事件。

      参数

        unsubscribe()

        其作用是从事件取消订阅回调。

        参数

          run()

          其作用是运行所有订阅者的事件调用。

          run()

          其作用是运行指定实体的事件调用。

          参数

            最新更新: 2017-07-03
            Build: ()