Conversation

so AGK is an ECS engine right... but i can't call the S part "system" because there's alreaddy java.lang.System and i think it would get too confusing. what should i call them,. the things that do things instead of the things that just are things (data-style)

1
0
1

maybe one of these?

0% Actor
0% Runner
0% Executor
0% Handler
0% Behavior
0% secret third option (reply)
0
1
1

it is decided so: the Systems in my ECS shall be named "". I am confident that the JVM will be absolutely fine with this name and will not cause any issues neofox_floof

1
1
1
@vivi a type so well integrated that the engine just assumes every type is a system
0
0
1
@vivi neofox_think

i dont know much about kotlin so i'm Extremely out of my depth here but in AGK, do systems carry additional capabilities outside "take a list of entities and Do A Thing with them?"
1
0
0

@rowan disregarding kotlin entirely, I'm subscribing to a three-stage System ECS pragma, that is, that each System has a before() -> Boolean, onEach(Entity) -> Unit, after() -> Unit stage flow (Unit is essentially void in Kotlin), where before returning false will suppress the other two stages (so e.g. if there is a check to see if the game is paused, that system can short and cancel itself out before it does Things). So beyond the "do A Thing to each entity" of the onEach stage, Systems can also run a global process in their before and after stage as well

In a more broad overview sense, each System will just Do A Thing to each entity; queried component data in, modified component data out, on each Entity passed to onEach.

1
0
1

@vivi a ok that makes sense! thank you for explaining neofox_snuggle

so the three-stage System is responsible for

  1. before: initialization/checking its run conditions
  2. onEach: Do A thing
  3. after: cleanup / “finally” (in the sense of try / catch / finally) type things?

i think i like “Behavior” or “Runner” for that, but i also know Nothing neofox_floof

1
0
0

@rowan i actually did choose Behavior for the name in the meantime anyways neofox_melt_blep neofox_snuggle

1
0
1

@rowan also yes those are the very yes correct stage descriptions i should have said neofox_confused

1
0
1
@vivi a ok! 💜 thank you :3 i'm big dumb and just wanted to make sure i understood before giving my very well informed opinion
1
0
1