📄 unpenlev.h
字号:
/*=============================================================================
UnPenLev.h: Unreal pending level definition.
Copyright 1997-1999 Epic Games, Inc. All Rights Reserved.
Revision history:
* Created by Tim Sweeney
=============================================================================*/
/*-----------------------------------------------------------------------------
UPendingLevel.
-----------------------------------------------------------------------------*/
//
// Class controlling a pending game level.
//
class UPendingLevel : public ULevelBase
{
DECLARE_ABSTRACT_CLASS(UPendingLevel,UObject,0)
NO_DEFAULT_CONSTRUCTOR(UPendingLevel)
// Variables.
UBOOL Success;
UBOOL SentJoin;
UBOOL LonePlayer;
INT FilesNeeded;
FString Error;
// Constructors.
UPendingLevel( UEngine* InEngine, const FURL& InURL );
// UPendingLevel interface.
virtual void Tick( FLOAT DeltaTime )=0;
virtual UNetDriver* GetDriver()=0;
};
/*-----------------------------------------------------------------------------
UNetPendingLevel.
-----------------------------------------------------------------------------*/
class UNetPendingLevel : public UPendingLevel
{
DECLARE_CLASS(UNetPendingLevel,UPendingLevel,CLASS_Transient)
NO_DEFAULT_CONSTRUCTOR(UNetPendingLevel)
// Constructors.
UNetPendingLevel( UEngine* InEngine, const FURL& InURL );
// FNetworkNotify interface.
EAcceptConnection NotifyAcceptingConnection();
void NotifyAcceptedConnection( class UNetConnection* Connection );
UBOOL NotifyAcceptingChannel( class FChannel* Channel );
ULevel* NotifyGetLevel();
void NotifyReceivedText( UNetConnection* Connection, const TCHAR* Text );
void NotifyReceivedFile( UNetConnection* Connection, INT PackageIndex, const TCHAR* Error );
UBOOL NotifySendingFile( UNetConnection* Connection, FGuid Guid );
// UPendingLevel interface.
void Tick( FLOAT DeltaTime );
UNetDriver* GetDriver() { return NetDriver; }
};
/*-----------------------------------------------------------------------------
The End.
-----------------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -