//------------------------------------------------------------------------------
//
// 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.WaitPickUpDropItemComponent waitPickUpDropItem { get { return (CoreGame.Render.WaitPickUpDropItemComponent)GetComponent(CombatComponentsLookup.WaitPickUpDropItem); } }
public bool hasWaitPickUpDropItem { get { return HasComponent(CombatComponentsLookup.WaitPickUpDropItem); } }
public void AddWaitPickUpDropItem(int newDropItemEid, float newTimeAcc) {
var index = CombatComponentsLookup.WaitPickUpDropItem;
var component = (CoreGame.Render.WaitPickUpDropItemComponent)CreateComponent(index, typeof(CoreGame.Render.WaitPickUpDropItemComponent));
component.dropItemEid = newDropItemEid;
component.timeAcc = newTimeAcc;
AddComponent(index, component);
}
public void ReplaceWaitPickUpDropItem(int newDropItemEid, float newTimeAcc) {
var index = CombatComponentsLookup.WaitPickUpDropItem;
var component = (CoreGame.Render.WaitPickUpDropItemComponent)CreateComponent(index, typeof(CoreGame.Render.WaitPickUpDropItemComponent));
component.dropItemEid = newDropItemEid;
component.timeAcc = newTimeAcc;
ReplaceComponent(index, component);
}
public void RemoveWaitPickUpDropItem() {
RemoveComponent(CombatComponentsLookup.WaitPickUpDropItem);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherWaitPickUpDropItem;
public static Entitas.IMatcher WaitPickUpDropItem {
get {
if (_matcherWaitPickUpDropItem == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.WaitPickUpDropItem);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherWaitPickUpDropItem = matcher;
}
return _matcherWaitPickUpDropItem;
}
}
}