public DbBuilderSerializerInterface(PhxEngine phx)
        {
            Contract.Requires(phx != null);

            mDatabase = phx.Database;
            TriggerDb = phx.TriggerDb;
        }
        public BTriggerScriptSerializer(PhxEngine phx, Engine.BScenario scnr = null)
        {
            Contract.Requires(phx != null);

            mDatabase = phx.Database;
            TriggerDb = phx.TriggerDb;
            Scenario  = scnr;
        }
Ejemplo n.º 3
0
        Collections.IProtoEnum GetProtoEnum(Engine.BDatabaseBase db)
        {
            if (Bits.Params.kGetProtoEnum != null)
            {
                return(Bits.Params.kGetProtoEnum());
            }

            return(Bits.Params.kGetProtoEnumFromDB(db));
        }
Ejemplo n.º 4
0
        internal IProtoEnum InitializeFromEnum(Engine.BDatabaseBase db)
        {
            IProtoEnum penum = null;

            if (Params.kGetProtoEnum != null)
            {
                penum = Params.kGetProtoEnum();
            }
            else if (db != null)
            {
                penum = Params.kGetProtoEnumFromDB(db);
            }

            if (penum != null)
            {
                mBits = new System.Collections.BitArray(penum.MemberCount);
            }

            return(penum);
        }
        public static BXmlSerializerInterface GetNullInterface(Engine.BDatabaseBase db)
        {
            Contract.Requires(db != null);

            return(new NullInterface(db));
        }
 public NullInterface(Engine.BDatabaseBase db)
 {
     mDatabase = db;
 }