예제 #1
0
            public ActionControlModel(ActionControl control, StackPanel parent, Level level, Obstacle obs)
            {
                mControlParent = control;
                mLevel = level;
                mSwitch = obs;
                mParent = parent;

                mData = new Half_Caked.KeyValuePair<Guid, int>(obs.Guid, 0);
                mTarget= Obstacles[0];
                mTarget.Actions.Add(mData);
            }
예제 #2
0
            public ActionControlModel(ActionControl control, StackPanel parent, Level level, Obstacle obs, Obstacle target)
            {
                mControlParent = control;
                mLevel = level;
                mSwitch = obs;
                mParent = parent;

                mData = target.Actions.Find(x => x.Key == obs.Guid);
                mTarget = target;
                obs.Actions.Add(mData);
            }