//------------------------------------------------------------------------------
//
// 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.AttachAssetComponent attachAsset { get { return (CoreGame.Render.AttachAssetComponent)GetComponent(CombatComponentsLookup.AttachAsset); } }
public bool hasAttachAsset { get { return HasComponent(CombatComponentsLookup.AttachAsset); } }
public void AddAttachAsset(BindPointType newBindPointType, float newRetryTime, bool newIsActive) {
var index = CombatComponentsLookup.AttachAsset;
var component = (CoreGame.Render.AttachAssetComponent)CreateComponent(index, typeof(CoreGame.Render.AttachAssetComponent));
component.bindPointType = newBindPointType;
component.retryTime = newRetryTime;
component.isActive = newIsActive;
AddComponent(index, component);
}
public void ReplaceAttachAsset(BindPointType newBindPointType, float newRetryTime, bool newIsActive) {
var index = CombatComponentsLookup.AttachAsset;
var component = (CoreGame.Render.AttachAssetComponent)CreateComponent(index, typeof(CoreGame.Render.AttachAssetComponent));
component.bindPointType = newBindPointType;
component.retryTime = newRetryTime;
component.isActive = newIsActive;
ReplaceComponent(index, component);
}
public void RemoveAttachAsset() {
RemoveComponent(CombatComponentsLookup.AttachAsset);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherAttachAsset;
public static Entitas.IMatcher AttachAsset {
get {
if (_matcherAttachAsset == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.AttachAsset);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherAttachAsset = matcher;
}
return _matcherAttachAsset;
}
}
}