//------------------------------------------------------------------------------
//
// 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.LevelWaveComponent levelWave { get { return (CoreGame.Render.LevelWaveComponent)GetComponent(CombatComponentsLookup.LevelWave); } }
public bool hasLevelWave { get { return HasComponent(CombatComponentsLookup.LevelWave); } }
public void AddLevelWave(System.Collections.Generic.Dictionary newLifeEid2WaveIdx, System.Collections.Generic.List newWaveParams, CoreGame.Render.LevelSpawnState newState, float newTotalTime, int newBattleId) {
var index = CombatComponentsLookup.LevelWave;
var component = (CoreGame.Render.LevelWaveComponent)CreateComponent(index, typeof(CoreGame.Render.LevelWaveComponent));
component.lifeEid2WaveIdx = newLifeEid2WaveIdx;
component.waveParams = newWaveParams;
component.state = newState;
component.totalTime = newTotalTime;
component.battleId = newBattleId;
AddComponent(index, component);
}
public void ReplaceLevelWave(System.Collections.Generic.Dictionary newLifeEid2WaveIdx, System.Collections.Generic.List newWaveParams, CoreGame.Render.LevelSpawnState newState, float newTotalTime, int newBattleId) {
var index = CombatComponentsLookup.LevelWave;
var component = (CoreGame.Render.LevelWaveComponent)CreateComponent(index, typeof(CoreGame.Render.LevelWaveComponent));
component.lifeEid2WaveIdx = newLifeEid2WaveIdx;
component.waveParams = newWaveParams;
component.state = newState;
component.totalTime = newTotalTime;
component.battleId = newBattleId;
ReplaceComponent(index, component);
}
public void RemoveLevelWave() {
RemoveComponent(CombatComponentsLookup.LevelWave);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherLevelWave;
public static Entitas.IMatcher LevelWave {
get {
if (_matcherLevelWave == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.LevelWave);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherLevelWave = matcher;
}
return _matcherLevelWave;
}
}
}