Editing
Skyscraper Internals and Development
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Preview
Advanced
Special characters
Help
Heading
Level 2
Level 3
Level 4
Level 5
Format
Insert
Latin
Latin extended
IPA
Symbols
Greek
Greek extended
Cyrillic
Arabic
Arabic extended
Hebrew
Bangla
Tamil
Telugu
Sinhala
Devanagari
Gujarati
Thai
Lao
Khmer
Canadian Aboriginal
Runes
Á
á
À
à
Â
â
Ä
ä
Ã
ã
Ǎ
ǎ
Ā
ā
Ă
ă
Ą
ą
Å
å
Ć
ć
Ĉ
ĉ
Ç
ç
Č
č
Ċ
ċ
Đ
đ
Ď
ď
É
é
È
è
Ê
ê
Ë
ë
Ě
ě
Ē
ē
Ĕ
ĕ
Ė
ė
Ę
ę
Ĝ
ĝ
Ģ
ģ
Ğ
ğ
Ġ
ġ
Ĥ
ĥ
Ħ
ħ
Í
í
Ì
ì
Î
î
Ï
ï
Ĩ
ĩ
Ǐ
ǐ
Ī
ī
Ĭ
ĭ
İ
ı
Į
į
Ĵ
ĵ
Ķ
ķ
Ĺ
ĺ
Ļ
ļ
Ľ
ľ
Ł
ł
Ń
ń
Ñ
ñ
Ņ
ņ
Ň
ň
Ó
ó
Ò
ò
Ô
ô
Ö
ö
Õ
õ
Ǒ
ǒ
Ō
ō
Ŏ
ŏ
Ǫ
ǫ
Ő
ő
Ŕ
ŕ
Ŗ
ŗ
Ř
ř
Ś
ś
Ŝ
ŝ
Ş
ş
Š
š
Ș
ș
Ț
ț
Ť
ť
Ú
ú
Ù
ù
Û
û
Ü
ü
Ũ
ũ
Ů
ů
Ǔ
ǔ
Ū
ū
ǖ
ǘ
ǚ
ǜ
Ŭ
ŭ
Ų
ų
Ű
ű
Ŵ
ŵ
Ý
ý
Ŷ
ŷ
Ÿ
ÿ
Ȳ
ȳ
Ź
ź
Ž
ž
Ż
ż
Æ
æ
Ǣ
ǣ
Ø
ø
Œ
œ
ß
Ð
ð
Þ
þ
Ə
ə
Formatting
Links
Headings
Lists
Files
Discussion
References
Description
What you type
What you get
Italic
''Italic text''
Italic text
Bold
'''Bold text'''
Bold text
Bold & italic
'''''Bold & italic text'''''
Bold & italic text
Description
What you type
What you get
Reference
Page text.<ref>[https://www.example.org/ Link text], additional text.</ref>
Page text.
[1]
Named reference
Page text.<ref name="test">[https://www.example.org/ Link text]</ref>
Page text.
[2]
Additional use of the same reference
Page text.<ref name="test" />
Page text.
[2]
Display references
<references />
↑
Link text
, additional text.
↑
Link text
{{legit}} ''All of the text below was created by eventhorizon.'' Working with the Skyscraper source code can be intimidating at first, but if you're familiar with C++, the code has been formatted to be easy to read and hopefully understand. The following diagram shows a birds-eye view of the simulator, when three sim engines are running. [[File:Design concept.jpg|375x375px]] Skyscraper's source code is divided class-wise in order to create layers of abstraction in the code. This makes it relatively easy to create object-related code in C++. In the image above, each major component is in a subfolder in the "src" directory. The SBS engine, as an example, is in the "src/sbs" folder. Skyscraper's frontend is relatively small, and is mainly used as a wxWidgets frontend to the simulator, the ability to add other frontends is possible. == Frontend == Skyscraper's '''frontend''' is is both a small wxWidgets application and separately (if wxWidgets is not used), a native Ogre frontend for Skyscraper. It is used for the startup screen, initializing the simulator, it's initial objects, and the initial wxWidgets windowing framework. == VM (Virtual Manager) == VM, or Virtual Manager, is a form of meta-simulator, a system designed to manage simulator engine instances. It operates in a similar way to a nanokernel or hypervisor, in that it is a monitor and environment for the simulator engines to run on. VM is responsible for creating simulator engine instances, shutting down engines, running sim engines in parallel, and moving between sim engines. It also manages the client components, such as the GUI and HAL. VM manages Engine Contexts, which are the basic environments that host the sim engines and script processors. == GUI == The GUI component is the majority of the wxWidgets windowing code, used for the simulator's windows and dialogs. This component is a client of the VM (Virtual Manager) component. == HAL == The HAL (Hardware Abstraction Layer) component is responsible for all hardware library-related functions, such as graphics and sound, currently for the frontend. In the future this will also handle all related functions for SBS, currently SBS does most of the same functionality separately. This component is a client of the VM (Virtual Manager) component. == Script Processor == The Script Processor component is not only the script interpreter, but also demonstrates how to perform the C++ equivalents of script code. The script processor is responsible for translating script commands into C++ functions. The language is loosely based on the TrueVision3D graphics engine syntax (Visual Basic). == OpenXR == The OpenXR component is an experimental Virtual Reality feature. Skyscraper currently supports VR headsets, but doesn't yet support hand controls and some other things like on-screen displays. == Scalable Building Simulator (SBS) == The Scalable Building Simulator, or SBS, is a simulation engine designed with vertical simulation in mind. SBS was designed to simulate a single [[building]] in its entirety, multiple SBS instances can be run together in parallel to create [[City|cities]]. SBS is a client of the VM (Virtual Manager) component. It runs within an environment called an Engine Context, which is created and managed by the VM system. An engine context is the combination of an instance of SBS and a Script Processor, together in a context. == See also == * [[Help:Design Guide|Design Guide]] * [[Introduction to Skyscraper]] [[Category:Design Guide]]
Summary:
Please note that all contributions to Skyscraper Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Skyscraper Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template:Legit
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information