Inherits CrossLink.Network.NetworkSyncBase.
|
uint | NetworkPlayEffect (string name, Vector3 pos, Quaternion rot) |
|
void | NetworkGiveBackEffect (uint netSimpleId) |
|
virtual void | Reset () |
|
virtual NetworkEffectSnapshot | Construct () |
|
override void | OnSerialize (NetworkWriter writer, bool initialState) |
|
override void | OnDeserialize (NetworkReader reader, bool initialState) |
|
virtual bool | Changed () |
|
|
bool | hasSendChangedSnapshot = true |
|
bool | onlySyncOnChange = true |
|
float | onlySyncOnChangeCorrectionMultiplier = 2 |
|
bool | compressQuat = true |
|
readonly SortedList< double, NetworkEffectSnapshot > | clientSnapshots = new SortedList<double, NetworkEffectSnapshot>(16) |
|
readonly SortedList< double, NetworkEffectSnapshot > | serverSnapshots = new SortedList<double, NetworkEffectSnapshot>(16) |
|
Queue< NetworkEffectSnapshot > | cacheSnapshots = new Queue<NetworkEffectSnapshot>() |
|
List< string > | curPlayEffects = new List<string>() |
|
List< uint > | curPlayIdxs = new List<uint>() |
|
List< Vector3 > | curPlayPosList = new List<Vector3>() |
|
List< Quaternion > | curPlayRotList = new List<Quaternion>() |
|
List< uint > | curGivebackIdxs = new List<uint>() |
|
List< string > | sendPlayEffects = new List<string>() |
|
List< uint > | sendPlayIdxs = new List<uint>() |
|
List< Vector3 > | sendPlayPosList = new List<Vector3>() |
|
List< Quaternion > | sendPlayRotList = new List<Quaternion>() |
|
List< uint > | sendGivebackIdxs = new List<uint>() |
|
NetworkEffectSnapshot | lastSnapshot |
|
bool | timelineOffset = false |
|
bool | NeedToSync = true |
|
uint | sendIntervalMultiplier = 1 |
|
|
virtual void | OnEnable () |
|
virtual void | OnDisable () |
|
override void | LateUpdate () |
|
override void | UpdateServerLerp () |
|
override void | UpdateClientLerp () |
|
virtual void | OnC2SSync (List< string > playList, List< uint > playIdxs, List< Vector3 > playPosList, List< Quaternion > playRotList, List< uint > givebackIdxs) |
|
void | OnS2CSync (List< string > playList, List< uint > playIdxs, List< Vector3 > playPosList, List< Quaternion > playRotList, List< uint > givebackIdxs) |
|
void | AddSnapshot (SortedList< double, NetworkEffectSnapshot > snapshots, double timeStamp, List< string > playList, List< uint > playIdxs, List< Vector3 > playPosList, List< Quaternion > playRotList, List< uint > givebackIdxs) |
|
virtual void | Apply (NetworkEffectSnapshot endGoal) |
|
virtual void | CheckLastSendTime () |
|
virtual void | Update () |
|
virtual void | FixedUpdate () |
|
virtual void | ServerBroadcast () |
|
virtual void | ClientBroadcast () |
|
virtual void | FixedUpdateServerLerp () |
|
virtual void | FixedUpdateClientLerp () |
|
|
static uint | GetEffectIndex [get] |
|
bool | isSender [get] |
|
double | timeStampAdjustment [get] |
|
double | offset [get] |
|
bool | isClientWithAuthority [get] |
|
|
uint | sendIntervalCounter = 0 |
|
double | lastSendIntervalTime = double.MinValue |
|
◆ lastSnapshot
Initial value:= new NetworkEffectSnapshot()
{
remoteTime = 0,
localTime = 0,
playEffects = new List<string>(),
playIdxs = new List<uint>(),
playPos = new List<Vector3>(),
playRot = new List<Quaternion>(),
givebackIdxs = new List<uint>(),
}