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

🍒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

Microsoft Windows XP Unprofessional (windows logo prototype)

a drawing I did because I was bored😪. But I love how it turned out.😊

My D&D art for my family so far (WIP if you couldn't tell)

Hey you, rookie! Yes, I am talking to you!! Come over here? Relax! Just stick to me and everything will be fine. By the way, my name is James Varhuher, but you can call me Big J. I will bring you up to speed.

Daldos Gameplay

Art made for my friend @ungerbibs . Much love for this <3

What Are You Doing In My Swamp!?

Now spruce forest monsters can vomit forest shields, but Brutal Castle will not stop!

#gamedev #pixelart #indie