Example #1
0
 public CharPanel(MainSystem.Liplis lips, ObjSkinSetting oss, bool select)
 {
     this.lips = lips;
     this.oss  = oss;
     this.select = select;
     initDataPanel();
 }
Example #2
0
        public NodeSystem(MainSystem mainSystem)
        {
            //todo(logging) create subsystem + typeof(this)
            MainSystem = mainSystem;
            RegisterdEntityIDs = new List<uint>();

        }
Example #3
0
	void Awake () {
		// インスタンスが存在するなら破棄する
		if (existsInstance)
		{
			Destroy(gameObject);
			return;
		}

		instance = this;
		existsInstance = true;
		DontDestroyOnLoad(gameObject);
		{
			var textAsset = Resources.Load ("GameData") as TextAsset;
			var data = MiniJSON.Json.Deserialize (textAsset.text) as Dictionary<string, object>;

			gameData = new GameData (data);
		}
		{
			var textAsset = Resources.Load ("BuddhistName") as TextAsset;
			var data = MiniJSON.Json.Deserialize (textAsset.text) as Dictionary<string, object>;
			MainSystem.Instance.buddhistNames = new BuddhistNames (data);
		}
		{
			var textAsset = Resources.Load ("Sokumibotoke") as TextAsset;
			var data = MiniJSON.Json.Deserialize (textAsset.text) as Dictionary<string, object>;
			MainSystem.Instance.sokumibotokeInfo = new Sokumibotoke (data);
		}
	}
Example #4
0
    void Start() {
        player.OnDead += PlayerDead;

        system = MainSystem.Instance;
        if (system == null)
        {
            return;
        }
        system.Executor.OnReceivePlayerPosition += EnemyMove;
        system.Executor.OnReceiveBulletFire += EnemyBulletFire;
        system.Executor.OnReceivePlayerDead += GameOver;
	}
Example #5
0
 public ActivityChar(MainSystem.Liplis lips, ObjSkinSettingList ossList, string selectedCharName, ObjWindowFile owf)
     : base()
 {
     InitializeComponent();
     this.lips             = lips;
     this.ossList          = ossList;
     this.owf              = owf;
     this.selectedCharName = selectedCharName;
     this.StartPosition    = FormStartPosition.CenterScreen;
     initSettingWindow();
     initCharList();
 }
Example #6
0
        public static TileMap Load(TileMapBluePrint tileMapBluePrint, MainSystem mainSystem)
        {
            TileMap tileMap = new TileMap();

            for (int i = 0; i < tileMapBluePrint.TileMap.Length; ++i)
            {
                for (int j = 0; j < tileMapBluePrint.TileMap[i].Length; ++j)
                {
                    if (tileMapBluePrint.TileMap[i][j] != null)
                    {
                        tileMap.TileIDs.Add(TileFactory.CreateTile(mainSystem, tileMapBluePrint.TileMap[i][j], new Vector2(i, j), tileMapBluePrint.TileDimensions));
                    }
                }
            }

            return tileMap;
        }
Example #7
0
        public static uint CreateTile(MainSystem mainSystem, TileBluePrint tileBluePrint, Vector2 relativPosition, Vector2 tileDimensions)
        {
            uint id = mainSystem.CreateEntityID();
            Vector2 position = new Vector2(relativPosition.X * tileDimensions.X, relativPosition.Y * tileDimensions.Y);

            mainSystem.GetRenderSystem<Texture2DRenderSystem>().CreateTexture2DRenderNode(id, tileBluePrint.Texture2D);
            mainSystem.GetComponent<Position2DComponent>(id).Origin = new Vector2(tileDimensions.Y / 2, tileDimensions.X / 2);
            mainSystem.GetComponent<Position2DComponent>(id).Position = position;

            if (tileBluePrint.HitBoxOutline != null)
            {
                mainSystem.GetRenderSystem<HitBoxRenderSystem>().CreateHitBoxRenderNode(id, tileBluePrint.HitBoxOutline);
                mainSystem.GetComponent<HitBox2DComponent>(id).Position = position;
                mainSystem.GetUpdateSystem<HitBoxCollisionUpdateSystem>().CreateHitBoxCollisionUpadateNode(id, tileBluePrint.HitBoxOutline, null);
                mainSystem.GetComponent<HitBox2DComponent>(id).Position = position;

            }
            
            return id;
        }
Example #8
0
    public Player(int row, int col, MainSystem sys, GameObject root)
    {
        IsMoving = false;
        const float size = Stage.SpriteSize;
        var spriteTypes = new[] { SpriteType.PlayerN,
                                  SpriteType.PlayerS,
                                  SpriteType.PlayerE,
                                  SpriteType.PlayerW };
        foreach (var stype in spriteTypes) {
            var obj = sys.Bless("Player", stype);
            obj.GetComponent<SpriteRenderer>().sortingLayerName = "Player";
            obj.transform.SetParent(root.transform);
            obj.transform.position = new Vector3(size * col, -size * row, 0);
            obj.SetActive(false);

            _spriteMap[stype] = obj;
        }
        Row = row;
        Col = col;
        Sprite = _spriteMap[SpriteType.PlayerN];
        UpdateDirection(-1, 0);
    }
Example #9
0
        public static IEnumerable <(double time, int count, int stackA, int stackB)> SimulateFSharp(double intervalLength, double alphaA, double alphaB, double deltaTime)
        {
            //Начальные значения уровней
            var levelsA = new double[3];

            levelsA[0] = 150;
            levelsA[1] = 30;
            levelsA[2] = 25;

            var levelsB = new double[5];

            levelsB[0] = 120;
            levelsB[1] = 30;
            levelsB[2] = 30;
            levelsB[3] = 30;
            levelsB[4] = 50;

            var levelsADelay = new double[2];

            for (int j = 0; j < levelsADelay.Length; j++)
            {
                levelsADelay[j] = levelsA[j] / 10.0;
            }

            var levelsBDelay = new double[4];

            for (int j = 0; j < levelsBDelay.Length; j++)
            {
                levelsBDelay[j] = levelsB[j] / 10.0;
            }

            MainSystem.SimulationInput input =
                new MainSystem.SimulationInput(levelsA, levelsB, levelsADelay, levelsBDelay, alphaA, alphaB, deltaTime);

            return(MainSystem.simulation(input, intervalLength));
        }
 public HitBoxCollisionUpdateSystem(MainSystem mainSystem)
     : base(mainSystem)
 {
     HitBoxIntersectionReactions = new Dictionary<uint, HitBoxIntersectionReaction>();
 }
 public CheckReservationUI(ref MainSystem mainSystem)
 {
     InitializeComponent();
     system = mainSystem;
 }
        public CalculateMovementUpdateSystem(MainSystem mainSystem)
            : base(mainSystem)
        {

        }
Example #13
0
 public override void OnFinished(MainSystem sys)
 {
     DLog.D("{0} item", Actor);
 }
Example #14
0
    public void OnClickManual(AxRButton _button)
    {
        m_audioSource.clip = m_audioClip;
        m_audioSource.Play();

        if (m_actManual != null)
        {
            m_actManual();
        }
        if (m_Manualpanel != null)
        {
            if (isManual == 1)
            {
                isBase   = false;
                isManual = 0;
                Destroy(m_Manualpanel.gameObject);
                btn_Manual.transform.GetChild(0).gameObject.SetActive(true);
                btn_Manual.transform.GetChild(1).gameObject.SetActive(false);
                //[SSPARK] 패널이 destroy되어있는 상태일 때는 해당 패널의 navigation버튼 또한 비활성화
                btn_ManualPos[0].gameObject.SetActive(false);
                btn_ManualPos[1].gameObject.SetActive(false);
            }
            else if (isManual == 2)
            {
                return;
            }
        }

        if (!isBase)
        {
            if (m_Manualpanel == null)
            {
                if (isManual == 0)
                {
                    if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 1)
                    {
                        isBase        = true;
                        isManual      = 1;
                        m_Manualpanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Manual", m_vufoCon.transform.GetChild(0).gameObject);
                        m_Manualpanel.gameObject.transform.position = Main_pos.transform.position;
                        //m_Manualpanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.03f, gameObject.transform.position.z);
                        m_Manualpanel.gameObject.transform.rotation = gameObject.transform.rotation;
                        btn_Manual.transform.GetChild(0).gameObject.SetActive(false);
                        btn_Manual.transform.GetChild(1).gameObject.SetActive(true);
                        btn_ManualPos[0].gameObject.SetActive(true);
                        btn_ManualPos[1].gameObject.SetActive(false);
                    }

                    if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 2)
                    {
                        isBase        = true;
                        isManual      = 1;
                        m_Manualpanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Manual", m_vufoCon.transform.GetChild(2).gameObject);
                        m_Manualpanel.gameObject.transform.position = Main_pos.transform.position;
                        //m_Manualpanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.03f, gameObject.transform.position.z);
                        m_Manualpanel.gameObject.transform.rotation = gameObject.transform.rotation;
                        btn_Manual.transform.GetChild(0).gameObject.SetActive(false);
                        btn_Manual.transform.GetChild(1).gameObject.SetActive(true);
                        btn_ManualPos[0].gameObject.SetActive(true);
                        btn_ManualPos[1].gameObject.SetActive(false);
                    }
                }
            }
        }

        if (isBase)
        {
            return;
        }
    }
Example #15
0
    public void OnClickRemoteSupporting(AxRButton _button)
    {
        //if (MainSystem.INSTANCE.mQRCooltime || CRemoteProcess.Instance.mRemoteSupportMode)  //*LKH* - 20190807, QR쿨타임 또는 이미 원격지원중인 경우 원격지원 버튼 무시
        //    return;
#if UNITY_WSA_10_0
        m_audioSource.clip = m_audioClip;
        m_audioSource.Play();

        if (m_actRemoteSupporting != null)
        {
            m_actRemoteSupporting();
        }

        if (m_RemoteSupportingpanel != null)
        {
            if (isRemoteSup == 1)
            {
                isBase      = false;
                isRemoteSup = 0;
                if (!isBase && isRemoteSup == 0)
                {
                    Destroy(m_RemoteSupportingpanel.gameObject);
                    btn_RemoteSupporting.transform.GetChild(0).gameObject.SetActive(true);
                    btn_RemoteSupporting.transform.GetChild(1).gameObject.SetActive(false);
                }
            }
            else if (isRemoteSup == 2)
            {
                return;
            }
        }

        if (!isBase)
        {
            if (m_RemoteSupportingpanel == null)
            {
                if (isRemoteSup == 0)
                {
                    isBase                  = true;
                    isRemoteSup             = 1;
                    m_RemoteSupportingpanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "Remote_Supporting", m_vufoCon.transform.GetChild(0).gameObject);
                    m_RemoteSupportingpanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.03f, gameObject.transform.position.z);
                    m_RemoteSupportingpanel.gameObject.transform.rotation = gameObject.transform.rotation;
                    btn_RemoteSupporting.transform.GetChild(0).gameObject.SetActive(false);
                    btn_RemoteSupporting.transform.GetChild(1).gameObject.SetActive(true);
                }
            }
        }

        if (isBase)
        {
            return;
        }
#endif

#if UNITY_EDITOR || UNITY_ANDROID
        if (remote_Warning.activeSelf)
        {
            remote_Warning.SetActive(false);
        }
        else
        {
            remote_Warning.SetActive(true);
        }
#endif
    }
Example #16
0
        public void GetBalance_082111222_Exception()
        {
            MainSystem system = new MainSystem();

            system.GetBalance("082111222");
        }
Example #17
0
 public override void OnFinished(MainSystem sys)
 {
 }
Example #18
0
 public ReservationGetter(ref MainSystem system)
 {
     InitializeComponent();
     this.system = system;
 }
 public PositionCorrectionHitBoxIntersectionReaction(MainSystem mainSystem, uint ownerId)
 {
     MainSystem = mainSystem;
     OwnerId = ownerId;
 }
Example #20
0
 public override void OnFinished(MainSystem sys)
 {
     DLog.D("{0} attack --> {1}", Actor, _target);
 }
Example #21
0
 public virtual IEnumerator RunAnimation(CharacterBase sender, MainSystem sys)
 {
     yield break;
 }
        public ApplyMovementUpdateSystem(MainSystem mainSystem)
            : base(mainSystem)
        {

        }
Example #23
0
        public UpdateSubSystem(MainSystem mainSystem)
            : base(mainSystem)
        {

        }
Example #24
0
 public GameScene(SceneHandler handler, string name, IConnector connector, GraphicsDeviceManager graphicsDeviceManager)
     : base(handler, name, connector, graphicsDeviceManager)
 {
     Camera2D = new Camera2D();
     MainSystem = new MainSystem();
 }
Example #25
0
    public override IEnumerator RunAnimation(CharacterBase sender, MainSystem sys)
    {
        var dmg = 10 + new System.Random().Next(5);

        yield return(EffectAnim.PopupWhiteDigits(sender, dmg));
    }
        public void MakeReserve_g12345678_Exception()
        {
            MainSystem system = MainSystemWith_ARG_Account();

            system.MakeReserve("-12345678", "SBS 1234 17:30 30");
        }
Example #27
0
        public void GetBalance_NotRegistered_Exception()
        {
            MainSystem system = new MainSystem();

            system.GetBalance("092555222");
        }
        public void MakeReserve_BADmeesage2_Exception()
        {
            MainSystem system = MainSystemWith_ARG_Account();

            system.MakeReserve(ArgentinaNumberPhone, "asd asdas  asdasdasd asd asd ");
        }
Example #29
0
    public void OnClickPartsInfo(AxRButton _button)
    {
        m_audioSource.clip = m_audioClip;
        m_audioSource.Play();

        if (m_actPartsInfo != null)
        {
            m_actPartsInfo();
        }

        if (m_PartsInfopanel != null)
        {
            if (isPartsInfo == 1)
            {
                isBase      = false;
                isPartsInfo = 0;
                Destroy(m_PartsInfopanel.gameObject);
                btn_PartsInfo.transform.GetChild(0).gameObject.SetActive(true);
                btn_PartsInfo.transform.GetChild(1).gameObject.SetActive(false);
                //[SSPARK] 패널이 destroy되어있는 상태일 때는 해당 패널의 navigation버튼 또한 비활성화
                btn_PartsInfoPos[0].gameObject.SetActive(false);
                btn_PartsInfoPos[1].gameObject.SetActive(false);
            }
            else if (isPartsInfo == 2)
            {
                return;
            }
        }
        if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 1)
        {
            if (!isBase)
            {
                if (m_PartsInfopanel == null)
                {
                    if (isPartsInfo == 0)
                    {
                        isBase           = true;
                        isPartsInfo      = 1;
                        m_PartsInfopanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "PartsInfo", m_vufoCon.transform.GetChild(0).gameObject);
                        //m_PartsInfopanel.gameObject.transform.position = new Vector3(m_PartsInfopanel.gameObject.transform.position.x, m_PartsInfopanel.gameObject.transform.position.y, m_PartsInfopanel.gameObject.transform.position.z + 0.5f);
                        m_PartsInfopanel.gameObject.transform.position = new Vector3(Main_pos.transform.position.x + 0.3f, Main_pos.transform.position.y + 2.4f, Main_pos.transform.position.z + 2.6f);
                        //m_PartsInfopanel.gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y - 0.01f, gameObject.transform.position.z);
                        m_PartsInfopanel.gameObject.transform.rotation = gameObject.transform.rotation;
                        btn_PartsInfo.transform.GetChild(0).gameObject.SetActive(false);
                        btn_PartsInfo.transform.GetChild(1).gameObject.SetActive(true);
                        btn_PartsInfoPos[0].gameObject.SetActive(true);
                        btn_PartsInfoPos[1].gameObject.SetActive(false);
                    }
                }
            }

            if (isBase)
            {
                return;
            }
        }

        if (MainSystem.INSTANCE.IS_MSPP_TRACKED == 2)
        {
            if (!isBase)
            {
                if (m_PartsInfopanel == null)
                {
                    if (isPartsInfo == 0)
                    {
                        isBase           = true;
                        isPartsInfo      = 1;
                        m_PartsInfopanel = MainSystem.InstantiateAndAddTo(URL.PrefabURL.PANELS, "PartsInfo2", m_vufoCon.transform.GetChild(2).gameObject);
                        m_PartsInfopanel.gameObject.transform.localPosition = new Vector3(-0.15f, 0, -3.1f);
                        //m_PartsInfopanel.gameObject.transform.position = new Vector3(Main_pos.transform.position.x, Main_pos.transform.position.y, Main_pos.transform.position.z - 22.5f);
                        m_PartsInfopanel.gameObject.transform.rotation = gameObject.transform.rotation;
                        btn_PartsInfo.transform.GetChild(0).gameObject.SetActive(false);
                        btn_PartsInfo.transform.GetChild(1).gameObject.SetActive(true);
                        btn_PartsInfoPos[0].gameObject.SetActive(true);
                        btn_PartsInfoPos[1].gameObject.SetActive(false);
                    }
                }
            }

            if (isBase)
            {
                return;
            }
        }
    }
Example #30
0
 public InputUpdateSystem(MainSystem mainSystem)
     : base(mainSystem)
 {
     Inputs = new Dictionary<uint, IInput>();
 }
Example #31
0
        public HitBoxUpdateSystem(MainSystem mainSystem)
            : base(mainSystem)
        {

        }
Example #32
0
        public void AddBalance_Add115onNotRegisteredNumberUY_Exception()
        {
            MainSystem system = MainSystemWith_UY_Account();

            system.AddBalance("092777333", 200);
        }
Example #33
0
 public MainGameState(StateManager stateManager, MainSystem mainSystem) : base(stateManager, mainSystem)
 {
     Debug.Log("MainGameState Constructor");
     ListenForEvent(EGameEvents.SetState, OnSetState);
 }
Example #34
0
 void Start()
 {
     syc = MainSystem.instance;
     Rb  = GetComponent <Rigidbody>();
 }
Example #35
0
 public void Init(MainSystem parent)
 {
     mainSystem = parent;
 }
Example #36
0
 public override void OnFinished(MainSystem sys)
 {
     _player.RemoveItem(_item);
 }
Example #37
0
 public override IEnumerator Use(CharacterBase sender, MainSystem sys)
 {
     yield break;
 }
Example #38
0
 public IEnumerator Hit(CharacterBase sender, Loc target, MainSystem sys)
 {
     return(_data.Skill.Hit(sender, target, sys));
 }
Example #39
0
 protected override IEnumerator Run(MainSystem sys)
 {
     sys.Msg_UseItem(_item);
     yield return(_item.Use(Actor, sys));
 }
        public Texture2DRenderSystem(MainSystem mainSystem)
            : base(mainSystem)
        {

        }
Example #41
0
        public void AddBalance_ADD0OnRegisteredNumberUY_Exception()
        {
            MainSystem system = MainSystemWith_UY_Account();

            system.AddBalance(UruguayNumberPhone, 0);
        }
Example #42
0
 public HitBoxRenderSystem(MainSystem mainSystem, int lineThickness)
     : base(mainSystem)
 {
     DotTexture = AssetLoader.Instance.Load<Texture2D>("Dot");
     LineThickness = lineThickness;
 }
Example #43
0
    public Stage(List<string> stage, MainSystem sys)
    {
        _sys = sys;
        _root = new GameObject("SpriteRoot");
        _stage = stage;

        _stepCountText = GameObject.Find("StepCountText").GetComponent<Text>();
        _stepCountText.text = "Step: 0";

        _rows = _stage.Count;
        _cols = _stage[0].Length;
        for (int i = 0; i < _rows; i++) {
            _targetTable.Add(new bool[_cols]);
        }
        for (int i = 0; i < _stage.Count; i++) {
            for (int j = 0; j < _stage[i].Length; j++) {
                switch (_stage[i][j]) {
                case StageChar.Wall:
                    sys.MakeSprite(SpriteType.Wall, i, j).transform.SetParent(_root.transform);
                    break;

                case StageChar.Floor:
                    sys.MakeSprite(SpriteType.Floor, i, j).transform.SetParent(_root.transform);
                    break;

                case StageChar.Target:
                    sys.MakeSprite(SpriteType.Target, i, j).transform.SetParent(_root.transform);
                    _targetTable[i][j] = true;
                    break;

                case StageChar.Box:
                    sys.MakeSprite(SpriteType.Floor, i, j).transform.SetParent(_root.transform);

                    var box = sys.MakeSprite(SpriteType.Box, i, j);
                    box.transform.SetParent(_root.transform);
                    _boxes.Add(new Box(i, j, box));
                    break;

                case StageChar.TargetAndBox:
                    sys.MakeSprite(SpriteType.Target, i, j).transform.SetParent(_root.transform);
                    _targetTable[i][j] = true;

                    sys.MakeSprite(SpriteType.Floor, i, j).transform.SetParent(_root.transform);

                    var box2 = sys.MakeSprite(SpriteType.Box, i, j);
                    box2.transform.SetParent(_root.transform);
                    _boxes.Add(new Box(i, j, box2));
                    break;

                case StageChar.Player:
                    sys.MakeSprite(SpriteType.Floor, i, j).transform.SetParent(_root.transform);
                    _player = new Player(i, j, sys, _root);
                    break;

                case StageChar.None:
                    break;

                default:
                    Assert.IsTrue(false);
                    break;
                }
            }
        }
        Assert.IsNotNull(_player);

        // ステージを画面中央に移動させる
        var pos = new Vector3(-Stage.SpriteSize * _cols / 2 + Stage.SpriteSize/2,
                              Stage.SpriteSize * _rows / 2 - Stage.SpriteSize/2,
                              0);
        _root.transform.position = pos;
    }
Example #44
0
 public override IEnumerator Hit(CharacterBase sender, CharacterBase target, MainSystem sys)
 {
     target.AddStatus(StatusType.Invisible, 20);
     yield return(null);
 }
Example #45
0
 public ConfigurationUI(ref MainSystem mainSystem)
 {
     InitializeComponent();
     system = mainSystem;
     refreshPrice();
 }
Example #46
0
 public override IEnumerator Use(CharacterBase sender, MainSystem sys)
 {
     sender.AddStatus(StatusType.Invisible, 20);
     yield return(null);
 }
Example #47
0
 public IEnumerator Use(CharacterBase sender, MainSystem sys)
 {
     return(_data.Skill.Use(sender, sys));
 }
Example #48
0
 public override IEnumerator RunAnimation(CharacterBase sender, MainSystem sys)
 {
     yield return(new SkillWarp().Use(sender, sys));
 }
Example #49
0
        public void GetBalance_empty_Exception()
        {
            MainSystem system = new MainSystem();

            system.GetBalance("");
        }
Example #50
0
        public RenderSubSystem(MainSystem mainSystem)
            : base(mainSystem)
        {

        }