//------------------------------------------------------------------------------ // // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ public partial class GameEntity { public PropertyComponent property { get { return (PropertyComponent)GetComponent(GameComponentsLookup.Property); } } public bool hasProperty { get { return HasComponent(GameComponentsLookup.Property); } } public void AddProperty(System.Collections.Generic.Dictionary newProperty) { var index = GameComponentsLookup.Property; var component = (PropertyComponent)CreateComponent(index, typeof(PropertyComponent)); component.Property = newProperty; AddComponent(index, component); } public void ReplaceProperty(System.Collections.Generic.Dictionary newProperty) { var index = GameComponentsLookup.Property; var component = (PropertyComponent)CreateComponent(index, typeof(PropertyComponent)); component.Property = newProperty; ReplaceComponent(index, component); } public void RemoveProperty() { RemoveComponent(GameComponentsLookup.Property); } } //------------------------------------------------------------------------------ // // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ public sealed partial class GameMatcher { static Entitas.IMatcher _matcherProperty; public static Entitas.IMatcher Property { get { if (_matcherProperty == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Property); matcher.componentNames = GameComponentsLookup.componentNames; _matcherProperty = matcher; } return _matcherProperty; } } }