You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
3.1 KiB
C#
65 lines
3.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// <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 GameEntity {
|
|
|
|
public MasterSoulComponent masterSoul { get { return (MasterSoulComponent)GetComponent(GameComponentsLookup.MasterSoul); } }
|
|
public bool hasMasterSoul { get { return HasComponent(GameComponentsLookup.MasterSoul); } }
|
|
|
|
public void AddMasterSoul(float newShakeTimeLeft, FluidDynamics.Fluid_Dynamics_Game_Emitter newEmitter, float newShootTimeLeft, System.Collections.Generic.Queue<int> newShootTargetQueue, System.Collections.Generic.List<MasterSoulShootInfo> newShootPreList) {
|
|
var index = GameComponentsLookup.MasterSoul;
|
|
var component = (MasterSoulComponent)CreateComponent(index, typeof(MasterSoulComponent));
|
|
component.ShakeTimeLeft = newShakeTimeLeft;
|
|
component.Emitter = newEmitter;
|
|
component.ShootTimeLeft = newShootTimeLeft;
|
|
component.ShootTargetQueue = newShootTargetQueue;
|
|
component.ShootPreList = newShootPreList;
|
|
AddComponent(index, component);
|
|
}
|
|
|
|
public void ReplaceMasterSoul(float newShakeTimeLeft, FluidDynamics.Fluid_Dynamics_Game_Emitter newEmitter, float newShootTimeLeft, System.Collections.Generic.Queue<int> newShootTargetQueue, System.Collections.Generic.List<MasterSoulShootInfo> newShootPreList) {
|
|
var index = GameComponentsLookup.MasterSoul;
|
|
var component = (MasterSoulComponent)CreateComponent(index, typeof(MasterSoulComponent));
|
|
component.ShakeTimeLeft = newShakeTimeLeft;
|
|
component.Emitter = newEmitter;
|
|
component.ShootTimeLeft = newShootTimeLeft;
|
|
component.ShootTargetQueue = newShootTargetQueue;
|
|
component.ShootPreList = newShootPreList;
|
|
ReplaceComponent(index, component);
|
|
}
|
|
|
|
public void RemoveMasterSoul() {
|
|
RemoveComponent(GameComponentsLookup.MasterSoul);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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 GameMatcher {
|
|
|
|
static Entitas.IMatcher<GameEntity> _matcherMasterSoul;
|
|
|
|
public static Entitas.IMatcher<GameEntity> MasterSoul {
|
|
get {
|
|
if (_matcherMasterSoul == null) {
|
|
var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.MasterSoul);
|
|
matcher.componentNames = GameComponentsLookup.componentNames;
|
|
_matcherMasterSoul = matcher;
|
|
}
|
|
|
|
return _matcherMasterSoul;
|
|
}
|
|
}
|
|
}
|