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.
		
		
		
		
		
			
		
			
	
	
		
			63 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			C#
		
	
		
		
			
		
	
	
			63 lines
		
	
	
		
			2.6 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 PointComponent point { get { return (PointComponent)GetComponent(GameComponentsLookup.Point); } }
							 | 
						||
| 
								 | 
							
								    public bool hasPoint { get { return HasComponent(GameComponentsLookup.Point); } }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public void AddPoint(EPointState newState, EPointType newPointType, UnityEngine.Vector3 newCastSpeed, float newTimeLeft) {
							 | 
						||
| 
								 | 
							
								        var index = GameComponentsLookup.Point;
							 | 
						||
| 
								 | 
							
								        var component = (PointComponent)CreateComponent(index, typeof(PointComponent));
							 | 
						||
| 
								 | 
							
								        component.State = newState;
							 | 
						||
| 
								 | 
							
								        component.PointType = newPointType;
							 | 
						||
| 
								 | 
							
								        component.CastSpeed = newCastSpeed;
							 | 
						||
| 
								 | 
							
								        component.TimeLeft = newTimeLeft;
							 | 
						||
| 
								 | 
							
								        AddComponent(index, component);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public void ReplacePoint(EPointState newState, EPointType newPointType, UnityEngine.Vector3 newCastSpeed, float newTimeLeft) {
							 | 
						||
| 
								 | 
							
								        var index = GameComponentsLookup.Point;
							 | 
						||
| 
								 | 
							
								        var component = (PointComponent)CreateComponent(index, typeof(PointComponent));
							 | 
						||
| 
								 | 
							
								        component.State = newState;
							 | 
						||
| 
								 | 
							
								        component.PointType = newPointType;
							 | 
						||
| 
								 | 
							
								        component.CastSpeed = newCastSpeed;
							 | 
						||
| 
								 | 
							
								        component.TimeLeft = newTimeLeft;
							 | 
						||
| 
								 | 
							
								        ReplaceComponent(index, component);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public void RemovePoint() {
							 | 
						||
| 
								 | 
							
								        RemoveComponent(GameComponentsLookup.Point);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								//------------------------------------------------------------------------------
							 | 
						||
| 
								 | 
							
								// <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> _matcherPoint;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public static Entitas.IMatcher<GameEntity> Point {
							 | 
						||
| 
								 | 
							
								        get {
							 | 
						||
| 
								 | 
							
								            if (_matcherPoint == null) {
							 | 
						||
| 
								 | 
							
								                var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Point);
							 | 
						||
| 
								 | 
							
								                matcher.componentNames = GameComponentsLookup.componentNames;
							 | 
						||
| 
								 | 
							
								                _matcherPoint = matcher;
							 | 
						||
| 
								 | 
							
								            }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            return _matcherPoint;
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |