コード例 #1
0
ファイル: Raptor.cs プロジェクト: MattVitelli/IslandAdventure
        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;
        }
コード例 #2
0
 public DinosaurDatablock[] GetDinosaurDatablocks()
 {
     DinosaurDatablock[] datablocks = new DinosaurDatablock[resources[(int)ResourceTypes.DinosaurDatablock].Count];
     resources[(int)ResourceTypes.DinosaurDatablock].Values.CopyTo(datablocks, 0);
     return datablocks;
 }