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.
 
 
 
 
 
 

64 lines
3.1 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.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<int, int> newLifeEid2WaveIdx, System.Collections.Generic.List<CoreGame.Render.WaveParam> 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<int, int> newLifeEid2WaveIdx, System.Collections.Generic.List<CoreGame.Render.WaveParam> 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);
}
}
//------------------------------------------------------------------------------
// <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> _matcherLevelWave;
public static Entitas.IMatcher<CombatEntity> LevelWave {
get {
if (_matcherLevelWave == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.LevelWave);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherLevelWave = matcher;
}
return _matcherLevelWave;
}
}
}