//------------------------------------------------------------------------------ // // 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 BagComponent bag { get { return (BagComponent)GetComponent(GameComponentsLookup.Bag); } } public bool hasBag { get { return HasComponent(GameComponentsLookup.Bag); } } public void AddBag(Game.MetaDictionary newAllBless, System.Collections.Generic.List newChooseBless) { var index = GameComponentsLookup.Bag; var component = (BagComponent)CreateComponent(index, typeof(BagComponent)); component.AllBless = newAllBless; component.ChooseBless = newChooseBless; AddComponent(index, component); } public void ReplaceBag(Game.MetaDictionary newAllBless, System.Collections.Generic.List newChooseBless) { var index = GameComponentsLookup.Bag; var component = (BagComponent)CreateComponent(index, typeof(BagComponent)); component.AllBless = newAllBless; component.ChooseBless = newChooseBless; ReplaceComponent(index, component); } public void RemoveBag() { RemoveComponent(GameComponentsLookup.Bag); } } //------------------------------------------------------------------------------ // // 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 _matcherBag; public static Entitas.IMatcher Bag { get { if (_matcherBag == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Bag); matcher.componentNames = GameComponentsLookup.componentNames; _matcherBag = matcher; } return _matcherBag; } } }