public void AddStoryPointerUpdate(StoryPointerUpdate pointerUpdateMessage) { pointerUpdates.Add(pointerUpdateMessage); #if LOGVERBOSE DebugLog += "Added pointer update. \n"; #endif }
/* * public bool GetDataUpdate(out DataUpdate dataUpdate) * { * * int count = dataUpdates.Count; * * if (count > 0) * { * dataUpdate = dataUpdates[count - 1]; * dataUpdates.RemoveAt(count - 1); * return true; * } * * dataUpdate = null; * return false; * * } * * public void AddDataUpdate(DataUpdate dataUpdate) * { * * dataUpdates.Add(dataUpdate); * #if LOGVERBOSE * DebugLog += "Added data update. \n"; * DebugLog += dataUpdate.debug; #endif * * } */ public bool GetPointerUpdate(out StoryPointerUpdate pointerUpdate) { int count = pointerUpdates.Count; if (count > 0) { pointerUpdate = pointerUpdates[count - 1]; pointerUpdates.RemoveAt(count - 1); return(true); } pointerUpdate = null; return(false); }