public static string ToString(StoryListenFlagEnum type)
        {
            switch (type)
            {
            case (StoryListenFlagEnum)0:
                return(string.Empty);

            case StoryListenFlagEnum.Damage:
                return("damage");

            default:
                int bit = (int)Math.Log((int)type, 2) + 1;
                return(c_story_bit_prefix + bit);
            }
        }
 public void AddStoryFlag(StoryListenFlagEnum mask)
 {
     m_StoryListenFlag |= (int)mask;
 }
 public void RemoveStoryFlag(StoryListenFlagEnum mask)
 {
     m_StoryListenFlag &= ~((int)mask);
 }
 public bool IsHaveStoryFlag(StoryListenFlagEnum flag)
 {
     return((m_StoryListenFlag & ((int)flag)) != 0);
 }
 public static string ToString(StoryListenFlagEnum type)
 {
     switch (type) {
         case (StoryListenFlagEnum)0:
             return string.Empty;
         case StoryListenFlagEnum.Damage:
             return "damage";
         default:
             int bit = (int)Math.Log((int)type, 2) + 1;
             return c_story_bit_prefix + bit;
     }
 }
 public void RemoveStoryFlag(StoryListenFlagEnum mask)
 {
     m_StoryListenFlag &= ~((int)mask);
 }
 public bool IsHaveStoryFlag(StoryListenFlagEnum flag)
 {
     return (m_StoryListenFlag & ((int)flag)) != 0;
 }
 public void AddStoryFlag(StoryListenFlagEnum mask)
 {
     m_StoryListenFlag |= (int)mask;
 }