UE3:UTVoteReplicationInfo (UT3): Difference between revisions

From Unreal Wiki, The Unreal Engine Documentation Site
Auto-generated page
 
m 1 revision
Line 7: Line 7:
}}
}}
{{autogenerated}}
{{autogenerated}}
Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.
Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.


==Properties==
==Properties==
====bVotingOver====
'''Type:''' [[bool]]
<!-- enter variable description -->
====Collector====
====Collector====
'''Type:''' {{cl|UTVoteCollector}}
'''Type:''' {{cl|UTVoteCollector}}
Line 27: Line 32:
====LeadingMap====
====LeadingMap====
'''Type:''' [[string]]
'''Type:''' [[string]]
<!-- enter variable description -->
====LeadingMaps====
'''Type:''' [[array]]<[[string]]>


<!-- enter variable description -->
<!-- enter variable description -->
Line 51: Line 61:


Used to detect the setting of the owner without RepNotifing Owner
Used to detect the setting of the owner without RepNotifing Owner
====PendingBeginVoting====
'''Type:''' [[byte]]
<!-- enter variable description -->
====RecordVoteCounter====
'''Type:''' [[int]]
<!-- enter variable description -->
====RecordVoteTimestamp====
'''Type:''' [[float]]
<!-- enter variable description -->


====SendIndex====
====SendIndex====
Line 95: Line 120:
====ClientBeginVoting====
====ClientBeginVoting====
{{code|simulated reliable client function '''ClientBeginVoting''' ()}}
{{code|simulated reliable client function '''ClientBeginVoting''' ()}}
<!-- enter function description -->
====ClientBeginVotingNew====
{{code|simulated reliable client function '''ClientBeginVotingNew''' ()}}


<!-- enter function description -->
<!-- enter function description -->
Line 156: Line 186:
'''Overrides:''' {{tl|Tick|Actor|events}} ''(global)''
'''Overrides:''' {{tl|Tick|Actor|events}} ''(global)''


TODO - Probably better to use a timer here
<!-- enter function description -->


====ReplicatingToClient.ServerAckTransfer====
====ReplicatingToClient.ServerAckTransfer====

Revision as of 02:27, 26 July 2008

UT3 Object >> Actor >> Info >> ReplicationInfo >> UTVoteReplicationInfo
Package:
UTGame

Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.

Properties

bVotingOver

Type: bool


Collector

Type: UTVoteCollector

Cached reference to our collector

dummy

Type: int


LastSendIndex

Type: int


LeadingMap

Type: string


LeadingMaps

Type: array<string>


MapCount

Type: int

How many maps are we expecting

Maps

Type: array<UTVoteCollector.MapVoteInfo>

Our local view of the map data

MyCurrnetVoteID

Type: int


Default value: -1

OldOwner

Type: Actor

Used to detect the setting of the owner without RepNotifing Owner

PendingBeginVoting

Type: byte


RecordVoteCounter

Type: int


RecordVoteTimestamp

Type: float


SendIndex

Type: int


Default values

Functions

Native functions

GetMapIndex

native function int GetMapIndex (int MapID)


Events

ClientHasOwner

simulated event ClientHasOwner ()

Called when the client receives his owner. Let the server know it can begin sending maps

PostBeginPlay

simulated event PostBeginPlay ()

Overrides: Actor.PostBeginPlay


Other instance functions

ClientBeginVoting

simulated reliable client function ClientBeginVoting ()


ClientBeginVotingNew

simulated reliable client function ClientBeginVotingNew ()


ClientInitTransfer

simulated reliable client function ClientInitTransfer (int TotalMapCount)


ClientRecvMapInfo

simulated reliable client function ClientRecvMapInfo (UTVoteCollector.MapVoteInfo VInfo)

We have received a map from the server. Add it

ClientRecvMapUpdate

simulated reliable client function ClientRecvMapUpdate (int MapId, byte VoteCntUpdate)


ClientTimesUp

simulated reliable client function ClientTimesUp ()


Initialize

function Initialize (UTVoteCollector NewCollector)


ServerAckTransfer

reliable server function ServerAckTransfer ()


ServerClientIsReady

reliable server function ServerClientIsReady ()


ServerRecordVoteFor

reliable server function ServerRecordVoteFor (int MapIdToVoteFor)


States

ReplicatingToClient

Replicate the votes to the client. We send 1 vote at a time and wait for a response.

ReplicatingToClient.BeginState

event BeginState (name PrevStateName)

Overrides: Object.BeginState (global)

Called immediately when entering a state, while within the GotoState() call that caused the state change (before any state code is executed).

ReplicatingToClient.Tick

event Tick (float DeltaTime)

Overrides: Actor.Tick (global)


ReplicatingToClient.ServerAckTransfer

reliable server function ServerAckTransfer ()

Overrides: ServerAckTransfer (global)


Voting

Voting.BeginState

event BeginState (name PrevStateName)

Overrides: Object.BeginState (global)

Called immediately when entering a state, while within the GotoState() call that caused the state change (before any state code is executed).