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.
		
		
		
		
		
			
		
			
	
	
		
			61 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			C#
		
	
		
		
			
		
	
	
			61 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			C#
		
	
| 
											2 years ago
										 | //------------------------------------------------------------------------------ | ||
|  | // <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 SkillComponent skill { get { return (SkillComponent)GetComponent(GameComponentsLookup.Skill); } } | ||
|  |     public bool hasSkill { get { return HasComponent(GameComponentsLookup.Skill); } } | ||
|  | 
 | ||
|  |     public void AddSkill(Game.MetaData<string> newSkillId, bool newIsRunning, UnityEngine.Vector3 newCastDir, System.Collections.Generic.Dictionary<System.Tuple<int, int>, Game.SkillHitInfo> newSkillHitInfo, System.Collections.Generic.List<Game.SkillHitInfo> newHitInfo) { | ||
|  |         var index = GameComponentsLookup.Skill; | ||
|  |         var component = (SkillComponent)CreateComponent(index, typeof(SkillComponent)); | ||
|  |         component.SkillId = newSkillId; | ||
|  |         component.IsRunning = newIsRunning; | ||
|  |         component.CastDir = newCastDir; | ||
|  |         AddComponent(index, component); | ||
|  |     } | ||
|  | 
 | ||
|  |     public void ReplaceSkill(Game.MetaData<string> newSkillId, bool newIsRunning, UnityEngine.Vector3 newCastDir, System.Collections.Generic.Dictionary<System.Tuple<int, int>, Game.SkillHitInfo> newSkillHitInfo, System.Collections.Generic.List<Game.SkillHitInfo> newHitInfo) { | ||
|  |         var index = GameComponentsLookup.Skill; | ||
|  |         var component = (SkillComponent)CreateComponent(index, typeof(SkillComponent)); | ||
|  |         component.SkillId = newSkillId; | ||
|  |         component.IsRunning = newIsRunning; | ||
|  |         component.CastDir = newCastDir; | ||
|  |         ReplaceComponent(index, component); | ||
|  |     } | ||
|  | 
 | ||
|  |     public void RemoveSkill() { | ||
|  |         RemoveComponent(GameComponentsLookup.Skill); | ||
|  |     } | ||
|  | } | ||
|  | 
 | ||
|  | //------------------------------------------------------------------------------ | ||
|  | // <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> _matcherSkill; | ||
|  | 
 | ||
|  |     public static Entitas.IMatcher<GameEntity> Skill { | ||
|  |         get { | ||
|  |             if (_matcherSkill == null) { | ||
|  |                 var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Skill); | ||
|  |                 matcher.componentNames = GameComponentsLookup.componentNames; | ||
|  |                 _matcherSkill = matcher; | ||
|  |             } | ||
|  | 
 | ||
|  |             return _matcherSkill; | ||
|  |         } | ||
|  |     } | ||
|  | } |