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.
60 lines
2.7 KiB
60 lines
2.7 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.TransformProxy transformProxy { get { return (CoreGame.Render.TransformProxy)GetComponent(CombatComponentsLookup.TransformProxy); } }
|
|
public bool hasTransformProxy { get { return HasComponent(CombatComponentsLookup.TransformProxy); } }
|
|
|
|
public void AddTransformProxy(UnityEngine.Vector2 newPosition, UnityEngine.Vector2 newDirection, CombatEntity newEnt) {
|
|
var index = CombatComponentsLookup.TransformProxy;
|
|
var component = (CoreGame.Render.TransformProxy)CreateComponent(index, typeof(CoreGame.Render.TransformProxy));
|
|
component.position = newPosition;
|
|
component.direction = newDirection;
|
|
component.ent = newEnt;
|
|
AddComponent(index, component);
|
|
}
|
|
|
|
public void ReplaceTransformProxy(UnityEngine.Vector2 newPosition, UnityEngine.Vector2 newDirection, CombatEntity newEnt) {
|
|
var index = CombatComponentsLookup.TransformProxy;
|
|
var component = (CoreGame.Render.TransformProxy)CreateComponent(index, typeof(CoreGame.Render.TransformProxy));
|
|
component.position = newPosition;
|
|
component.direction = newDirection;
|
|
component.ent = newEnt;
|
|
ReplaceComponent(index, component);
|
|
}
|
|
|
|
public void RemoveTransformProxy() {
|
|
RemoveComponent(CombatComponentsLookup.TransformProxy);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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> _matcherTransformProxy;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> TransformProxy {
|
|
get {
|
|
if (_matcherTransformProxy == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.TransformProxy);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherTransformProxy = matcher;
|
|
}
|
|
|
|
return _matcherTransformProxy;
|
|
}
|
|
}
|
|
}
|
|
|