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.
 
 
 
 
 
 

58 lines
2.6 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.AssetComponent asset { get { return (CoreGame.Render.AssetComponent)GetComponent(CombatComponentsLookup.Asset); } }
public bool hasAsset { get { return HasComponent(CombatComponentsLookup.Asset); } }
public void AddAsset(CoreGame.Render.MainAssetParam newMainAssetParam, System.Collections.Generic.List<System.Type> newIgnoreTypes) {
var index = CombatComponentsLookup.Asset;
var component = (CoreGame.Render.AssetComponent)CreateComponent(index, typeof(CoreGame.Render.AssetComponent));
component.mainAssetParam = newMainAssetParam;
component.ignoreTypes = newIgnoreTypes;
AddComponent(index, component);
}
public void ReplaceAsset(CoreGame.Render.MainAssetParam newMainAssetParam, System.Collections.Generic.List<System.Type> newIgnoreTypes) {
var index = CombatComponentsLookup.Asset;
var component = (CoreGame.Render.AssetComponent)CreateComponent(index, typeof(CoreGame.Render.AssetComponent));
component.mainAssetParam = newMainAssetParam;
component.ignoreTypes = newIgnoreTypes;
ReplaceComponent(index, component);
}
public void RemoveAsset() {
RemoveComponent(CombatComponentsLookup.Asset);
}
}
//------------------------------------------------------------------------------
// <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> _matcherAsset;
public static Entitas.IMatcher<CombatEntity> Asset {
get {
if (_matcherAsset == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.Asset);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherAsset = matcher;
}
return _matcherAsset;
}
}
}