I forget, does C# have implicit variable casting?
Quote from: N E O on April 22, 2013, 03:34:29 pmI forget, does C# have implicit variable casting?If the type were 'var' (like in JS) it is weakly typed and will implicitly cast between strings, integers, etc.
var foo = "maggie ate it";
var dict = new Dictionary<string, ReallyLongGenericName<SomeType, SomeOtherType> >();
Huh? auto in C++ merely specifies a local variable, and is the default if not specified anyway. Unless they changed the meaning in C++11?
Yes, I mean in C++11. Where it went from meaning nothing to meaning anything at all.Not exactly an improvement.
Edit: Nevermind, I figured it out. It was trying to read a property from CurrentGame, but if no project is loaded, CurrentGame is null. It's fixed now. I also fixed the references so the most recently-built copy of the plugins is used all the time, without having to manually add the DLLs to the VS project tree. Should make debugging plugins easier now, as well.
Edit 2: Really weird bug in the script editor, I don't even know where to begin looking for this one: With the new script plugin, Ctrl+V (or Edit->Paste) seems to paste the text into a new Untitled file instead of into the current script. Really strange behavior. The only way I was able to paste was to right-click the Scintilla control itself.
One thing about the way you are copying over plugins: Good idea, but that relies on plugins having to end with the word 'Plugin'. For now I'm doing this, and I guess for the initial plugins that come with the editor this is fine. Plugin's don't have to end with the word 'Plugin', but that's just a minor point.
Edit: Bug I found: The Save button on the toolbar is permanently grayed out ever since you implemented the script plugin. Not a big deal as File->Save and Ctrl+S still work, but might confuse new users. Oh, and I discovered an old Thumbs.db in the repo (only found it because Windows had changed my copy and git wanted to commit it even though it was in .gitignore, stupid git bug), but it'd be ridiculous to create a pull request just for something so trivial, so I guess you can delete it yourself if you feel like it.
Oh, one more thing: I tried to move the audio player to a plugin myself using the script editor as a basis, but got confused as hell by the plugin API. I couldn't figure out what was part of the plugin architecture and what was part of the script editor itself. Any chance you could mock up some documentation for the plugin API?