Game
Unity API
7 years ago

Released v2.4.0 - The "Big Refactoring Update"


So much time has passed since the last update, but I’ve finally found the time to work on this lovely package :D

But before I get into details, I should first warn you:

This update contains breaking changes!

I refactored basically all files. For most of them it was just code formatting and minor adjustment, like explicit visibility modifiers and naming of private or local variables.
But I’ve also changed the naming scheme to classic C# naming (CamelCase) and I also renamed the two Manager classes.

So you may be thinking something like this:

You did what?! Why the hell would you do such things?

Well, let’s first talk about the manager classes. Up to now there were two classes called Manager, one inside the API namespace and one in the UI namespace. This was of course semantically correct, but of course it was also a bit inconvenient and also a bit confusing for newbies. One nasty problem was that you had to use the fully qualified name whenever you wanted to use both Manager classes from within the same class, so you had to write GameJolt.API.Manager and GameJolt.UI.Manager. Furthermore Manager is a really ambiguous term which might probably already be used by some user defined classes. Therefore I’ve decided to rename them and I changed their names to GameJoltAPI and GameJoltUI.

Yes…I know now the fully qualified name looks very ugly and redundant (GameJolt.API.GameJoltAPI), but due to a lack of a better name, I guess this name is good enough :D, at least now it is obvious what these classes are used to.

The other big change is the naming scheme. Up to now the package was mostly using the Unity naming scheme, which uses UpperCamelCase for methods, but lowerCamelCase for fields. This is of course not the naming scheme recommended by Microsoft. Since I’m a C# developer and because I would like this package to be just a “normal” C# library, I’ve decided to use the recommended C# naming convention.

So I hope you see it just like me and prefer a clear and consistent naming convention :D

Change Log

Add

  • Added LogHelper class and LogLevel setting. All log messages with a level below the provided one are discarded. (see issue #2)

Changed

  • Renamed Manager classes to GameJoltAPI and GameJoltUI (see issue #21)

    • :warning: This is a breaking change! If you’re migrating from an older version, please have a look at the migration page.

  • “Mega Refactoring” - refactored nearly all files (see issue #20)

    • applied consistent style (code formatting)

    • corrected namespaces

    • fixed naming scheme (now consistently using C# CamelCase)

    • used explicit visibility modifiers

    • adjusted visibility

    • :warning: This is possibly a breaking change, because it changes the naming scheme

Fixed

  • issue #2: Debug option for the API

  • issue #19: Got rid of all Resources.Load calls. Instead those assets are now directly linked via the Manager prefab.

  • issue #20: huge refactoring

  • issue #21: renamed Manager classes



3 comments

Loading...

Next up

This Satuday we invite to watch another #speedpainting of our artist Daniel Faiad.

How great is this scene of #Pecaminosa?

#ScreenShotSaturday | #IndieDev | #DigitalArt

We are under attack!

Shoobies leave a sticky trail of mucus in their wake, which can impede movement for any creature that steps in it.

Here's a peaceful little forest scene for this #screenshotsaturday, from the beginning of the game.

🍒Did you like the game? A demo is available for free on Steam.

✌️ Thanks for playing IndieGameiacs!

⚙️ Free Demo: http://bit.ly/UniDuni

📺 Full Video: https://youtu.be/5qEbVXg7GaQ

#steam #uniduni #clops #screenshotsaturday

Finished a project I've been working on over the last few days!

Modeled and textured in Blender.

#3dart #lowpoly #npbr #fantasy #hut

Heya! I wanted to show some gameplay progress i made so far. I hope you like it ^^

What you all think

The Darkside Detective: A Fumble in the Dark is out TODAY! 🖱️Advanced pointing, clicking action 🖨️Very funny words! Loads of them! 👻6 sarcastic, spectral cases to solve