public virtual void Load(BaseNetworkable.LoadInfo info) { if (info.msg.baseNetworkable == null) { return; } ProtoBuf.BaseNetworkable baseNetworkable = info.msg.baseNetworkable; if (this.prefabID != baseNetworkable.prefabID) { UnityEngine.Debug.LogError(string.Concat(new object[] { "Prefab IDs don't match! ", this.prefabID, "/", baseNetworkable.prefabID, " -> ", base.gameObject }), base.gameObject); } }
public void CopyTo(BaseNetworkable instance) { instance.uid = this.uid; instance.@group = this.@group; instance.prefabID = this.prefabID; }
public virtual void WriteToStream(Stream stream) { BaseNetworkable.Serialize(stream, this); }
public byte[] ToProtoBytes() { return(BaseNetworkable.SerializeToBytes(this)); }
public void ToProto(Stream stream) { BaseNetworkable.Serialize(stream, this); }
public static void SerializeLengthDelimited(Stream stream, BaseNetworkable instance) { byte[] bytes = BaseNetworkable.SerializeToBytes(instance); ProtocolParser.WriteUInt32(stream, (uint)bytes.Length); stream.Write(bytes, 0, (int)bytes.Length); }
public void ResetToPool() { BaseNetworkable.ResetToPool(this); }
public virtual void ReadFromStream(Stream stream, int size, bool isDelta = false) { BaseNetworkable.DeserializeLength(stream, size, this, isDelta); }
public void FromProto(Stream stream, bool isDelta = false) { BaseNetworkable.Deserialize(stream, this, isDelta); }