public static TimeCause getTimeCause(WorldObjectBase obj) { if (!obj.hasAttribute(kTimeKey)) { return(null); } else { return((TimeCause)obj [kTimeKey]); } }
public static WorldObjectBase imbue(WorldObjectBase obj) { obj[kTimeKey] = new TimeCause(DateTime.Now); return(obj); }