Beispiel #1
0
 private void AddDeckShips(Entity_PresetDeck.Param DeckParam)
 {
     for (int i = 0; i < DeckParam.PresetShip.Length; i++)
     {
         if (DeckParam.PresetShip[i] != string.Empty)
         {
             Entity_PresetShip.Param ShipParam = presetDataManager.GetPresetShipParam(DeckParam.PresetShip[i]);
             if (!ShipParamList.Exists((Entity_PresetShip.Param s) => s == ShipParam))
             {
                 ShipParamList.Add(ShipParam);
                 ShipParam.MemID = NextMemID;
                 NextMemID++;
             }
         }
     }
 }
Beispiel #2
0
 private void Start()
 {
     debugMod = new Debug_Mod();
     UserInfo = StrategyTopTaskManager.GetLogicManager().UserInfo;
     ButtonManager.setButtonDelegate(Util.CreateEventDelegate(this, "OnPushPreset", null));
     TaskStrategyDebug.isControl = true;
     presetDataManager           = new PresetDataManager();
     NextMemID     = 2;
     ShipParamList = new List <Entity_PresetShip.Param>();
     presetDataManager.GetPresetShipParam("初期艦").MemID = 1;
 }