You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.5 KiB
56 lines
2.5 KiB
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 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.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
public partial class CombatEntity {
|
|
|
|
public CoreGame.Render.DetachAssetComponent detachAsset { get { return (CoreGame.Render.DetachAssetComponent)GetComponent(CombatComponentsLookup.DetachAsset); } }
|
|
public bool hasDetachAsset { get { return HasComponent(CombatComponentsLookup.DetachAsset); } }
|
|
|
|
public void AddDetachAsset(BindPointType newBindPointType) {
|
|
var index = CombatComponentsLookup.DetachAsset;
|
|
var component = (CoreGame.Render.DetachAssetComponent)CreateComponent(index, typeof(CoreGame.Render.DetachAssetComponent));
|
|
component.bindPointType = newBindPointType;
|
|
AddComponent(index, component);
|
|
}
|
|
|
|
public void ReplaceDetachAsset(BindPointType newBindPointType) {
|
|
var index = CombatComponentsLookup.DetachAsset;
|
|
var component = (CoreGame.Render.DetachAssetComponent)CreateComponent(index, typeof(CoreGame.Render.DetachAssetComponent));
|
|
component.bindPointType = newBindPointType;
|
|
ReplaceComponent(index, component);
|
|
}
|
|
|
|
public void RemoveDetachAsset() {
|
|
RemoveComponent(CombatComponentsLookup.DetachAsset);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 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.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
public sealed partial class CombatMatcher {
|
|
|
|
static Entitas.IMatcher<CombatEntity> _matcherDetachAsset;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> DetachAsset {
|
|
get {
|
|
if (_matcherDetachAsset == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.DetachAsset);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherDetachAsset = matcher;
|
|
}
|
|
|
|
return _matcherDetachAsset;
|
|
}
|
|
}
|
|
}
|
|
|