/** * Update an emotional point's position in game-space.4 * @param int id - Melodrives ID for the point * @param float x - the x co-ord * @param float y - the y co-ord */ public void SetEmotionalPointPosition(EmotionalPoint ep) { int id = ep.GetID(); Vector2 pos = ep.Get2DPosition(); md_setEmotionalPointPosition(id, pos.x, pos.y); }
/** * Add an emotional point in game-space. * @param float x - the x co-ord * @param float y - the y co-ord * @param Emotion emotion - the emotion of the point * @return int - the id of the created point */ public int AddEmotionalPoint(EmotionalPoint ep) { Vector2 pos = ep.Get2DPosition(); return(AddEmotionalPoint(pos.x, pos.y, EmotionMap[ep.emotion])); }