コード例 #1
0
 public void AddComponent(BasicComponent component)
 {
     _contain.Add(component);
     component.PreviousBounds =
         new Viewport((int)(PreviousBounds.X + PreviousBounds.Width * _state.CurrentState.Bounds.X),
             (int)(PreviousBounds.Y + PreviousBounds.Height * _state.CurrentState.Bounds.Y),
             (int)(PreviousBounds.Width * _state.CurrentState.Bounds.Z),
             (int)(PreviousBounds.Height * _state.CurrentState.Bounds.W));
 }
コード例 #2
0
 public void RemoveComponent(BasicComponent component)
 {
     _contain.Remove(component);
 }