{"id":1516,"date":"2022-03-17T20:21:16","date_gmt":"2022-03-17T20:21:16","guid":{"rendered":"https:\/\/golemitegames.com\/?post_type=docs&#038;p=1516"},"modified":"2022-03-17T20:25:49","modified_gmt":"2022-03-17T20:25:49","password":"","slug":"gridobject","status":"publish","type":"docs","link":"https:\/\/golemitegames.com\/index.php\/docs\/gridobject\/","title":{"rendered":"GridObject"},"content":{"rendered":"\n<p><strong>public void SetObjectGridSquare(GridSquare grid)<\/strong><\/p>\n\n\n\n<p>Sets this object&#8217;s grid to the provided one. This method is called when the object is placed.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-lang=\"C#\"><code>\/\/Sets the object GridSquare\nGridSquare grid;\nGridObject gridObj;\nvoid Start()\n{\n    gridObj.SetObjectGridSquare(grid);\n}<\/code><\/pre><\/div>\n\n\n\n<p><strong><strong>public GridSquare GetObjectGridSquare()<\/strong><\/strong><\/p>\n\n\n\n<p>Returns this objects grid.<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-csharp\" data-lang=\"C#\"><code>\/\/Gets the object GridSquare\nGridSquare grid;\nGridObject gridObj;\nvoid Start()\n{\n    grid = gridObj.GetObjectGridSquare();\n}<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>public void SetObjectGridSquare(GridSquare grid) Sets this object&#8217;s grid to the provided one. This method is called when the object is placed. public GridSquare GetObjectGridSquare() Returns this objects grid.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"doc_category":[28],"doc_tag":[],"class_list":["post-1516","docs","type-docs","status-publish","hentry","doc_category-scripting"],"acf":[],"aioseo_notices":[],"year_month":"2026-04","word_count":55,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"rickitz5h","author_nicename":"rickitz5h","author_url":"https:\/\/golemitegames.com\/index.php\/author\/rickitz5h\/"},"doc_category_info":[{"term_name":"Scripting","term_url":"https:\/\/golemitegames.com\/index.php\/docs-category\/scripting\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/comments?post=1516"}],"version-history":[{"count":4,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1516\/revisions"}],"predecessor-version":[{"id":1522,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/docs\/1516\/revisions\/1522"}],"wp:attachment":[{"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/media?parent=1516"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_category?post=1516"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/golemitegames.com\/index.php\/wp-json\/wp\/v2\/doc_tag?post=1516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}