<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="312123" data-post-id="312123">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="iacobson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/iacobson/120/2974_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  iacobson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/trentjones21" rel="nofollow">@trentjones21</a> Your question makes a lot of sense. There were other users before asking about the same thing but in a different context. For example the last question in this post: <a href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/34" class="inline-onebox" rel="nofollow">ECSpanse - an Entity Component System framework for Elixir - #34 by iacobson</a></p>
<p>As I replied also there, it was a deliberate decision I took. I totally agree that spawning a new server for each <strong>room</strong> or <strong>session</strong> etc., feels more “Elixiry”.</p>
<p>However, the library needs to interact with a frontend framework (eg. LiveView, LiveBook) that is not aware of the internal context of the Ecspanse server. That would mean, for every query run outside of the ECS context, you would need to pass a map or a token that would identify the Ecspanse server and the corresponding ETS tables where the data is stored. So the query would need what <strong>room</strong> to run the query for.</p>
<p>For example, in a LiveView Component, instead of:<br>
<code>Ecspanse.Query.fetch_component(entity, Demo.Components.Energy)</code><br>
you would have:<br>
<code>Ecspanse.Query.fetch_component(some_token, entity, Demo.Components.Energy)</code></p>
<p>This gets quite annoying, especially when you do not need this feature. So the tradeoff was to hardcode the Server and all ETS names and allow a single ETS “World” per instance.</p>
<p>The other reason is that sharing data between those servers is not trivial.</p>
<h3><a name="p-312123-the-alternative-1" class="anchor" href="#p-312123-the-alternative-1" aria-label="Heading link" rel="nofollow"></a>The alternative</h3>
<p>That being said, the current alternative is to create <strong>room</strong> entities and assign the players as Children to the rooms.</p>
<p>The you can easily query all the players in a room. For example:</p>
<h5><a name="p-312123-if-only-player-entities-are-children-of-the-room-2" class="anchor" href="#p-312123-if-only-player-entities-are-children-of-the-room-2" aria-label="Heading link" rel="nofollow"></a>If only player entities are children of the room</h5>
<pre data-code-wrap="elixir"><code class="lang-elixir">player_entities =  Ecspanse.Query.list_children(room_entity)
</code></pre>
<h5><a name="p-312123-if-the-room-has-also-other-type-of-children-3" class="anchor" href="#p-312123-if-the-room-has-also-other-type-of-children-3" aria-label="Heading link" rel="nofollow"></a>If the room has also other type of children</h5>
<pre data-code-wrap="elixir"><code class="lang-elixir">player_entities = Ecspanse.Query.select({Ecspanse.Entity}, 
  with: [MyGame.Comp.Player],
  for_children_of: [room_entity])
|&gt; Ecspanse.Query.stream()
|&gt; Enum.map( fn {player_entity} -&gt; player_entity end )
</code></pre>
<p>Hope this answers your question, even if not ideal for your use case.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="312123" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/42">Post #41</a>
	                </div>
	            </div>
              <div id="likers-container-312123" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="312123"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #41"></div>
  </section>
</div>
    <div class="postbit" id="319864" data-post-id="319864">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kirandesimone" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kirandesimone/120/33880_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kirandesimone
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>How do you modify the state of the Ecspanse server through a liveview? I see in the examples for enabling a system in the setup callback, you can add the option of “run_in_state”. I’m not sure of how to modify the state of the server so that the system only runs when in, let’s say, the “loading” state.</p>
<p>For example:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir"> @impl Ecspanse
  def setup(data) do
    data
    |&gt; Ecspanse.add_system_set({__MODULE__, :onload_sync_systems}, [run_in_state: :loading])
    |&gt; Ecspanse.add_system_set({__MODULE__, :play_sync_systems}, [run_in_state: :play])
  end

  def onload_sync_systems(data) do
    data
    |&gt; Ecspanse.add_frame_start_system(Systems.SpawnShip)
  end

  def play_sync_systems(data) do
    data
    |&gt; Ecspanse.add_system(Systems.MoveShip)
  end
</code></pre>
<p>How would I change the state to “:loading” or “:play”?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="319864" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/43">Post #42</a>
	                </div>
	            </div>
              <div id="likers-container-319864" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="319864"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #42"></div>
  </section>
</div>
    <div class="postbit" id="319941" data-post-id="319941">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="iacobson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/iacobson/120/2974_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  iacobson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The generic way to modify anything (components or resources) from outside Ecspanse (eg. Liveview) is with <a href="https://hexdocs.pm/ecspanse/Ecspanse.Event.html" rel="noopener nofollow ugc">events</a>.</p>
<p>Some example in the tutorial: <a href="https://hexdocs.pm/ecspanse/tutorial.html#the-move-event" class="inline-onebox" rel="noopener nofollow ugc">Tutorial — ECSpanse v0.10.1</a></p>
<p>In your specific case, you can create an event (eg UpdateStateEvent) and a system that subscribes to this event (eg UpdateStateSystem).</p>
<p>The global state we speak about is just <a href="https://hexdocs.pm/ecspanse/Ecspanse.Resource.State.html" rel="noopener nofollow ugc">an Ecspanse predefined Resource</a>.</p>
<p>So in the system you can retrieve the State Resource and update it like so:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">{:ok, state_resource} = Ecspanse.Query.fetch_resource(Ecspanse.Resource.State)
Ecspanse.Command.update_resource!(state_resource, value: :loading)
</code></pre>
<h3><a name="p-319941-additional-info-useful-for-anybody-using-the-library-1" class="anchor" href="#p-319941-additional-info-useful-for-anybody-using-the-library-1" aria-label="Heading link" rel="nofollow"></a>Additional info useful for anybody using the library</h3>
<p>While the above solution would work fine now, I am planning a complete re-write of the State resource that will introduce some breaking changes.<br>
Now there is just this <code>Ecspanse.Resource.State</code> global state, and while useful, it is quite inflexible.<br>
I plan to:</p>
<ul>
<li>replace it with a generic <code>State</code> template Resource, so we can then create more states.</li>
<li>add special commands to create and update the state resources.</li>
<li><code>on_enter_state</code> and <code>on_exit_state</code> systems which will be automatically called on state change.</li>
<li>a way to initialize state and resources in the setup function</li>
</ul>
<p>Please consider this is in a very early concept phase, so it will take some time until release.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="319941" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/44">Post #43</a>
	                </div>
	            </div>
              <div id="likers-container-319941" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="319941"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #43"></div>
  </section>
</div>
    <div class="postbit" id="319945" data-post-id="319945">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="kirandesimone" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kirandesimone/120/33880_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  kirandesimone
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Great thank you! I’ll give that try</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="319945" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/45">Post #44</a>
	                </div>
	            </div>
              <div id="likers-container-319945" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="319945"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #44"></div>
  </section>
</div>
    <div class="postbit" id="322775" data-post-id="322775">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="iacobson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/iacobson/120/2974_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  iacobson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>New release <a href="https://github.com/iacobson/ecspanse/releases/tag/v0.9.0" rel="noopener nofollow ugc">v0.9.0</a></p>
<p>The main goal of this release is to introduce a flexible way to create global state machines, replacing the existing <code>Resource.State</code> which is very inflexible.</p>
<h3><a name="p-322775-breaking-1" class="anchor" href="#p-322775-breaking-1" aria-label="Heading link" rel="nofollow"></a>Breaking</h3>
<ul>
<li>removes <code>Ecspanse.Resource.State</code> in favor of <code>Ecspanse.State</code> functionality. Please check the <a href="https://hexdocs.pm/ecspanse/changelog.html#breaking" rel="noopener nofollow ugc">changelog</a> for a quick guide on how to replace the old state and use the new functionalities.</li>
</ul>
<h3><a name="p-322775-features-2" class="anchor" href="#p-322775-features-2" aria-label="Heading link" rel="nofollow"></a>Features</h3>
<ul>
<li>allows inserting resources at startup with <code>Ecspanse.insert_resource/2</code></li>
<li>allows state init at startup with <code>Ecspanse.init_state/2</code></li>
<li>introduces <code>Ecspanse.State</code> state functionalities. See the breaking changes for more details.</li>
<li>new library built-in <code>Ecspanse.Event.StateTransition</code> event</li>
<li>new library built-in <code>Ecspanse.Component.Name</code> component</li>
</ul>
<h3><a name="p-322775-improvements-3" class="anchor" href="#p-322775-improvements-3" aria-label="Heading link" rel="nofollow"></a>Improvements</h3>
<ul>
<li><code>Ecspanse.Query.entity_exists?/1</code> to check if an entity still exists</li>
<li><code>Ecspanse.Command.add_and_fetch_component!/2</code> wrapper to return a component after creation</li>
<li><code>Ecspanse.Command.update_and_fetch_component!/2</code> wrapper to return a component after update</li>
</ul> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="322775" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/46">Post #45</a>
	                </div>
	            </div>
              <div id="likers-container-322775" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="322775"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #45"></div>
  </section>
</div>
    <div class="postbit" id="322792" data-post-id="322792">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="stevensonmt" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/stevensonmt/120/20503_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  stevensonmt
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m really looking forward to making something with this library. The documentation is so good.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="322792" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/47">Post #46</a>
	                </div>
	            </div>
              <div id="likers-container-322792" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="322792"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #46"></div>
  </section>
</div>
    <div class="postbit" id="340602" data-post-id="340602">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="stryderjzw" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/stryderjzw/120/38601_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  stryderjzw
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi! Just want to thank you for the library.</p>
<p>I’m learning Elixir/Phoenix and decided to build a sports simuation game using ECSpanse. It’s been fun so far!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="340602" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/48">Post #47</a>
	                </div>
	            </div>
              <div id="likers-container-340602" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="340602"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #47"></div>
  </section>
</div>
    <div class="postbit" id="340656" data-post-id="340656">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="iacobson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/iacobson/120/2974_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  iacobson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thanks so much for trying Ecspanse. And have fun learning Elixir!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="340656" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/49">Post #48</a>
	                </div>
	            </div>
              <div id="likers-container-340656" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="340656"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #48"></div>
  </section>
</div>
    <div class="postbit" id="340921" data-post-id="340921">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="iacobson" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/iacobson/120/2974_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  iacobson
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>New release <a href="https://github.com/iacobson/ecspanse/releases/tag/v0.10.0" rel="noopener nofollow ugc">v0.10.0</a></p>
<p>Introduces the introduces <a href="https://hexdocs.pm/ecspanse/Ecspanse.Snapshot.html" rel="noopener nofollow ugc"><code>Ecspanse.Snapshot</code></a> module to enable custom save and load solutions.</p>
<p>Check the <a href="https://hexdocs.pm/ecspanse/save_load.html" rel="noopener nofollow ugc">new guide</a> for some implementation ideas. And of course, let me know what you think</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="340921" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/50">Post #49</a>
	                </div>
	            </div>
              <div id="likers-container-340921" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="340921"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #49"></div>
  </section>
</div>
    <div class="postbit" id="341756" data-post-id="341756">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="stryderjzw" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/stryderjzw/120/38601_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  stryderjzw
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hmm, maybe something isn’t clicking…</p>
<p>I have a Game Entity where I use a GameID Component to store the game_id.</p>
<p>How do I use Ecspanse.Query.select to select a game for a particular game_id?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="341756" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/ecspanse-an-entity-component-system-framework-for-elixir/57650/51">Post #50</a>
	                </div>
	            </div>
              <div id="likers-container-341756" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="341756"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #50"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/57650/load_more?page=6">Load more posts (2 remaining)</a>
</div></template></turbo-stream>