//------------------------------------------------------------------------------
//
// 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.SurroundBulletComponent surroundBullet { get { return (CoreGame.Render.SurroundBulletComponent)GetComponent(CombatComponentsLookup.SurroundBullet); } }
public bool hasSurroundBullet { get { return HasComponent(CombatComponentsLookup.SurroundBullet); } }
public void AddSurroundBullet(int newHandleEid, Sog.Fixed64 newDistance) {
var index = CombatComponentsLookup.SurroundBullet;
var component = (CoreGame.Render.SurroundBulletComponent)CreateComponent(index, typeof(CoreGame.Render.SurroundBulletComponent));
component.handleEid = newHandleEid;
component.distance = newDistance;
AddComponent(index, component);
}
public void ReplaceSurroundBullet(int newHandleEid, Sog.Fixed64 newDistance) {
var index = CombatComponentsLookup.SurroundBullet;
var component = (CoreGame.Render.SurroundBulletComponent)CreateComponent(index, typeof(CoreGame.Render.SurroundBulletComponent));
component.handleEid = newHandleEid;
component.distance = newDistance;
ReplaceComponent(index, component);
}
public void RemoveSurroundBullet() {
RemoveComponent(CombatComponentsLookup.SurroundBullet);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherSurroundBullet;
public static Entitas.IMatcher SurroundBullet {
get {
if (_matcherSurroundBullet == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.SurroundBullet);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherSurroundBullet = matcher;
}
return _matcherSurroundBullet;
}
}
}