FiftyTifty
FiftyTifty
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
I owe you my life
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
but I'm a baby bird with C# atm
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
Yeah there needs to be one, but just one. Passing things around is a mess, because of how events work and other weird stuff. There will be proper ways to go about it
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
Oh aye I've not made everything static. Just the stuff I only need once. The game I'm modding is filled with non-static objects, and I'm doing stuff to them
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
You are a wizard god damn. This is magic
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
Easily over half of my issues are me mixing up types because I got careless or distracted
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
Aye I meant more for me typing out code. Pascal is the same
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
Yeah I noticed the different syntax. For me, I get lost and distracted very easily. So having the variable type at the start of the name helps keep me steady
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
Banging. And I take it we need to create the objects inside it too? So later do tsSettings.Classroom.Teaching = new List<tsListCharactersToTeach>
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
No description
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
Hang on maybe I'm on the verge of figuring this out
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
Yeah that lost me already. I know we can assign basic variables like ints and floats, and access them easily by just doing e.g:int iBaseCost = tsSettings.tsBase
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
No description
43 replies
CC#
Created by FiftyTifty on 4/4/2025 in #help
✅ Creating a single global object that can be accessed by other classes?
No description
43 replies
CC#
Created by FiftyTifty on 3/28/2025 in #help
How to access functions in another class in the same namespace?
Awesome thanks for that
9 replies
CC#
Created by FiftyTifty on 3/28/2025 in #help
How to access functions in another class in the same namespace?
Oh heck it was that simple huh. Yeah it's just going to be a class to put logic checks in.
9 replies