Git Product home page Git Product logo

treegeneventsys's Introduction

项目名称: TreeGenEventSys

介绍

TreeGenEventSys 是一个灵活且高效的树状泛型事件系统,为游戏开发者提供了一个强大的工具,用于处理复杂的事件流。通过这个系统,开发者可以轻松地创建、管理和分发各种类型的事件,从简单的用户输入到复杂的游戏逻辑事件。

特点

灵活性: TreeGenEventSys 使用树状结构组织事件,使得事件的触发和处理变得灵活而高效。 可扩展性: 开发者可以轻松地扩展系统,添加新的事件类型和处理器,以满足不同的需求。 高性能: TreeGenEventSys 使用高效的算法和数据结构,保证在高负载情况下的性能表现。 易用性: 提供了简洁而直观的 API,使得开发者可以快速上手并且轻松集成到他们的项目中。

使用示例

XEventManager.GetSingleton().AddEventListener
    (
        XEvent.Event_001_Id, 
        ()=>{/*do somthing.*/}, 
        p.Group_Floor001_Id
    );
XEventManager.GetSingleton().AddEventListener<Test>
    (
        XEvent.Event_002_Id, 
        (test)=>{/*do somthing.*/},
        XGroup.Group_Floor001_Id, XGroup.Group_Floor002_Id
    );
可能的大致结构:
 m_EventGroupRoot
 ├─ Event 1 -> Action: onEvent1
 ├─ Event 9 -> Action: onEvent9
 ├─ Event 10 -> Action: onEvent10
 ├─ EventGroup 1
 ├─  └─ Event 3 -> Action: onEvent3
 └─ EventGroup 2
     ├─ Event 2 -> Action: onEvent2
     └─ Event 4 -> Action: onEvent4

贡献

欢迎贡献代码,提交 bug 报告或者提出改进建议。

treegeneventsys's People

Contributors

shoulkun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.