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
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.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<UnityEngine.Collider2D> 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<UnityEngine.Collider2D> 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);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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> _matcherCollider2DProxy;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> Collider2DProxy {
|
|
get {
|
|
if (_matcherCollider2DProxy == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.Collider2DProxy);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherCollider2DProxy = matcher;
|
|
}
|
|
|
|
return _matcherCollider2DProxy;
|
|
}
|
|
}
|
|
}
|
|
|