//------------------------------------------------------------------------------ // // 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 CombatEntity { public CoreGame.Render.DropItemDataComponent dropItemData { get { return (CoreGame.Render.DropItemDataComponent)GetComponent(CombatComponentsLookup.DropItemData); } } public bool hasDropItemData { get { return HasComponent(CombatComponentsLookup.DropItemData); } } public void AddDropItemData(int newDropItemID, DropItemType newType, int newQuality, int newDropItemCount) { var index = CombatComponentsLookup.DropItemData; var component = (CoreGame.Render.DropItemDataComponent)CreateComponent(index, typeof(CoreGame.Render.DropItemDataComponent)); component.dropItemID = newDropItemID; component.type = newType; component.quality = newQuality; component.dropItemCount = newDropItemCount; AddComponent(index, component); } public void ReplaceDropItemData(int newDropItemID, DropItemType newType, int newQuality, int newDropItemCount) { var index = CombatComponentsLookup.DropItemData; var component = (CoreGame.Render.DropItemDataComponent)CreateComponent(index, typeof(CoreGame.Render.DropItemDataComponent)); component.dropItemID = newDropItemID; component.type = newType; component.quality = newQuality; component.dropItemCount = newDropItemCount; ReplaceComponent(index, component); } public void RemoveDropItemData() { RemoveComponent(CombatComponentsLookup.DropItemData); } } //------------------------------------------------------------------------------ // // 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 CombatMatcher { static Entitas.IMatcher _matcherDropItemData; public static Entitas.IMatcher DropItemData { get { if (_matcherDropItemData == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.DropItemData); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherDropItemData = matcher; } return _matcherDropItemData; } } }