public static string GetCleanupDestroySystemClassName(this ComponentData data, string contextName)
        {
            Debug.Assert(data.HasCleanupDestroyEntityData());

            const string CLASS_NAME = "Destroy${ContextName}EntitiesWith${componentName}System";

            return(CLASS_NAME.Replace(contextName).Replace(data, contextName));
        }
        public static string GetCleanupRemoveSystemClassName(this ComponentData data, string contextName)
        {
            Debug.Assert(data.HasCleanupRemoveComponentData());

            const string CLASS_NAME = "Remove${componentName}From${ContextName}EntitiesSystem";

            return(CLASS_NAME.Replace(contextName).Replace(data, contextName));
        }
Beispiel #3
0
        public ClassNumber UpdateClassNumber(int id, CLASS_NAME className)
        {
            ClassNumber classNumber = db.ClassNumberRepository.GetByID(id);

            if (classNumber != null)
            {
                classNumber.ClassName = className;

                db.ClassNumberRepository.Update(classNumber);
                db.Save();
            }

            return(classNumber);
        }
Beispiel #4
0
 public ClassNumber(int id, CLASS_NAME className)
 {
     Id        = id;
     ClassName = className;
 }