Skip to content

Commit

Permalink
docs(general): Removed static_get and static_set from LTS manual; als…
Browse files Browse the repository at this point in the history
…o removed JSON guide as it was broken

#183
  • Loading branch information
gurpreetsinghmatharoo committed Oct 17, 2024
1 parent d576327 commit a6c210a
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 650 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ <h1><span data-field="title" data-format="default">Additional Information</span>
<li><a href="Guide_To_Using_Shaders.htm">Guide To Using Shaders</a></li>
<li><a href="Guide_To_Primitives_And_Vertex_Building.htm">Guide To Primitives And Vertex Building</a></li>
<li><a href="Guide_To_Using_Blendmodes.htm">Guide To Using Blendmodes</a></li>
<li><a data-xref="{title}" href="Guide_To_Using_JSON.htm">Guide To Using JSON</a></li>
<li><a data-xref="{title}" href="Project_Format.htm">Project Format</a></li>
<li><a href="Compatibility_Functions.htm">Compatibility Functions</a></li>
<li><a href="Compatibility_Scripts.htm">Compatibility Scripts</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ <h2>SURFACES AND ALPHA</h2>
<div class="buttons">
<div class="clear">
<div style="float:left">Back: <a href="Additional_Information.htm">Additional Information</a></div>
<div style="float:right">Next: <a data-xref="{title}" href="Guide_To_Using_JSON.htm">Guide To Using JSON</a></div>
<div style="float:right">Next: <a data-xref="{title}" href="Project_Format.htm">Project Format</a></div>
</div>
</div>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2023 All Rights Reserved</span></h5>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5>
</div>
<!-- KEYWORDS
Blendmodes
Expand Down
273 changes: 0 additions & 273 deletions Manual/contents/Additional_Information/Guide_To_Using_JSON.htm

This file was deleted.

1 change: 0 additions & 1 deletion Manual/contents/Content.htm
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ <h1>Scripting Reference</h1>
<li><a href="Additional_Information/Guide_To_Using_Shaders.htm">Guide To Using Shaders</a></li>
<li><a href="Additional_Information/Guide_To_Primitives_And_Vertex_Building.htm">Guide To Primitives And Vertex Building</a></li>
<li><a data-xref="{title}" href="Additional_Information/Guide_To_Using_Blendmodes.htm">Guide To Using Blendmodes</a></li>
<li><a data-xref="{title}" href="Additional_Information/Guide_To_Using_JSON.htm">Guide To Using JSON</a></li>
<li><a data-xref="{title}" href="Additional_Information/Project_Format.htm">Project Format</a></li>
<li><a href="Additional_Information/Compatibility_Functions.htm">Compatibility Functions</a></li>
<li><a href="Additional_Information/Compatibility_Scripts.htm">Compatibility Scripts</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ <h2>Accessing Static Variables</h2>
</p>
<p>All three <span class="inline2">show_debug_message()</span> calls above would print the same value, as they are reading the exact same variable.</p>
<p>Just like with regular functions, you can&#39;t access a static variable from a constructor if that constructor was never called.</p>
<h3>Static Struct</h3>
<p>All static variables belonging to a function are stored in a struct, which you can retrieve using <span class="inline3_func"><a data-xref="{title}" href="../../GML_Reference/Variable_Functions/static_get.htm">static_get</a></span>. You can modify the static struct of a function to change the static variables it has using <span class="inline3_func"><a data-xref="{title}" href="../../GML_Reference/Variable_Functions/static_set.htm">static_set</a></span>, however this function is only provided for use with structs for deserialisation purposes.</p>
<p>Static structs have most of their use with structs created from constructors. See: <a data-xref="{title}" href="../Structs/Static_Structs.htm">Static Struct</a></p>
<h2>Static Methods</h2>
<p>You can also use the <span class="inline">static</span> keyword within a function to create a <strong>static function</strong>, which - like with variables - simply means that the function will only be defined once, which is the first time the function is called, for example:</p>
<p class="code">function(_x, _y) Vector2 constructor<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Struct Forbidden Variables</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<link rel="stylesheet" href="../../assets/css/default.css" type="text/css" />
<script src="../../assets/scripts/main_script.js"></script>
<meta name="rh-authors" content="Mark Alexander" />
Expand Down Expand Up @@ -121,10 +121,10 @@ <h1><span data-field="title" data-format="default">Struct Forbidden Variables</s
<div class="buttons">
<div class="clear">
<div style="float:left">Back: <a href="Structs.htm">Structs</a></div>
<div style="float:right">Next: <a data-xref="{title}" href="Structs/Static_Structs.htm">Static Struct</a></div>
<div style="float:right">Next: <a data-xref="{title}" href="Commenting_Code.htm">Commenting Code</a></div>
</div>
</div>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2023 All Rights Reserved</span></h5>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5>
</div>
<!-- KEYWORDS
Struct Forbidden Variables
Expand Down
8 changes: 2 additions & 6 deletions Manual/contents/GameMaker_Language/GML_Overview/Structs.htm
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,6 @@ <h2>Inheritance</h2>
<li><a href="Language_Features/new.htm"><span class="inline">new</span></a></li>
<li><span class="inline"><a href="Language_Features/delete.htm"><span class="inline">delete</span></a> </span></li>
</ul>
<h3>Checking Constructor Inheritance</h3>
<p>You can use <span class="inline3_func"><a data-xref="{title}" href="../GML_Reference/Variable_Functions/is_instanceof.htm">is_instanceof</a></span> to check if a struct belongs to the given constructor, or has the constructor as a parent constructor.</p>
<div data-conref="../../assets/snippets/is_instanceof_example.hts"> </div>
<p>This functionality makes use of &quot;static structs&quot;. See: <a data-xref="{title}" href="Structs/Static_Structs.htm">Static Struct</a></p>
<h2 id="h">String Output</h2>
<p>One final thing to mention about structs is that you can change what is output to the console from them for debugging. By default, calling the function <span class="inline3_func"><a data-xref="{title}" href="../GML_Reference/Debugging/show_debug_message.htm">show_debug_message</a></span> on a struct will output the contents of the struct (as shown above). However, it&#39;s possible to customise this message by adding a specifically named method to the struct called <span class="inline"><a id="A"></a>toString</span>:</p>
<p class="code">mystruct =<br />
Expand Down Expand Up @@ -276,10 +272,10 @@ <h2>Struct Functions</h2>
<div class="buttons">
<div class="clear">
<div style="float:left">Back: <a href="GML_Overview.htm">GML Overview</a></div>
<div style="float:right">Next: <a data-xref="{title}" href="Structs/Static_Structs.htm">Static Struct</a></div>
<div style="float:right">Next: <a data-xref="{title}" href="Struct_Forbidden_Variables.htm">Struct Forbidden Variables</a></div>
</div>
</div>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2023 All Rights Reserved</span></h5>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5>
</div>
<!-- KEYWORDS
Structs
Expand Down

This file was deleted.

Loading

0 comments on commit a6c210a

Please sign in to comment.