27 lines
		
	
	
		
			450 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			450 B
		
	
	
	
		
			C#
		
	
	
	
| 
								 | 
							
								using System.Collections;
							 | 
						||
| 
								 | 
							
								using System.Collections.Generic;
							 | 
						||
| 
								 | 
							
								using Godot;
							 | 
						||
| 
								 | 
							
								using System;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace Rokojori
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								  public class Transformable<T>
							 | 
						||
| 
								 | 
							
								  {
							 | 
						||
| 
								 | 
							
								    public Transform3D transform;
							 | 
						||
| 
								 | 
							
								    public T item;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public Transformable( T data, Transform3D transform3D )
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								      this.item = data;
							 | 
						||
| 
								 | 
							
								      this.transform = transform3D;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public Transformable( T data )
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								      this.item = data;
							 | 
						||
| 
								 | 
							
								      transform = Transform3D.Identity;
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 |