Engine
Class SpawnNotify

source: e:\games\UnrealTournament\Engine\Classes\SpawnNotify.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.SpawnNotify
Direct Known Subclasses:None

class SpawnNotify
extends Engine.Actor

//============================================================================= // SpawnNotify - Actor spawn notification. // NB - This happens on the client AND server for replicated actors. //=============================================================================
Variables
 class ActorClass
 SpawnNotify Next


Function Summary
 
simulated
PostBeginPlay()



Source Code


00001	//=============================================================================
00002	// SpawnNotify - Actor spawn notification.  
00003	//   NB - This happens on the client AND server for replicated actors.
00004	//=============================================================================
00005	class SpawnNotify expands Actor
00006		native;
00007	
00008	var class<Actor> ActorClass;
00009	var SpawnNotify  Next;
00010	
00011	replication
00012	{
00013		reliable if( Role == ROLE_Authority )
00014			ActorClass;
00015	}
00016	
00017	simulated function PostBeginPlay()
00018	{
00019		local SpawnNotify N;
00020	
00021		for(N = Level.SpawnNotify; N != None; N = N.Next)
00022			if(N == Self)
00023				return;
00024	
00025		Next = Level.SpawnNotify;
00026		Level.SpawnNotify = Self;
00027	}
00028	
00029	simulated event Destroyed()
00030	{
00031		local SpawnNotify N;
00032		
00033		if(Level.SpawnNotify == Self)
00034		{
00035			Level.SpawnNotify = Next;
00036			Next = None;		
00037		}
00038		else
00039		{
00040			for(N = Level.SpawnNotify; N != None && N.Next != None; N = N.Next)
00041			{
00042				if(N.Next == Self)
00043				{
00044					N.Next = Next;
00045					Next = None;
00046					return;
00047				}
00048			}
00049		}
00050	}
00051	
00052	simulated event Actor SpawnNotification(Actor A)
00053	{
00054		return A;
00055	}
00056	
00057	defaultproperties
00058	{
00059	     ActorClass=Class'Engine.Actor'
00060	     bHidden=True
00061	     bAlwaysRelevant=True
00062	     bNetTemporary=True
00063	}

End Source Code