//------------------------------------------------------------------------------ // // 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 IDComponent iD { get { return (IDComponent)GetComponent(GameComponentsLookup.ID); } } public bool hasID { get { return HasComponent(GameComponentsLookup.ID); } } public void AddID(int newValue, CommonData newData) { var index = GameComponentsLookup.ID; var component = (IDComponent)CreateComponent(index, typeof(IDComponent)); component.Value = newValue; component.Data = newData; AddComponent(index, component); } public void ReplaceID(int newValue, CommonData newData) { var index = GameComponentsLookup.ID; var component = (IDComponent)CreateComponent(index, typeof(IDComponent)); component.Value = newValue; component.Data = newData; ReplaceComponent(index, component); } public void RemoveID() { RemoveComponent(GameComponentsLookup.ID); } } //------------------------------------------------------------------------------ // // 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 _matcherID; public static Entitas.IMatcher ID { get { if (_matcherID == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.ID); matcher.componentNames = GameComponentsLookup.componentNames; _matcherID = matcher; } return _matcherID; } } }