Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
afreytes 🇵🇷 ☭
@afreytes@mastodon.gamedev.place  ·  activity timestamp 3 months ago

So I thought that if I did...

extends Node
class_name MyClass #as a kind of namespace

extends MyClass
class_name SubClass
const MyDir = {MyKey=MyVal}

I would be able to assign MyVal like...

var SomeVal = MyClass.SubClass.MyDir.MyKey

that doesn't work 🤔 but this does 😅

var SomeVal = SubClass.MyDir.MyKey

I wanted the class > subclass hierarchy but for ocd reasons but maybe I should just not and just name the subclass namespace_subclass

Naming things is hard.

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login