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.
 
 
 
 
 
 

62 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.SummonComponent summon { get { return (CoreGame.Render.SummonComponent)GetComponent(CombatComponentsLookup.Summon); } }
public bool hasSummon { get { return HasComponent(CombatComponentsLookup.Summon); } }
public void AddSummon(int newSummonId, float newMaxExistTime, SummonSurvivalType newSurvivalType, float newSurvivalParam1) {
var index = CombatComponentsLookup.Summon;
var component = (CoreGame.Render.SummonComponent)CreateComponent(index, typeof(CoreGame.Render.SummonComponent));
component.summonId = newSummonId;
component.maxExistTime = newMaxExistTime;
component.survivalType = newSurvivalType;
component.survivalParam1 = newSurvivalParam1;
AddComponent(index, component);
}
public void ReplaceSummon(int newSummonId, float newMaxExistTime, SummonSurvivalType newSurvivalType, float newSurvivalParam1) {
var index = CombatComponentsLookup.Summon;
var component = (CoreGame.Render.SummonComponent)CreateComponent(index, typeof(CoreGame.Render.SummonComponent));
component.summonId = newSummonId;
component.maxExistTime = newMaxExistTime;
component.survivalType = newSurvivalType;
component.survivalParam1 = newSurvivalParam1;
ReplaceComponent(index, component);
}
public void RemoveSummon() {
RemoveComponent(CombatComponentsLookup.Summon);
}
}
//------------------------------------------------------------------------------
// <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> _matcherSummon;
public static Entitas.IMatcher<CombatEntity> Summon {
get {
if (_matcherSummon == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.Summon);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherSummon = matcher;
}
return _matcherSummon;
}
}
}