Example #1
0
 public void DeserializeView(FordiStream stream, FordiMessageInfo info)
 {
     if (this.ObservedComponents != null && this.ObservedComponents.Count > 0)
     {
         for (int i = 0; i < this.ObservedComponents.Count; ++i)
         {
             DeserializeComponent(this.ObservedComponents[i], stream, info);
         }
     }
 }
Example #2
0
 protected internal void DeserializeComponent(Component component, FordiStream stream, FordiMessageInfo info)
 {
     if (component is IFordiObservable observable)
     {
         observable.OnFordiSerializeView(stream, info);
     }
     else
     {
         Debug.LogError("Observed scripts have to implement IPunObservable. " + component + " does not. It is Type: " + component.GetType(), component.gameObject);
     }
 }
Example #3
0
 public void OnFordiSerializeView(FordiStream stream, FordiMessageInfo info)
 {
     throw new NotImplementedException();
 }