//------------------------------------------------------------------------------
//
// 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.Collider2DProxy collider2DProxy { get { return (CoreGame.Render.Collider2DProxy)GetComponent(CombatComponentsLookup.Collider2DProxy); } }
public bool hasCollider2DProxy { get { return HasComponent(CombatComponentsLookup.Collider2DProxy); } }
public void AddCollider2DProxy(System.Collections.Generic.List newCs, CombatEntity newEnt) {
var index = CombatComponentsLookup.Collider2DProxy;
var component = (CoreGame.Render.Collider2DProxy)CreateComponent(index, typeof(CoreGame.Render.Collider2DProxy));
component.cs = newCs;
component.ent = newEnt;
AddComponent(index, component);
}
public void ReplaceCollider2DProxy(System.Collections.Generic.List newCs, CombatEntity newEnt) {
var index = CombatComponentsLookup.Collider2DProxy;
var component = (CoreGame.Render.Collider2DProxy)CreateComponent(index, typeof(CoreGame.Render.Collider2DProxy));
component.cs = newCs;
component.ent = newEnt;
ReplaceComponent(index, component);
}
public void RemoveCollider2DProxy() {
RemoveComponent(CombatComponentsLookup.Collider2DProxy);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherCollider2DProxy;
public static Entitas.IMatcher Collider2DProxy {
get {
if (_matcherCollider2DProxy == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.Collider2DProxy);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherCollider2DProxy = matcher;
}
return _matcherCollider2DProxy;
}
}
}