33 < h2 > Setting up Ecsact</ h2 >
44 < p >
55 Learn about integrations, custom use, and various ways that Ecsact can be
6- implemented
6+ implemented.
77 </ p >
88
99 < h3 id ="unity-integration "> Unity Integration</ h3 >
@@ -42,19 +42,19 @@ <h4 id="unity-ecsact">Unity Integration: Creating the .ecsact File</h4>
4242 main package example;
4343
4444 component Example {{'{'}}
45- int32 example_value;
45+ i32 example_value;
4646 {{'}'}}
4747
4848 system UseExample {{'{'}}
49- required Example;
49+ readwrite Example;
5050 {{'}'}}
5151 </ code > </ pre >
5252
5353 < p >
5454 < span class ="i48 "> info</ span >
5555 Check out the
5656 < a routerLink ="/docs/lang " routerLinkActive ="active "> Language</ a > section
57- to learn more about Ecsact syntax
57+ to learn more about Ecsact syntax.
5858 </ p >
5959 < p >
6060 < b > NOTE:</ b > You may get errors about missing components that you will
@@ -73,7 +73,7 @@ <h4 id="unity-ecsact">Unity Integration: Creating the .ecsact File</h4>
7373 </ p >
7474
7575 < h4 id ="ecsact-code-output "> Ecsact code output</ h4 >
76- < p > When the code is generated in C# and any other language being used</ p >
76+ < p > When the code is generated in C# and any other language being used: </ p >
7777 < ul class ="list-disc list-inside ">
7878 < li > Packages are namespaces</ li >
7979 < li > Components are structs</ li >
@@ -98,14 +98,14 @@ <h4 id="using-unity-ecsact">Using the Unity Integration</h4>
9898 < pre > < code prism language ="csharp " class ="language-csharp "> ecsactRuntimeInstance.core.CreateRegistry()</ code > </ pre >
9999 < p >
100100 Or you can use the default registry in the settings with the default
101- runner. If you're interested, read the next section
101+ runner. If you're interested, read the next section.
102102 </ p >
103103 < p > IMAGE HERE</ p >
104104
105105 < h4 id ="default runner "> Default Runner</ h4 >
106106 < p >
107107 If you want to avoid creating and destroying instances of registries, you
108- can set up the default runner in the Ecsact settings
108+ can set up the default runner in the Ecsact settings.
109109 </ p >
110110 < ol >
111111 < li >
@@ -155,7 +155,7 @@ <h4>Without Using Systems</h4>
155155 </ p >
156156 < p >
157157 First, we'll create an entity using the runtime instance we declared
158- earlier. This returns a unique integer we can use to identify it
158+ earlier. This returns a unique integer we can use to identify it.
159159 </ p >
160160 < pre > < code prism language ="csharp "> entityId = runtime.core.CreateEntity(runner.registryId);</ code > </ pre >
161161
@@ -178,7 +178,7 @@ <h4>Without Using Systems</h4>
178178 < p >
179179 Because we are using the FixedUpdate runner, we'll want to declare the
180180 < code > FixedUpdate()</ code > function in Unity.From there, we'll retrieve
181- the component from the entity we created
181+ the component from the entity we created.
182182 </ p >
183183
184184 < pre > < code prism language ="csharp " class ="language-csharp ">
@@ -192,7 +192,7 @@ <h4>Without Using Systems</h4>
192192 < p >
193193 Now that we have an instance of the component, we can modify its
194194 underlying data. In this case we only have "example_value", we'll increase
195- its value by 1 per FixedUpdate
195+ its value by 1 per FixedUpdate.
196196 </ p >
197197
198198 < pre > < code prism language ="csharp " class ="language-csharp ">
@@ -202,7 +202,7 @@ <h4>Without Using Systems</h4>
202202
203203 < p >
204204 With the value increasing by 1, we want a simple way to see the result of
205- our changes. Let's log it out in the console
205+ our changes. Let's log it out in the console.
206206 </ p >
207207
208208 < pre > < code prism language ="csharp " class ="language-csharp ">
@@ -212,7 +212,7 @@ <h4>Without Using Systems</h4>
212212 < p >
213213 So the value has increased by 1, but how do we make sure the values inside
214214 of the component is changed the next time it's retrieved? We'll call a
215- function to update the component so the changes you make are permanent
215+ function to update the component so the changes you make are permanent.
216216 </ p >
217217 < pre > < code prism language ="csharp " class ="language-csharp ">
218218 // Update the component value on each FixedUpdate
@@ -238,7 +238,7 @@ <h4>Without Using Systems</h4>
238238 < h5 > Next steps</ h5 >
239239 < p >
240240 If you enjoyed using Ecsact, and see the potential it can offer then check
241- out how systems can be used. SOME LINK TO systems tutorial
241+ out how systems can be used. SOME LINK TO systems tutorial.
242242 </ p >
243243 < div > Next Steps Filler</ div >
244244 < div > Next Steps Filler</ div >
0 commit comments