{"id":17100020,"url":"https://github.com/bergmark/galaxygreat","last_synced_at":"2025-03-23T18:28:08.638Z","repository":{"id":1366500,"uuid":"1316581","full_name":"bergmark/GalaxyGreat","owner":"bergmark","description":"Utility library for StarCraft II's scripting language Galaxy.","archived":false,"fork":false,"pushed_at":"2011-02-14T10:55:18.000Z","size":264,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T00:47:28.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bergmark.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-01T15:35:54.000Z","updated_at":"2013-12-22T04:35:48.000Z","dependencies_parsed_at":"2022-07-29T10:40:01.506Z","dependency_job_id":null,"html_url":"https://github.com/bergmark/GalaxyGreat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bergmark%2FGalaxyGreat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bergmark%2FGalaxyGreat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bergmark%2FGalaxyGreat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bergmark%2FGalaxyGreat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bergmark","download_url":"https://codeload.github.com/bergmark/GalaxyGreat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245147862,"owners_count":20568582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T15:12:07.907Z","updated_at":"2025-03-23T18:28:08.602Z","avatar_url":"https://github.com/bergmark.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"== Getting started with GalaxyGreat:\n\n* Open Map.SC2Map in the SC2 Map Editor\n* Open the Import window (F9)\n* Select the \"Scripts\" folder and press cmd+I (os x)/ctrl+I (win) and\n  change the directory to the \"scripts\" folder in the repository\n* All *.galaxy files should be selected, press OK, confirm the\n  replacement\n* Press cmd+F9/ctrl+F9 to run the map in SC2. If all goes well you\n  should amongst other things have most of the map revealed (as in no\n  fog of war mostly)\n\nAfter making changes to the *.galaxy files in an external editor, go\nthrough the import step again each time. (Hint: In OS X you can select\nthe import window and press cmd+I, RET, RET, cmd+S, cmd+F9 to import,\nsave and run SC2.\n\nTo make a custom map, leave `library.galaxy` as is and make\nmodifications in `map.galaxy`.\n\n== Galaxy introduction:\n\n* C derivative\n* declare before define\n* No dynamic/heap alloc\n* No pointer arithmetic\n* Functions may only return or recieve primitive atomic types, (may\n  return void)\n* Primitive types: int(size?), bool(true/false), string (?)\n* Compound types: struct, array\n* `static` for decs/defs local to file\n* C-style `if`, `while`\n* No `for` statement\n* Must have braces around if/while body\n* Reports of /= *= being buggy? (Unconfirmed on our end, may only have\n  applied to the beta)\n* View code editor generates by going into triggers \u003e Data (menu) \u003e\n  view script / cmd+F11\n* `// comments`\n* /* comments not implemented */\n* include directive `include \"TriggerLibs/NativeLib\"`\n* C-style makes Emacs c-mode work well for editing.\n* Local variables have to be declared at the top of a function.\n\n== Map Editor\n\n* If you create triggers you can press (cmd/ctrl)+F11 to view the code\n  that is generated by the editor. Use this to write code, and\n  preferably to abstract into the library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbergmark%2Fgalaxygreat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbergmark%2Fgalaxygreat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbergmark%2Fgalaxygreat/lists"}