コード例 #1
0
        // Token: 0x06000AD7 RID: 2775 RVA: 0x0003582C File Offset: 0x00033A2C
        public EffectData Clone()
        {
            EffectData effectData = new EffectData();

            EffectData.Copy(this, effectData);
            return(effectData);
        }
コード例 #2
0
 // Token: 0x06000EB9 RID: 3769 RVA: 0x0004881C File Offset: 0x00046A1C
 private void TransmitEffect(uint effectPrefabIndex, EffectData effectData, NetworkConnection netOrigin = null)
 {
     EffectManager.outgoingEffectMessage.effectPrefabIndex = effectPrefabIndex;
     EffectData.Copy(effectData, EffectManager.outgoingEffectMessage.effectData);
     if (NetworkServer.active)
     {
         using (IEnumerator <NetworkConnection> enumerator = NetworkServer.connections.GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 NetworkConnection networkConnection = enumerator.Current;
                 if (networkConnection != null && networkConnection != netOrigin)
                 {
                     networkConnection.SendByChannel(52, EffectManager.outgoingEffectMessage, QosChannelIndex.effects.intVal);
                 }
             }
             return;
         }
     }
     if (ClientScene.readyConnection != null)
     {
         ClientScene.readyConnection.SendByChannel(52, EffectManager.outgoingEffectMessage, QosChannelIndex.effects.intVal);
     }
 }