Example #1
0
        public void CreateStarringRole(StarredComponentTypes[] sct)
        {
            if (starredTurn == null)
            {
                starredTurn = ModuleManager.getInstance.GetModule <BattleTurnsModule>().FindTurn("StarredTurn") as StarredTurn;
            }
            starredTurn.CreateRole();
            //
            foreach (var t in sct)
            {
                switch (t)
                {
                case StarredComponentTypes.Starred_BaseMovement:
                {
                    starredTurn.AddComponent(new SC_BaseMovement(starredTurn));
                    break;
                }

                case StarredComponentTypes.Starred_Renderer:
                {
                    starredTurn.AddComponent(new SC_StarredRenderer(starredTurn));
                    break;
                }

                case StarredComponentTypes.Starred_SimpleFindGem:
                {
                    starredTurn.AddComponent(new SC_SimpleFindGem(starredTurn));
                    break;
                }
                }
            }
        }
Example #2
0
 public SC_StarredRenderer(StarredTurn st) : base(st)
 {
 }
Example #3
0
 public StarredComponent(StarredTurn st)
 {
     starred = st;
 }
Example #4
0
 public SC_SimpleFindGem(StarredTurn st) : base(st)
 {
 }
Example #5
0
 public SC_BaseMovement(StarredTurn st) : base(st)
 {
 }