Beispiel #1
0
        /// <summary>
        /// Create CmdSwitch instance.
        /// CaseList is initiated and has minumum number of cases.
        /// </summary>
        /// <param name="characterId"></param>
        public CmdSwitch(int characterId) : base(Command.Type.Switch)
        {
            _characterId = characterId;
            _caseList    = new List <CmdCase>();

            for (int i = 0, key = CmdCase.START_KEY; i < MIN_COUNT_CASE; ++i, ++key)
            {
                CmdCase cmdCase = new CmdCase(key);
                _caseList.Add(cmdCase);
            }
        }
Beispiel #2
0
    // @NOTE : When Unity builds iOS, unreferenced code is gone.(= code strip)
    // By the way, If you use JSON deserializer, may need default constructor of objects.
    // but If the default constructor only is defined and NOT referenced, then result in code strip for iOS.
    // so you need to refer the default constructor.
    private void blockiOSCodeScrip()
    {
#pragma warning disable 219
        // for json deserializer
        Sugarism.Scenario        scenario = new Sugarism.Scenario();
        Sugarism.Scene           scene    = new Sugarism.Scene();
        Sugarism.CmdAppear       appear   = new Sugarism.CmdAppear();
        Sugarism.CmdBackground   bg       = new Sugarism.CmdBackground();
        Sugarism.CmdCase         cs       = new Sugarism.CmdCase();
        Sugarism.CmdDisappear    ds       = new Sugarism.CmdDisappear();
        Sugarism.CmdFeeling      feel     = new Sugarism.CmdFeeling();
        Sugarism.CmdFilter       filter   = new Sugarism.CmdFilter();
        Sugarism.CmdLines        lines    = new Sugarism.CmdLines();
        Sugarism.CmdMiniPicture  mini     = new Sugarism.CmdMiniPicture();
        Sugarism.CmdPicture      picture  = new Sugarism.CmdPicture();
        Sugarism.CmdSE           se       = new Sugarism.CmdSE();
        Sugarism.CmdSwitch       sw       = new Sugarism.CmdSwitch();
        Sugarism.CmdTargetAppear ta       = new Sugarism.CmdTargetAppear();
        Sugarism.CmdText         t        = new Sugarism.CmdText();
#pragma warning restore 219
    }