public void Load(BaseNetworkable.LoadInfo info) { if (info.msg.growableEntity != null) { GrowableGeneEncoding.DecodeIntToGenes(info.msg.growableEntity.genes, this); GrowableGeneEncoding.DecodeIntToPreviousGenes(info.msg.growableEntity.previousGenes, this); } }
public void ReceiveInstanceData(ProtoBuf.Item.InstanceData data) { GrowableGeneEncoding.DecodeIntToGenes(data.dataInt, Genes); GrowableGeneEncoding.DecodeIntToPreviousGenes(data.dataInt, Genes); }