Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BaseGame Script Review #5

Closed
lukaspj opened this issue May 30, 2020 · 0 comments
Closed

BaseGame Script Review #5

lukaspj opened this issue May 30, 2020 · 0 comments

Comments

@lukaspj
Copy link
Contributor

lukaspj commented May 30, 2020

This issue was created in the GarageGames Repository (Link to original issue).
The issue was originally created by @lukaspj and had a total of 2 comments that may contain additional information. The original issue description is pasted below:

Just listing off some issues I encounter when converting scripts to C#:

Core_GameObjects module does not exist.
https://github.com/GarageGames/Torque3D/blob/development/Templates/BaseGame/game/core/Core.cs#L27

PrefPath logic exists twice
https://github.com/GarageGames/Torque3D/blob/development/Templates/BaseGame/game/core/Core.cs#L30-L34
And:
https://github.com/GarageGames/Torque3D/blob/development/Templates/BaseGame/game/main.cs.in#L34-L39

OnExit should not be a part of the Core Module, rather main.cs or similar root-level script should destroy the Core Module on exit
https://github.com/GarageGames/Torque3D/blob/development/Templates/BaseGame/game/core/Core.cs#L81-L87

I know this one is a bit subjective, but I think it's confusing to have CoreModule's clean-up logic in the root-level "OnExit" function.

Should TerrainBlendShader prefix samplerNames with $?, it seems to be prefixed everywhere else.
https://github.com/GarageGames/Torque3D/blob/development/Templates/BaseGame/game/core/rendering/scripts/gfxData/terrainBlock.cs#L32-L33

I'll add to this as I find more

@Azaezel Azaezel closed this as completed Jul 22, 2022
Eikelenboom pushed a commit to Eikelenboom/Torque3d-UI-MakeOver that referenced this issue Dec 5, 2022
Azaezel pushed a commit that referenced this issue Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants