예제 #1
0
        public GameAssemblyBuilder()
        {
            m_AssemblyBuilder = new CustomAssemblyBuilder("GenGame");

            // creates GenGame class
            m_TypeBuilder = m_AssemblyBuilder.CreateType("GenGame");
        }
예제 #2
0
        public void GenerateAssembly( List<GameType> a_GameTypes )
        {
            m_AssemblyBuilder = new CustomAssemblyBuilder("GameTypes");

            foreach (GameType gameType in a_GameTypes)
            {
                m_AssemblyBuilder.CreateType(gameType.Name, gameType.Properties);
            }
            m_AssemblyBuilder.Save();
        }