Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Critical errors with a program in lvl controller after loading saved game
#6
Singleton in normal programming has private constructor, field with element of itself, and a static getter "getInstance()" which returns that only instance.
You'll have a single object with the parameters (as a object, not a static class with values, it theoretically should get saved) and a static method (aka function) to always return that one element.

Though, I have no effing idea how statics work in CBOT... Where is the thing you think the problem is located? ^^'


Messages In This Thread
RE: Critical errors with a program in lvl controller after loading saved game - by hazel - 02-18-2018, 10:19 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)