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.8 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.LogicTransformComponent logicTransform { get { return (CoreGame.Render.LogicTransformComponent)GetComponent(CombatComponentsLookup.LogicTransform); } }
public bool hasLogicTransform { get { return HasComponent(CombatComponentsLookup.LogicTransform); } }
public void AddLogicTransform(Sog.Fixed64Vector2 newPosition, Sog.Fixed64Vector2 newScale, Sog.Fixed64Vector2 newForward) {
var index = CombatComponentsLookup.LogicTransform;
var component = (CoreGame.Render.LogicTransformComponent)CreateComponent(index, typeof(CoreGame.Render.LogicTransformComponent));
component.position = newPosition;
component.scale = newScale;
component.forward = newForward;
AddComponent(index, component);
}
public void ReplaceLogicTransform(Sog.Fixed64Vector2 newPosition, Sog.Fixed64Vector2 newScale, Sog.Fixed64Vector2 newForward) {
var index = CombatComponentsLookup.LogicTransform;
var component = (CoreGame.Render.LogicTransformComponent)CreateComponent(index, typeof(CoreGame.Render.LogicTransformComponent));
component.position = newPosition;
component.scale = newScale;
component.forward = newForward;
ReplaceComponent(index, component);
}
public void RemoveLogicTransform() {
RemoveComponent(CombatComponentsLookup.LogicTransform);
}
}
//------------------------------------------------------------------------------
// <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> _matcherLogicTransform;
public static Entitas.IMatcher<CombatEntity> LogicTransform {
get {
if (_matcherLogicTransform == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.LogicTransform);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherLogicTransform = matcher;
}
return _matcherLogicTransform;
}
}
}