diff --git a/README-RU.md b/README-RU.md index b7d9b36..a482eb8 100644 --- a/README-RU.md +++ b/README-RU.md @@ -121,16 +121,16 @@ EcsDefaultWorld _world; Так же AutoInjections упрощает построение аспектов. Для этого есть следующие атрибуты: Атрибуты для инициализации полей с пулами: -* `[Inc]` - кеширует пул и добавит тип компонента в включающее ограничение аспекта, аналог метода `Include`; -* `[Exc]` - кеширует пул и добавит тип компонента в исключающее ограничение аспекта, аналог метода `Exclude`; -* `[Opt]` - только кеширует пул, аналог метода `Optional`; +* `[Inc]` - кеширует пул и добавит тип компонента в включающее ограничение аспекта, аналог метода `Inc()`; +* `[Exc]` - кеширует пул и добавит тип компонента в исключающее ограничение аспекта, аналог метода `Exc()`; +* `[Opt]` - только кеширует пул, аналог метода `Opt()`; Атрибут для комбинирования аспектов: -* `[Combine(order)]` - кеширует аспект и скомбинирует ограничения аспектов, аналог метода `Combine`, аргумент `order` задает порядок комбинирования, по умлочанию `order = 0`; +* `[Combine(order)]` - кеширует аспект и скомбинирует ограничения аспектов, аналог метода `Combine(int)`, аргумент `order` задает порядок комбинирования, по умлочанию `order = 0`; Дополнительные атрибуты только для задания ограничений аспекта. Их можно применить к самому аспекту, либо к любому полю внутри. Используйте атрибуты: -* `[IncImplicit(type)]` - добавит в включающее ограничение указанный в конструкторе тип `type`, аналог метода `Include`; -* `[ExcImplicit(type)]` - добавит в исключающее ограничение указанный в конструкторе тип `type`, аналог метода `Exclude`; +* `[IncImplicit(type)]` - добавит в включающее ограничение указанный в конструкторе тип `type`, аналог метода `Inc()`; +* `[ExcImplicit(type)]` - добавит в исключающее ограничение указанный в конструкторе тип `type`, аналог метода `Exc()`;
@@ -198,9 +198,9 @@ class VelocitySystem : IEcsRun, IEcsInject, IEcsInject velocities; public Aspect(Builder b) { - b.Exclude(); - poses = b.Include(); - velocities = b.Include(); + b.Exc(); + poses = b.Ince(); + velocities = b.Inc(); } } diff --git a/README.md b/README.md index 5d20475..b42e4e5 100644 --- a/README.md +++ b/README.md @@ -122,16 +122,16 @@ EcsDefaultWorld _world; AutoInjections also simplifies building aspects. The following attributes are available: Attributes for initializing pool fields: -* `[Inc]` - caches the pool and adds the component type to the include constraint of the aspect (equivalent to `Include()`); -* `[Exc]` - caches the pool and adds the component type to the exclude constraint (equivalent to `Exclude()`); -* `[Opt]` - only caches the pool (equivalent to `Optional`); +* `[Inc]` - caches the pool and adds the component type to the include constraint of the aspect (equivalent to `Inc()`); +* `[Exc]` - caches the pool and adds the component type to the exclude constraint (equivalent to `Exc()`); +* `[Opt]` - only caches the pool (equivalent to `Opt`); * Attribute for combining aspects: * `[Combine(order)]` - caches the aspect and merges constraints from aspects (equivalent to `Combine(int)`); order sets combine order (default 0); Additional attributes for specifying aspect constraints. They can be applied to the aspect itself or any field inside: -* `[IncImplicit(type)]` - adds Type from the constructor to the include constraint (equivalent to `Include()`); -* `[ExcImplicit(type)]` - adds Type from the constructor to the exclude constraint (equivalent to `Exclude()`); +* `[IncImplicit(type)]` - adds Type from the constructor to the include constraint (equivalent to `Inc()`); +* `[ExcImplicit(type)]` - adds Type from the constructor to the exclude constraint (equivalent to `Exc()`);
@@ -200,9 +200,9 @@ class VelocitySystem : IEcsRun, IEcsInject, IEcsInject velocities; public Aspect(Builder b) { - b.Exclude(); - poses = b.Include(); - velocities = b.Include(); + b.Exc(); + poses = b.Inc(); + velocities = b.Inc(); } }