21 lines
		
	
	
		
			267 B
		
	
	
	
		
			SourcePawn
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			267 B
		
	
	
	
		
			SourcePawn
		
	
	
	
	
	
| #pragma semicolon 1
 | |
| 
 | |
| native IsValidEntity(entity);
 | |
| 
 | |
| methodmap Entity
 | |
| {
 | |
| 	public Entity(const char[] className) {
 | |
| 		return Entity:CreateEntityByName(className);
 | |
| 	}
 | |
| 
 | |
| 	property bool IsValid {
 | |
| 		public get() {
 | |
| 			return IsValidEntity(_:this);
 | |
| 		}
 | |
| 	}
 | |
| };
 | |
| 
 | |
| public main()
 | |
| {
 | |
| }
 |