-added webpage deploymnet stage -added separate build stage which build all binaries and generate documentation -added Emscripten build stage for merge to master only -added VBO batch rendering (current default, no render mode switch yet) -fixed camera positioning calculation -fixed buffer issue with WebGL -added viewport scalling (at least 300 pixels height). Pixels are scalled if screen is bigger. -center demos gameplay area -added fullpage html template for Emscripten build
28 lines
No EOL
1,018 B
D
28 lines
No EOL
1,018 B
D
/************************************************************************************************************************
|
|
This module contain attributes used to mark components.
|
|
Currently only two attributes are supported:
|
|
$(LIST
|
|
* optional: mark component as optional for system update
|
|
* readonly: mark component access as read only (used for multithreading)
|
|
)
|
|
|
|
By default components are required and mutable. "const" attribute can be used insteac od readonly mark.
|
|
|
|
---
|
|
Struct EntitiesData
|
|
{
|
|
Comp1[] cmp; //mutable required component
|
|
@readonly @optional Comp2[] cmp2; //optional read only component
|
|
@optional const (Comp3)[] cmp3; //same as cmp2
|
|
}
|
|
---
|
|
|
|
Copyright: Copyright © 2018-2019, Dawid Masiukiewicz, Michał Masiukiewicz
|
|
License: BSD 3-clause, see LICENSE file in project root folder.
|
|
*/
|
|
module ecs.attributes;
|
|
|
|
///Used to mark optional components for system.
|
|
enum optional = "optional";
|
|
///Used to mark readonly components for system. "const" can be used insted.
|
|
enum readonly = "readonly"; |