public Raptor(DinosaurDatablock datablock) { this.datablock = datablock; model = new ViewModel(datablock.MeshName); model.GetAnimationLayer().SetActiveAnimation(datablock.GetAnimation(DinosaurAnimationsSimple.Idle), true); grounding.SetScale(datablock.Scale); grounding.SetRotation(datablock.Rotation); grounding.SetPosition(datablock.Position); model.SetCustomMatrix(grounding.GetTransform()); team = datablock.Team; }
public DinosaurDatablock[] GetDinosaurDatablocks() { DinosaurDatablock[] datablocks = new DinosaurDatablock[resources[(int)ResourceTypes.DinosaurDatablock].Count]; resources[(int)ResourceTypes.DinosaurDatablock].Values.CopyTo(datablocks, 0); return datablocks; }