This pull request implements a lot of large-scale engine changes that are part of #53, but does not include any network-specific code.
Mocha now compiles down to a library (Mocha.Host.lib). A root is then created by either Mocha or MochaDedicatedServer
Bindings are no longer global and are now bound to a Root instance. This is currently accessed as Global.NativeEngine (or just NativeEngine in most cases)
Native globals are now stored inside a Global namespace
Re-wrote the base walk controller to use Jolt physics for collision and clipping
Added C# -> C++ callbacks (#44)
Added integer console variables
HandleMap now has functions for Remove, RemoveAt, and Find
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
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.
Global.NativeEngine
(or justNativeEngine
in most cases)Global
namespaceHandleMap
now has functions forRemove
,RemoveAt
, andFind
API Changes
Callbacks
Managed -> Native Callbacks To register a callback that can be called from C++: