예제 #1
0
 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);
     }
 }
예제 #2
0
 public void ReceiveInstanceData(ProtoBuf.Item.InstanceData data)
 {
     GrowableGeneEncoding.DecodeIntToGenes(data.dataInt, Genes);
     GrowableGeneEncoding.DecodeIntToPreviousGenes(data.dataInt, Genes);
 }