Imaginary Namespace design...
by Jason Swearingen · in Torque Game Builder · 03/14/2006 (3:38 pm) · 4 replies
I'm brainstorming how I should bucket TGB features in my C# Wrapper.
Below is an outline of my current thoughts, any comments/critisim would be appreciated!
Base Namespace listing, in no particular order:
IO.Network
IO.Disk (such as DiffCopy)
IO.Encryption (resource encryption)
IO.Compression (resource compression, might merge with IO.Encryption)
Graphics.2D (2D to diferentiate from any TGE stuff that may be implemented later)
Security (Hacker countermeasure type stuff)
Audio
Scripting (TorqueScript, plus support for .NET scripting such as C#, LUA, Python)
CodeUtilities (helper functions that make .NET programming easier)
AI (generic algorithms such as A* pathfinding and other stuff)
Below is an outline of my current thoughts, any comments/critisim would be appreciated!
Base Namespace listing, in no particular order:
IO.Network
IO.Disk (such as DiffCopy)
IO.Encryption (resource encryption)
IO.Compression (resource compression, might merge with IO.Encryption)
Graphics.2D (2D to diferentiate from any TGE stuff that may be implemented later)
Security (Hacker countermeasure type stuff)
Audio
Scripting (TorqueScript, plus support for .NET scripting such as C#, LUA, Python)
CodeUtilities (helper functions that make .NET programming easier)
AI (generic algorithms such as A* pathfinding and other stuff)
#2
Thanks for the input!
-Jason
03/15/2006 (10:56 am)
@Johan: That's a good idea. I was thinking about putting such UI elements in a "Kit" namespace, which would contain custom code such as an isometric starter, that type of thing. But you are right, UI elements are generic enough that they do belong in the main grouping.Thanks for the input!
-Jason
#3
|-- Controls (Contains controls, I.E. GuiButton)
|-- Gui (Class, current GUI, etc, etc)
|-- Containers (GuiDialog, etc)
Was bored, dont ask. =P
03/19/2006 (12:42 pm)
UI|-- Controls (Contains controls, I.E. GuiButton)
|-- Gui (Class, current GUI, etc, etc)
|-- Containers (GuiDialog, etc)
Was bored, dont ask. =P
#4
Thanks for the suggestions... the UI stuff, and how i'm going to handle it, is actually the biggest uncertainty I have with the engine thus far... I havent played with the .gui objects enough yet to get a feel on how to wrap their logic.
03/19/2006 (11:12 pm)
@Ricky: The UI stuff, at least at this point, will be under the Graphics.2D namespace, as it is going to be tgb specificThanks for the suggestions... the UI stuff, and how i'm going to handle it, is actually the biggest uncertainty I have with the engine thus far... I havent played with the .gui objects enough yet to get a feel on how to wrap their logic.
Torque Owner Johan Stenqvist (neochrome)
Maybe you should have something like Graphics.UI or just UI with some possible sub namespaces...