public static WorldItem Deserialize(Stream stream) { WorldItem worldItem = Pool.Get <WorldItem>(); WorldItem.Deserialize(stream, worldItem, false); return(worldItem); }
public static WorldItem Deserialize(byte[] buffer, WorldItem instance, bool isDelta = false) { using (MemoryStream memoryStream = new MemoryStream(buffer)) { WorldItem.Deserialize(memoryStream, instance, isDelta); } return(instance); }
public static WorldItem Deserialize(byte[] buffer) { WorldItem worldItem = Pool.Get <WorldItem>(); using (MemoryStream memoryStream = new MemoryStream(buffer)) { WorldItem.Deserialize(memoryStream, worldItem, false); } return(worldItem); }
public void FromProto(Stream stream, bool isDelta = false) { WorldItem.Deserialize(stream, this, isDelta); }