Battle Talent  V11
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Properties | List of all members
CrossLink.Network.NetworkEffectMgr Class Reference

Inherits CrossLink.Network.NetworkSyncBase.

Public Member Functions

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 ()
 

Public Attributes

bool hasSendChangedSnapshot = true
 
bool onlySyncOnChange = true
 
float onlySyncOnChangeCorrectionMultiplier = 2
 
bool compressQuat = true
 
readonly SortedList< double, NetworkEffectSnapshotclientSnapshots = new SortedList<double, NetworkEffectSnapshot>(16)
 
readonly SortedList< double, NetworkEffectSnapshotserverSnapshots = new SortedList<double, NetworkEffectSnapshot>(16)
 
Queue< NetworkEffectSnapshotcacheSnapshots = 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
 

Static Public Attributes

static NetworkEffectMgr Instance
 
static uint effectIndex = 0
 

Protected Member Functions

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)
 

Properties

static uint GetEffectIndex [get]
 
bool isSender [get]
 
double timeStampAdjustment [get]
 
double offset [get]
 

Additional Inherited Members

Member Data Documentation

◆ lastSnapshot

NetworkEffectSnapshot CrossLink.Network.NetworkEffectMgr.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>(),
}