TombEngine/Documentation/generate_objectlist.ps1

149 lines
3.6 KiB
PowerShell
Raw Normal View History

Squashed commit of the following: commit 8ea54ea7d4cfd1963f21a6949a201e212d8ebc64 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:34:57 2025 +0100 Fix merge commit 566b694c9d79d8e7a9e78af3f16c28d14ece139b Merge: 935b26bd6 e97c47315 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:33:43 2025 +0100 Merge branch 'develop' into pr/1496 commit 935b26bd669088d2bd3dd809ac25752f5e7cf18c Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:31:57 2025 +0100 Use script to generate object list, also migrate flatbuffer to powershell script commit a6ec51e9d49be96db17a672600e715d505de73e6 Merge: 7bf0ffef6 676762e11 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Dec 29 12:53:23 2024 +0100 Merge branch 'develop' into mod commit 676762e11591543ea9cfc3fd4ecf3287f488dd9f Merge: ae0488410 5597750c2 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Dec 29 12:48:24 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 7bf0ffef6c6b459d7adb5acb2400b26174a8a452 Merge: b876f347c ae0488410 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Dec 26 11:59:22 2024 +0100 Merge branch 'develop' into mod commit ae0488410206b385785da3712839058407ca359c Merge: e1c61aca0 8fb4668df Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Dec 26 11:58:28 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit b876f347c7e74a78ba8333283553697743fef58d Merge: 0669b6f01 e1c61aca0 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:24:15 2024 +0100 Merge branch 'develop' into mod commit e1c61aca03132c465dcdd13870175e19cb2fb025 Merge: f557f0081 88bbe4862 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:23:31 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 0669b6f0123bec4d01fc436f98d736296fa6afb1 Merge: f978ad1b5 f557f0081 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:21:52 2024 +0100 Merge branch 'develop' into mod commit f557f00815cb4ee110502fbe96d8409ef93b6964 Merge: 34beccfcc ae7924797 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Mon Dec 16 18:45:13 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 34beccfccc2864473e557a75ea52df29bb4f3408 Merge: 6516a8b87 2f6114deb Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Dec 13 20:23:25 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 6516a8b87b29491d89cc083d4078cb9128232bca Merge: babdad1a7 e674b8526 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 11 15:48:14 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit f978ad1b53f6a4516b9efb3aae1ad2028d5e6114 Merge: 96663d564 babdad1a7 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sat Dec 7 08:37:39 2024 +0100 Merge branch 'develop' into mod commit babdad1a74bca4e9b1ce8422f9b678e1aeed41e1 Merge: c3a97f411 d96bf4ba8 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sat Dec 7 08:35:23 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 96663d564602c7291182ea03b97c0729965a3d9c Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 13:35:50 2024 +0100 add SpriteConstants commit 89c27fc19da81ac6c624b1478b3e0e52aa089dbe Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:50:59 2024 +0100 Revert "conversion error" This reverts commit f811117458d3747c53be3c7cb8ae85338d26092b. commit 3dd8e76d8bad14500cdfbeb89e5be05d56997b14 Merge: 4195bc042 c3a97f411 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:50:48 2024 +0100 Merge branch 'develop' into mod commit c3a97f4113cdbf818fde0f106cd744670db8259c Merge: 4af4d14db db7f86485 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:49:21 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 4af4d14db88e61ddf516be3516163538bdfaa542 Merge: 5e87ac32e 27d3ca7bb Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:23:35 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 4195bc042ab3cfc1af415409967e044904922cc9 Merge: f81111745 5e87ac32e Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:20:32 2024 +0100 Merge branch 'mod' of https://github.com/davidmarr/TombEngine into mod commit f811117458d3747c53be3c7cb8ae85338d26092b Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:17:53 2024 +0100 conversion error commit 5e87ac32e6c69700fd5c484e1cc6ecde405b44de Merge: ef1a7d2d0 19be42911 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:15:38 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 7643d190829c91d49cf159a44991d1d863c0b6a9 Merge: 202c94f02 d256fe1ef Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:15:03 2024 +0100 Merge branch 'MontyTRC89:master' into mod commit ef1a7d2d0fbed410dc7364b7e431f92bb537a773 Merge: 9e94324e9 202c94f02 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:04:23 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 9e94324e93ea14e779385720690f580fcdfdf594 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:19:10 2024 +0100 Revert "function description LevelFuncs.OnUseItem" This reverts commit 2478afca68f1e0ce11c610f07da6c6588cc4f35f. commit 2478afca68f1e0ce11c610f07da6c6588cc4f35f Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:18:56 2024 +0100 function description LevelFuncs.OnUseItem commit 37be06150ec8e3ec02a95d58fdd2201f2081746b Merge: c7c3451c1 222e67e49 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:01:48 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit d256fe1efe9474bac52620d21d26c15a53c23efc Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Sun Nov 3 22:19:11 2024 +0000 Update bug_report.yaml commit 710f04596bc6e8fa2d7a588bf9fc223f98d1858a Merge: 1affcce9b 0b5ea0db7 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Sun Nov 3 18:37:17 2024 +0100 Merge branch 'develop' commit 1affcce9b95727ab110e77e55538835465442cba Author: Jakub <80340234+Jakub768@users.noreply.github.com> Date: Sun Nov 3 14:18:34 2024 +0000 Update CHANGELOG.md commit fae8744e4bc950f962a4824e8a6e1ff485a08be7 Author: Jakub <80340234+Jakub768@users.noreply.github.com> Date: Sun Nov 3 14:16:05 2024 +0000 Update CHANGELOG.md commit 815498ec8a7791716bb7b3dfa1996ceebdcbd6ae Merge: d81fce22a c3365f3a3 Author: Jakub <kubabilinski03@gmail.com> Date: Sun Nov 3 13:51:09 2024 +0000 Merge branch 'develop' commit d81fce22ada44cbb40720a4905e48c83adf1e92d Merge: 30e053dc9 a962a17f6 Author: Jakub <kubabilinski03@gmail.com> Date: Sun Nov 3 12:35:58 2024 +0000 Merge branch 'develop' commit 30e053dc935646a3c8d900b2adbd90b107995048 Author: Nemoel-Tomo <tomo_669@hotmail.com> Date: Wed Oct 30 18:00:21 2024 +0100 Update AUTHORS.md - Tomo (general coding, special FX coding, bug fixing) commit c7c3451c1c7476b342f33ec8f2b1a32710719b25 Merge: 4fc411abe e4098c458 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Oct 25 14:44:24 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit 4fc411abe9a8885e3d3376e015047caec2ea9eae Merge: bfcd93f52 f7a22ea1a Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Oct 20 21:38:01 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit bfcd93f52c02796c6cb1e9365a1f69ba894d98af Merge: bdea82d74 deec54ff8 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Oct 9 19:59:14 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit eca79130a0acef2c4371054ef0ef40367a1c905a Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Tue Sep 3 09:45:21 2024 +0100 Update bug_report.yaml commit 7fee647c84fab993fc7ba7df7747d6238e41193b Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Tue Sep 3 09:44:53 2024 +0100 Update to bug report form commit bdea82d742d185c8d2228a4bf8bb59c946117190 Merge: c3b4ecf9b 60b9055d0 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Aug 30 12:56:53 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit c3b4ecf9b6fc349f9242e84fc4869ba8c5702d31 Merge: b107327f0 37f056bfa Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Tue Aug 13 22:46:38 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit b107327f0a8e8b50447b92ffb9288366ab3ab02b Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Jul 25 13:19:30 2024 +0200 Update CHANGELOG.md commit 25aaba63163a6816bc5be831815a1140c52c8fcf Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Jul 25 13:16:58 2024 +0200 Update VolumeObject.cpp fixed Volume:GetActive() method
2025-03-11 23:38:35 +01:00
# PowerShell script to generate ObjectIDs.h from game_object_ids.h
$inputFile = "../TombEngine/Objects/game_object_ids.h" # Adjust path if necessary.
$tempOutputFile = "../TombEngine/Scripting/Internal/TEN/Objects/temp.h"
$outputFile = "../TombEngine/Scripting/Internal/TEN/Objects/ObjectIDs.h"
# Read the input file
if (-Not (Test-Path $inputFile))
{
Write-Host "Error: File '$inputFile' not found."
exit 1
}
# Get the last modified times for both files.
$inputFileLastModified = (Get-Item $inputFile).LastWriteTime
if (Test-Path $outputFile) {
$outputFileLastModified = (Get-Item $outputFile).LastWriteTime
} else {
$outputFileLastModified = [datetime]::MinValue # If output file doesn't exist, treat it as very old.
}
# Exit early if the output file is newer than the input file.
if ($outputFileLastModified -ge $inputFileLastModified) {
Write-Host "$outputFile is up to date. No changes made."
exit 0
}
$content = Get-Content $inputFile
# Extract enum values and categorize them.
$enumValues = @()
$pickupConstants = @()
$spriteConstants = @()
$inPickupSection = $false
$inSpriteSection = $false
foreach ($line in $content)
{
if ($line -match "^\s*ID_([A-Za-z0-9_]+)")
{
$enumName = $matches[1]
$enumValues += $enumName
if ($enumName -match "_ITEM|EXAMINE")
{
$pickupConstants += $enumName
}
elseif ($enumName -match "_SPRITE|_GRAPHIC|TEXTURE")
{
# These two object IDs are deprecated 3D objects, not sprites.
if ($enumName -in @("BINOCULAR_GRAPHICS", "TARGET_GRAPHICS"))
{
continue
}
$spriteConstants += $enumName
}
}
}
if ($enumValues.Count -gt 0) { $enumValues = $enumValues[1..($enumValues.Count - 2)] }
# Generate ObjectIDs.h content.
$header = @"
#pragma once
2025-03-11 23:52:11 +01:00
// This file is generated automatically, do not edit it.
// Last generated on $(Get-Date -Format "dd/MM/yyyy").
Squashed commit of the following: commit 8ea54ea7d4cfd1963f21a6949a201e212d8ebc64 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:34:57 2025 +0100 Fix merge commit 566b694c9d79d8e7a9e78af3f16c28d14ece139b Merge: 935b26bd6 e97c47315 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:33:43 2025 +0100 Merge branch 'develop' into pr/1496 commit 935b26bd669088d2bd3dd809ac25752f5e7cf18c Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:31:57 2025 +0100 Use script to generate object list, also migrate flatbuffer to powershell script commit a6ec51e9d49be96db17a672600e715d505de73e6 Merge: 7bf0ffef6 676762e11 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Dec 29 12:53:23 2024 +0100 Merge branch 'develop' into mod commit 676762e11591543ea9cfc3fd4ecf3287f488dd9f Merge: ae0488410 5597750c2 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Dec 29 12:48:24 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 7bf0ffef6c6b459d7adb5acb2400b26174a8a452 Merge: b876f347c ae0488410 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Dec 26 11:59:22 2024 +0100 Merge branch 'develop' into mod commit ae0488410206b385785da3712839058407ca359c Merge: e1c61aca0 8fb4668df Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Dec 26 11:58:28 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit b876f347c7e74a78ba8333283553697743fef58d Merge: 0669b6f01 e1c61aca0 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:24:15 2024 +0100 Merge branch 'develop' into mod commit e1c61aca03132c465dcdd13870175e19cb2fb025 Merge: f557f0081 88bbe4862 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:23:31 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 0669b6f0123bec4d01fc436f98d736296fa6afb1 Merge: f978ad1b5 f557f0081 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:21:52 2024 +0100 Merge branch 'develop' into mod commit f557f00815cb4ee110502fbe96d8409ef93b6964 Merge: 34beccfcc ae7924797 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Mon Dec 16 18:45:13 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 34beccfccc2864473e557a75ea52df29bb4f3408 Merge: 6516a8b87 2f6114deb Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Dec 13 20:23:25 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 6516a8b87b29491d89cc083d4078cb9128232bca Merge: babdad1a7 e674b8526 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 11 15:48:14 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit f978ad1b53f6a4516b9efb3aae1ad2028d5e6114 Merge: 96663d564 babdad1a7 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sat Dec 7 08:37:39 2024 +0100 Merge branch 'develop' into mod commit babdad1a74bca4e9b1ce8422f9b678e1aeed41e1 Merge: c3a97f411 d96bf4ba8 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sat Dec 7 08:35:23 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 96663d564602c7291182ea03b97c0729965a3d9c Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 13:35:50 2024 +0100 add SpriteConstants commit 89c27fc19da81ac6c624b1478b3e0e52aa089dbe Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:50:59 2024 +0100 Revert "conversion error" This reverts commit f811117458d3747c53be3c7cb8ae85338d26092b. commit 3dd8e76d8bad14500cdfbeb89e5be05d56997b14 Merge: 4195bc042 c3a97f411 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:50:48 2024 +0100 Merge branch 'develop' into mod commit c3a97f4113cdbf818fde0f106cd744670db8259c Merge: 4af4d14db db7f86485 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:49:21 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 4af4d14db88e61ddf516be3516163538bdfaa542 Merge: 5e87ac32e 27d3ca7bb Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:23:35 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 4195bc042ab3cfc1af415409967e044904922cc9 Merge: f81111745 5e87ac32e Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:20:32 2024 +0100 Merge branch 'mod' of https://github.com/davidmarr/TombEngine into mod commit f811117458d3747c53be3c7cb8ae85338d26092b Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:17:53 2024 +0100 conversion error commit 5e87ac32e6c69700fd5c484e1cc6ecde405b44de Merge: ef1a7d2d0 19be42911 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:15:38 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 7643d190829c91d49cf159a44991d1d863c0b6a9 Merge: 202c94f02 d256fe1ef Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:15:03 2024 +0100 Merge branch 'MontyTRC89:master' into mod commit ef1a7d2d0fbed410dc7364b7e431f92bb537a773 Merge: 9e94324e9 202c94f02 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:04:23 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 9e94324e93ea14e779385720690f580fcdfdf594 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:19:10 2024 +0100 Revert "function description LevelFuncs.OnUseItem" This reverts commit 2478afca68f1e0ce11c610f07da6c6588cc4f35f. commit 2478afca68f1e0ce11c610f07da6c6588cc4f35f Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:18:56 2024 +0100 function description LevelFuncs.OnUseItem commit 37be06150ec8e3ec02a95d58fdd2201f2081746b Merge: c7c3451c1 222e67e49 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:01:48 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit d256fe1efe9474bac52620d21d26c15a53c23efc Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Sun Nov 3 22:19:11 2024 +0000 Update bug_report.yaml commit 710f04596bc6e8fa2d7a588bf9fc223f98d1858a Merge: 1affcce9b 0b5ea0db7 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Sun Nov 3 18:37:17 2024 +0100 Merge branch 'develop' commit 1affcce9b95727ab110e77e55538835465442cba Author: Jakub <80340234+Jakub768@users.noreply.github.com> Date: Sun Nov 3 14:18:34 2024 +0000 Update CHANGELOG.md commit fae8744e4bc950f962a4824e8a6e1ff485a08be7 Author: Jakub <80340234+Jakub768@users.noreply.github.com> Date: Sun Nov 3 14:16:05 2024 +0000 Update CHANGELOG.md commit 815498ec8a7791716bb7b3dfa1996ceebdcbd6ae Merge: d81fce22a c3365f3a3 Author: Jakub <kubabilinski03@gmail.com> Date: Sun Nov 3 13:51:09 2024 +0000 Merge branch 'develop' commit d81fce22ada44cbb40720a4905e48c83adf1e92d Merge: 30e053dc9 a962a17f6 Author: Jakub <kubabilinski03@gmail.com> Date: Sun Nov 3 12:35:58 2024 +0000 Merge branch 'develop' commit 30e053dc935646a3c8d900b2adbd90b107995048 Author: Nemoel-Tomo <tomo_669@hotmail.com> Date: Wed Oct 30 18:00:21 2024 +0100 Update AUTHORS.md - Tomo (general coding, special FX coding, bug fixing) commit c7c3451c1c7476b342f33ec8f2b1a32710719b25 Merge: 4fc411abe e4098c458 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Oct 25 14:44:24 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit 4fc411abe9a8885e3d3376e015047caec2ea9eae Merge: bfcd93f52 f7a22ea1a Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Oct 20 21:38:01 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit bfcd93f52c02796c6cb1e9365a1f69ba894d98af Merge: bdea82d74 deec54ff8 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Oct 9 19:59:14 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit eca79130a0acef2c4371054ef0ef40367a1c905a Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Tue Sep 3 09:45:21 2024 +0100 Update bug_report.yaml commit 7fee647c84fab993fc7ba7df7747d6238e41193b Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Tue Sep 3 09:44:53 2024 +0100 Update to bug report form commit bdea82d742d185c8d2228a4bf8bb59c946117190 Merge: c3b4ecf9b 60b9055d0 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Aug 30 12:56:53 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit c3b4ecf9b6fc349f9242e84fc4869ba8c5702d31 Merge: b107327f0 37f056bfa Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Tue Aug 13 22:46:38 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit b107327f0a8e8b50447b92ffb9288366ab3ab02b Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Jul 25 13:19:30 2024 +0200 Update CHANGELOG.md commit 25aaba63163a6816bc5be831815a1140c52c8fcf Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Jul 25 13:16:58 2024 +0200 Update VolumeObject.cpp fixed Volume:GetActive() method
2025-03-11 23:38:35 +01:00
#include <unordered_map>
#include <string>
#include "Objects/game_object_ids.h"
/***
Constants for object IDs.
@enum Objects.ObjID
@pragma nostrip
*/
/*** Objects.ObjID constants.
The following constants are inside ObjID.
"@
$body = $enumValues | ForEach-Object { "`t$_" }
$footer = @"
@table Members
*/
"@
# Pickup Constants Section.
$pickupHeader = @"
/*** Objects.ObjID pickup constants.
The following ObjID members refer to pickups.
"@
$pickupBody = $pickupConstants | ForEach-Object { "`t$_" }
$pickupFooter = @"
@table PickupConstants
*/
"@
# Sprite Constants Section.
$spriteHeader = @"
/*** Objects.ObjID sprite constants.
The following ObjID members refer to sprites.
"@
$spriteBody = $spriteConstants | ForEach-Object { "`t$_" }
$spriteFooter = @"
@table SpriteConstants
*/
"@
# Map definition.
2025-03-11 23:52:11 +01:00
$mapHeader = "static const std::unordered_map<std::string, GAME_OBJECT_ID> GAME_OBJECT_IDS {"
Squashed commit of the following: commit 8ea54ea7d4cfd1963f21a6949a201e212d8ebc64 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:34:57 2025 +0100 Fix merge commit 566b694c9d79d8e7a9e78af3f16c28d14ece139b Merge: 935b26bd6 e97c47315 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:33:43 2025 +0100 Merge branch 'develop' into pr/1496 commit 935b26bd669088d2bd3dd809ac25752f5e7cf18c Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue Mar 11 23:31:57 2025 +0100 Use script to generate object list, also migrate flatbuffer to powershell script commit a6ec51e9d49be96db17a672600e715d505de73e6 Merge: 7bf0ffef6 676762e11 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Dec 29 12:53:23 2024 +0100 Merge branch 'develop' into mod commit 676762e11591543ea9cfc3fd4ecf3287f488dd9f Merge: ae0488410 5597750c2 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Dec 29 12:48:24 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 7bf0ffef6c6b459d7adb5acb2400b26174a8a452 Merge: b876f347c ae0488410 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Dec 26 11:59:22 2024 +0100 Merge branch 'develop' into mod commit ae0488410206b385785da3712839058407ca359c Merge: e1c61aca0 8fb4668df Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Dec 26 11:58:28 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit b876f347c7e74a78ba8333283553697743fef58d Merge: 0669b6f01 e1c61aca0 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:24:15 2024 +0100 Merge branch 'develop' into mod commit e1c61aca03132c465dcdd13870175e19cb2fb025 Merge: f557f0081 88bbe4862 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:23:31 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 0669b6f0123bec4d01fc436f98d736296fa6afb1 Merge: f978ad1b5 f557f0081 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 18 19:21:52 2024 +0100 Merge branch 'develop' into mod commit f557f00815cb4ee110502fbe96d8409ef93b6964 Merge: 34beccfcc ae7924797 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Mon Dec 16 18:45:13 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 34beccfccc2864473e557a75ea52df29bb4f3408 Merge: 6516a8b87 2f6114deb Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Dec 13 20:23:25 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 6516a8b87b29491d89cc083d4078cb9128232bca Merge: babdad1a7 e674b8526 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Dec 11 15:48:14 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit f978ad1b53f6a4516b9efb3aae1ad2028d5e6114 Merge: 96663d564 babdad1a7 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sat Dec 7 08:37:39 2024 +0100 Merge branch 'develop' into mod commit babdad1a74bca4e9b1ce8422f9b678e1aeed41e1 Merge: c3a97f411 d96bf4ba8 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sat Dec 7 08:35:23 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 96663d564602c7291182ea03b97c0729965a3d9c Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 13:35:50 2024 +0100 add SpriteConstants commit 89c27fc19da81ac6c624b1478b3e0e52aa089dbe Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:50:59 2024 +0100 Revert "conversion error" This reverts commit f811117458d3747c53be3c7cb8ae85338d26092b. commit 3dd8e76d8bad14500cdfbeb89e5be05d56997b14 Merge: 4195bc042 c3a97f411 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:50:48 2024 +0100 Merge branch 'develop' into mod commit c3a97f4113cdbf818fde0f106cd744670db8259c Merge: 4af4d14db db7f86485 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Nov 28 12:49:21 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 4af4d14db88e61ddf516be3516163538bdfaa542 Merge: 5e87ac32e 27d3ca7bb Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:23:35 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 4195bc042ab3cfc1af415409967e044904922cc9 Merge: f81111745 5e87ac32e Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:20:32 2024 +0100 Merge branch 'mod' of https://github.com/davidmarr/TombEngine into mod commit f811117458d3747c53be3c7cb8ae85338d26092b Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:17:53 2024 +0100 conversion error commit 5e87ac32e6c69700fd5c484e1cc6ecde405b44de Merge: ef1a7d2d0 19be42911 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:15:38 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 7643d190829c91d49cf159a44991d1d863c0b6a9 Merge: 202c94f02 d256fe1ef Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:15:03 2024 +0100 Merge branch 'MontyTRC89:master' into mod commit ef1a7d2d0fbed410dc7364b7e431f92bb537a773 Merge: 9e94324e9 202c94f02 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Nov 24 13:04:23 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit 9e94324e93ea14e779385720690f580fcdfdf594 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:19:10 2024 +0100 Revert "function description LevelFuncs.OnUseItem" This reverts commit 2478afca68f1e0ce11c610f07da6c6588cc4f35f. commit 2478afca68f1e0ce11c610f07da6c6588cc4f35f Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:18:56 2024 +0100 function description LevelFuncs.OnUseItem commit 37be06150ec8e3ec02a95d58fdd2201f2081746b Merge: c7c3451c1 222e67e49 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Nov 8 20:01:48 2024 +0100 Merge branch 'MontyTRC89:develop' into develop commit d256fe1efe9474bac52620d21d26c15a53c23efc Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Sun Nov 3 22:19:11 2024 +0000 Update bug_report.yaml commit 710f04596bc6e8fa2d7a588bf9fc223f98d1858a Merge: 1affcce9b 0b5ea0db7 Author: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Sun Nov 3 18:37:17 2024 +0100 Merge branch 'develop' commit 1affcce9b95727ab110e77e55538835465442cba Author: Jakub <80340234+Jakub768@users.noreply.github.com> Date: Sun Nov 3 14:18:34 2024 +0000 Update CHANGELOG.md commit fae8744e4bc950f962a4824e8a6e1ff485a08be7 Author: Jakub <80340234+Jakub768@users.noreply.github.com> Date: Sun Nov 3 14:16:05 2024 +0000 Update CHANGELOG.md commit 815498ec8a7791716bb7b3dfa1996ceebdcbd6ae Merge: d81fce22a c3365f3a3 Author: Jakub <kubabilinski03@gmail.com> Date: Sun Nov 3 13:51:09 2024 +0000 Merge branch 'develop' commit d81fce22ada44cbb40720a4905e48c83adf1e92d Merge: 30e053dc9 a962a17f6 Author: Jakub <kubabilinski03@gmail.com> Date: Sun Nov 3 12:35:58 2024 +0000 Merge branch 'develop' commit 30e053dc935646a3c8d900b2adbd90b107995048 Author: Nemoel-Tomo <tomo_669@hotmail.com> Date: Wed Oct 30 18:00:21 2024 +0100 Update AUTHORS.md - Tomo (general coding, special FX coding, bug fixing) commit c7c3451c1c7476b342f33ec8f2b1a32710719b25 Merge: 4fc411abe e4098c458 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Oct 25 14:44:24 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit 4fc411abe9a8885e3d3376e015047caec2ea9eae Merge: bfcd93f52 f7a22ea1a Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Sun Oct 20 21:38:01 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit bfcd93f52c02796c6cb1e9365a1f69ba894d98af Merge: bdea82d74 deec54ff8 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Wed Oct 9 19:59:14 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit eca79130a0acef2c4371054ef0ef40367a1c905a Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Tue Sep 3 09:45:21 2024 +0100 Update bug_report.yaml commit 7fee647c84fab993fc7ba7df7747d6238e41193b Author: Stranger1992 <84292688+Stranger1992@users.noreply.github.com> Date: Tue Sep 3 09:44:53 2024 +0100 Update to bug report form commit bdea82d742d185c8d2228a4bf8bb59c946117190 Merge: c3b4ecf9b 60b9055d0 Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Fri Aug 30 12:56:53 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit c3b4ecf9b6fc349f9242e84fc4869ba8c5702d31 Merge: b107327f0 37f056bfa Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Tue Aug 13 22:46:38 2024 +0200 Merge branch 'MontyTRC89:develop' into develop commit b107327f0a8e8b50447b92ffb9288366ab3ab02b Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Jul 25 13:19:30 2024 +0200 Update CHANGELOG.md commit 25aaba63163a6816bc5be831815a1140c52c8fcf Author: davidmarr <116632612+davidmarr@users.noreply.github.com> Date: Thu Jul 25 13:16:58 2024 +0200 Update VolumeObject.cpp fixed Volume:GetActive() method
2025-03-11 23:38:35 +01:00
$mapBody = ($enumValues | ForEach-Object { "`t" + '{ "' + "$_" + '", ID_' + "$_" + ' }' }) -join ",`r`n"
$mapFooter = "};"
# Write to output file
$header | Set-Content $tempOutputFile
$body | Add-Content $tempOutputFile
$footer | Add-Content $tempOutputFile
$pickupHeader | Add-Content $tempOutputFile
$pickupBody | Add-Content $tempOutputFile
$pickupFooter | Add-Content $tempOutputFile
$spriteHeader | Add-Content $tempOutputFile
$spriteBody | Add-Content $tempOutputFile
$spriteFooter | Add-Content $tempOutputFile
$mapHeader | Add-Content $tempOutputFile
$mapBody | ForEach-Object { Add-Content $tempOutputFile $_ }
$mapFooter | Add-Content $tempOutputFile
# Rename the temporary file to the final name.
if (Test-Path $outputFile) {
Remove-Item $outputFile -Force
}
Move-Item -Path $tempOutputFile -Destination $outputFile -Force
Write-Host "Generated $outputFile successfully."