5 public partial class Entity {
11 bool replaceComponents =
false) {
12 var componentsLength = blueprint.components.Length;
13 for (
int i = 0; i < componentsLength; i++) {
14 var componentBlueprint = blueprint.components[i];
15 if(replaceComponents) {
17 componentBlueprint.CreateComponent(
this));
20 componentBlueprint.CreateComponent(
this));
Entity ReplaceComponent(int index, IComponent component)
Entity ApplyBlueprint(Blueprint blueprint, bool replaceComponents=false)
Entity AddComponent(int index, IComponent component)