예제 #1
0
파일: EventAspect.cs 프로젝트: FizzyP/Iffy
 public static EventCause getEventCause(WorldObjectBase obj)
 {
     if (!obj.hasAttribute(kEventKey))
     {
         return(null);
     }
     else
     {
         return((EventCause)obj [kEventKey]);
     }
 }
예제 #2
0
 public static MapLocationState getMapLocationState(WorldObjectBase obj)
 {
     if (!obj.hasAttribute(kMapLocationKey))
     {
         return(null);
     }
     else
     {
         return(((MapLocationCause)obj [kMapLocationKey]).Value);
     }
 }