-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add temporary flecs explorer for v4 alpha
- Loading branch information
1 parent
0917833
commit 721f837
Showing
1,718 changed files
with
378,837 additions
and
443 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// For C/C++ examples, go to: | ||
// https://github.com/SanderMertens/flecs | ||
using flecs.meta | ||
using flecs.units.Mass | ||
|
||
@brief Mass component | ||
Struct Mass { | ||
value :- {f64, unit: KiloGrams} | ||
} | ||
|
||
// Tags that inherit from CelestialBody | ||
Star : CelestialBody | ||
Planet : CelestialBody | ||
Satellite : CelestialBody | ||
|
||
@color #ffffdd | ||
Star Sun { | ||
- Mass{1.9885e30} | ||
|
||
@color #8c8c94 | ||
Planet Mercury :- Mass{0.33e24} | ||
|
||
@color #e39e1c | ||
Planet Venus :- Mass{4.87e24} | ||
|
||
@color #6b93d6 | ||
Planet Earth { | ||
- Mass{5.9722e24} | ||
|
||
@color #dcdcdc | ||
Satellite Moon :- Mass{7.34767309e22} | ||
} | ||
|
||
@color #c1440e | ||
Planet Mars { | ||
- Mass{0.642e24} | ||
|
||
@color #8B4513 | ||
Satellite Phobos :- Mass{1.0659e16} | ||
|
||
@color #A38C8C | ||
Satellite Deimos :- Mass{1.4762e15} | ||
} | ||
|
||
@color #e3dccb | ||
Planet Jupiter :- Mass{1898e24} | ||
|
||
@color #e3e0c0 | ||
Planet Saturn :- Mass{568e24} | ||
|
||
@color #3d5ef9 | ||
Planet Neptune :- Mass{102e24} | ||
|
||
@color #93cdf1 | ||
Planet Uranus :- Mass{86.8e24} | ||
} |
Oops, something went wrong.