-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve cinterface #2366
base: development
Are you sure you want to change the base?
Improve cinterface #2366
Conversation
The field "identity" previously clashed with the method "identity"
This also fixes a few issues related to type conversions before data is sent to the engine function. Squash
mNSEntry can be null if there is no TorqueScript defintion, but there could still be a result from an externally defined source. ´ Furthermore fixes an issue where StringStackConsoleWrapper would die before the value was read.
Since this is hard-to-test without actually using the C-Interface for something, this project might be useful: https://github.com/lukaspj/T3D.Net-BaseGame It has a pre-compiled version of this branch included already, and is set up with a SpectatorGameplay module written (mostly) in C#. Edit: Also Travis CI failed on clang on the last commit, but I do not believe this to be related to code, rather it seems to be an odd hiccup. |
CInterface improvements
Breaking changes
Name-clash fixes means that some members have been renamed, possibly breaking any scripts using these members.
AFX Members:
afxPhraseEffectData::addEffect
-> pushEffectafxMagicSpellData::addCastingEffect
-> pushCastingEffectafxMagicSpellData::addLaunchEffect
-> pushLaunchEffectafxMagicSpellData::addDeliveryEffect
-> pushDeliveryEffectafxMagicSpellData::addImpactEffect
-> pushImpactEffectafxEffectronData::addEffect
-> pushEffectafxEffectGroupData::addEffect
-> pushEffectOther Members:
GuiSpeedometerHud::mColor
-> mNeedleColor (Maybe we could just use the parent class' mColor here instead?)TriggerComponent::onEnterViewCmd
->onEnterViewTriggerComponent::onExitViewCmd
->onExitViewTriggerComponent::onUpdateInViewCmd
->onUpdateInViewTriggerComponent::onUpdateOutOfViewCmd
->onUpdateOutOfViewPostEffect::isEnabled
-> enabledGuiFilterCtrl::identity
-> resetFilteringSFXDescription::reverbModTime
-> reverbModDepth (dunno if it pointed to time or depth before, now there is one for each)GuiScriptNotifyCtrl::onChildAdded
-> notifyOnChildAddedGuiScriptNotifyCtrl::onChildRemoved
-> notifyOnChildRemovedGuiScriptNotifyCtrl::onChildResized
-> notifyOnChildResizedGuiScriptNotifyCtrl::onParentResized
-> notifyOnParentResizedGuiScriptNotifyCtrl::onResize
-> notifyOnResizeGuiScriptNotifyCtrl::onLoseFirstResponder
-> notifyOnLoseFirstResponderGuiScriptNotifyCtrl::onGainFirstResponder
-> notifyOnGainFirstResponderOther (possibly breaking) changes
I also changed the default value of
UndoManager::pushCompound
from """" to "". Would like a review of whether this is valid or a misunderstanding on my part.