mocha-engine / mocha

Mocha: A work-in-progress 3D game engine
GNU Lesser General Public License v3.0
53 stars 7 forks source link

Large-scale engine refactor #58

Closed xezno closed 1 year ago

xezno commented 1 year ago

Description

This pull request implements a lot of large-scale engine changes that are part of #53, but does not include any network-specific code.

API Changes

Callbacks

Managed -> Native Callbacks To register a callback that can be called from C++:

var callbackId = CallbackDispatcher.RegisterCallback( () => Log.Trace( "Hello" ) );
// Then pass callbackId to a native method that accepts a callback